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.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/Games/SMTNocturne/Demons.pm') diff --git a/lib/Games/SMTNocturne/Demons.pm b/lib/Games/SMTNocturne/Demons.pm index b075dc5..b648bf6 100644 --- a/lib/Games/SMTNocturne/Demons.pm +++ b/lib/Games/SMTNocturne/Demons.pm @@ -8,9 +8,9 @@ use Games::SMTNocturne::Demons::FusionChart; sub fuse { my ($demon1, $demon2) = @_; - $demon1 = Games::SMTNocturne::Demons::Demon->new_from_name($demon1) + $demon1 = Games::SMTNocturne::Demons::Demon->from_name($demon1) unless ref($demon1); - $demon2 = Games::SMTNocturne::Demons::Demon->new_from_name($demon2) + $demon2 = Games::SMTNocturne::Demons::Demon->from_name($demon2) unless ref($demon2); my $new_type = Games::SMTNocturne::Demons::FusionChart::fuse( @@ -18,7 +18,7 @@ sub fuse { ); my $new_level = ($demon1->level + $demon2->level) / 2; - return Games::SMTNocturne::Demons::Demon->new_from_type_and_level( + return Games::SMTNocturne::Demons::Demon->from_type_and_level( $new_type, $new_level ); } -- cgit v1.2.3