osric-cgi/lib/OSRIC/Race.pm

55 lines
937 B
Perl
Raw Permalink Normal View History

2015-01-28 04:55:24 -05:00
package OSRIC::Race;
2015-01-26 14:45:09 -05:00
2015-01-28 04:55:24 -05:00
our @races = qw/Dwarf Elf Gnome HalfElf Halfling HalfOrc Human/;
2015-01-28 04:49:10 -05:00
2015-01-26 14:45:09 -05:00
# The stat buffs/nerfs a race gives:
sub stats_boosts
{
{
str => 0,
dex => 0,
con => 0,
int => 0,
wis => 0,
cha => 0,
}
}
# The permitted classes:
sub permitted_classes
{
[ "Assassin", "Cleric", "Druid", "Fighter", "Illusionist", "MagicUser",
"Paladin", "Ranger", "Thief" ]
}
# A hash of subs to generate the starting age based on class:
sub ages
{
{
assassin => sub { },
cleric => sub { },
druid => sub { },
fighter => sub { },
illusionist => sub { },
magicuser => sub { },
paladin => sub { },
ranger => sub { },
2015-02-09 20:04:21 -05:00
thief => sub { },
2015-01-26 14:45:09 -05:00
}
}
# The racial limitations:
sub racial_limitations
{
{
str => { min => 0, max => 0 },
dex => { min => 0, max => 0 },
con => { min => 0, max => 0 },
int => { min => 0, max => 0 },
wis => { min => 0, max => 0 },
cha => { min => 0, max => 0 },
}
}
1;