From 40f6c0306742a1defc85be6191bdd1a83b1b9405 Mon Sep 17 00:00:00 2001 From: Alex Kerr Date: Wed, 28 Jan 2015 09:49:10 +0000 Subject: [PATCH] Race bugfixes --- lib/OSRIC/Race.pm | 2 ++ lib/OSRIC/Race/Dwarf.pm | 4 ++-- lib/OSRIC/Race/Elf.pm | 2 +- lib/OSRIC/Race/Gnome.pm | 4 ++-- lib/OSRIC/Race/HalfElf.pm | 2 +- lib/OSRIC/Race/HalfOrc.pm | 2 +- lib/OSRIC/Race/Halfling.pm | 2 +- lib/OSRIC/Race/Human.pm | 2 +- 8 files changed, 11 insertions(+), 9 deletions(-) diff --git a/lib/OSRIC/Race.pm b/lib/OSRIC/Race.pm index 2638b45..584a8ea 100644 --- a/lib/OSRIC/Race.pm +++ b/lib/OSRIC/Race.pm @@ -1,5 +1,7 @@ package OSRIC::Races; +my @races = qw/Dwarf Elf Gnome HalfElf Halfling HalfOrc Human/; + # The stat buffs/nerfs a race gives: sub stats_boosts { diff --git a/lib/OSRIC/Race/Dwarf.pm b/lib/OSRIC/Race/Dwarf.pm index 75d8c33..887481f 100644 --- a/lib/OSRIC/Race/Dwarf.pm +++ b/lib/OSRIC/Race/Dwarf.pm @@ -1,5 +1,5 @@ -package OSRIC::Race::Dwarf -use parent qw(OSRIC::Races); +package OSRIC::Race::Dwarf; +use parent qw(OSRIC::Race); use OSRIC::Util qw/d/; # The stat buffs/nerfs a race gives: diff --git a/lib/OSRIC/Race/Elf.pm b/lib/OSRIC/Race/Elf.pm index f6c8294..d0b1c54 100644 --- a/lib/OSRIC/Race/Elf.pm +++ b/lib/OSRIC/Race/Elf.pm @@ -1,5 +1,5 @@ package OSRIC::Race::Elf; -use parent qw(OSRIC::Races); +use parent qw(OSRIC::Race); use OSRIC::Util qw/d/; # The stat buffs/nerfs a race gives: diff --git a/lib/OSRIC/Race/Gnome.pm b/lib/OSRIC/Race/Gnome.pm index bf65f96..18e3c1c 100644 --- a/lib/OSRIC/Race/Gnome.pm +++ b/lib/OSRIC/Race/Gnome.pm @@ -1,5 +1,5 @@ package OSRIC::Race::Gnome; -use parent qw(OSRIC::Races); +use parent qw(OSRIC::Race); use OSRIC::Util qw/d/; # The stat buffs/nerfs a race gives: @@ -31,7 +31,7 @@ sub ages cleric => sub { 300 + d(12, 3) }, druid => sub { 300 + d(12, 3) }, fighter => sub { 60 + d(4, 5) }, - illusionist => sub { 100 + d(12, 2) } + illusionist => sub { 100 + d(12, 2) }, magicuser => sub { 100 + d(12, 2) }, paladin => sub { 60 + d(4, 5) }, ranger => sub { 60 + d(4, 5) }, diff --git a/lib/OSRIC/Race/HalfElf.pm b/lib/OSRIC/Race/HalfElf.pm index 927210a..478171e 100644 --- a/lib/OSRIC/Race/HalfElf.pm +++ b/lib/OSRIC/Race/HalfElf.pm @@ -1,5 +1,5 @@ package OSRIC::Race::HalfElf; -use parent qw(OSRIC::Races); +use parent qw(OSRIC::Race); use OSRIC::Util qw/d/; # The stat buffs/nerfs a race gives: diff --git a/lib/OSRIC/Race/HalfOrc.pm b/lib/OSRIC/Race/HalfOrc.pm index 204123b..a41acbd 100644 --- a/lib/OSRIC/Race/HalfOrc.pm +++ b/lib/OSRIC/Race/HalfOrc.pm @@ -1,5 +1,5 @@ package OSRIC::Race::HalfOrc; -use parent qw(OSRIC::Races); +use parent qw(OSRIC::Race); use OSRIC::Util qw/d/; # The stat buffs/nerfs a race gives: diff --git a/lib/OSRIC/Race/Halfling.pm b/lib/OSRIC/Race/Halfling.pm index 02bff64..c8fbf9a 100644 --- a/lib/OSRIC/Race/Halfling.pm +++ b/lib/OSRIC/Race/Halfling.pm @@ -1,5 +1,5 @@ package OSRIC::Race::Halfling; -use parent qw(OSRIC::Races); +use parent qw(OSRIC::Race); use OSRIC::Util qw/d/; # The stat buffs/nerfs a race gives: diff --git a/lib/OSRIC/Race/Human.pm b/lib/OSRIC/Race/Human.pm index 1e437e5..915829f 100644 --- a/lib/OSRIC/Race/Human.pm +++ b/lib/OSRIC/Race/Human.pm @@ -1,5 +1,5 @@ package OSRIC::Race::Human; -use parent qw(OSRIC::Races); +use parent qw(OSRIC::Race); use OSRIC::Util qw/d/; # The stat buffs/nerfs a race gives: