From 26bba9f137ac161c9c394c74332968fd91d7acfc Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 25 May 2014 10:39:31 -0400 Subject: refactor --- lib/Games/SMTNocturne/Demons.pm | 8 +++++--- 1 file changed, 5 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 e1e482d..d4aff76 100644 --- a/lib/Games/SMTNocturne/Demons.pm +++ b/lib/Games/SMTNocturne/Demons.pm @@ -94,9 +94,11 @@ sub _normal_fusion { my $new_level = ($demon1->level + $demon2->level) / 2 + 1; - return Games::SMTNocturne::Demons::Demon->from_fusion_stats( - $new_type, $new_level, 'normal' - ); + return Games::SMTNocturne::Demons::Demon->from_fusion_stats({ + type => $new_type, + level => $new_level, + fusion_type => 'normal', + }); } 1; -- cgit v1.2.3-54-g00ecf