summaryrefslogtreecommitdiffstats
path: root/lib/Games/SMTNocturne/Demons.pm
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-05-25 10:39:31 -0400
committerJesse Luehrs <doy@tozt.net>2014-05-25 10:39:31 -0400
commit26bba9f137ac161c9c394c74332968fd91d7acfc (patch)
tree7eb735c2884dcba4ff2c697a7a4be44867a68ba6 /lib/Games/SMTNocturne/Demons.pm
parent03e8cf1b65841d6264fb021af6c7460dabac931f (diff)
downloadgames-smtnocturne-demons-26bba9f137ac161c9c394c74332968fd91d7acfc.tar.gz
games-smtnocturne-demons-26bba9f137ac161c9c394c74332968fd91d7acfc.zip
refactor
Diffstat (limited to 'lib/Games/SMTNocturne/Demons.pm')
-rw-r--r--lib/Games/SMTNocturne/Demons.pm8
1 files changed, 5 insertions, 3 deletions
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;