From 3812e89fbaec8075af2d8185d6ef0c32d13b3383 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 25 May 2014 02:23:14 -0400 Subject: rename some things --- lib/Games/SMTNocturne/Demons/Demon.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/Games/SMTNocturne/Demons') diff --git a/lib/Games/SMTNocturne/Demons/Demon.pm b/lib/Games/SMTNocturne/Demons/Demon.pm index 6d8d73d..12d276e 100644 --- a/lib/Games/SMTNocturne/Demons/Demon.pm +++ b/lib/Games/SMTNocturne/Demons/Demon.pm @@ -19,7 +19,7 @@ for my $type (keys %DEMONS_BY_TYPE) { @$demons = sort { $a->{level} <=> $b->{level} } @$demons; } -sub new_from_name { +sub from_name { my ($class, $name) = @_; die "unknown demon $name" unless $DEMONS_BY_NAME{$name}; @@ -27,7 +27,7 @@ sub new_from_name { return bless { %{ $DEMONS_BY_NAME{$name} } }, $class; } -sub new_from_type_and_level { +sub from_type_and_level { my ($class, $type, $level) = @_; die "unknown type $type" unless $DEMONS_BY_TYPE{$type}; -- cgit v1.2.3-54-g00ecf