From 9dfaadc6745a3d0824d1c809289908134ca725a4 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 26 May 2014 01:25:05 -0400 Subject: another function to get demon objects --- lib/Games/SMTNocturne/Demons.pm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lib/Games') diff --git a/lib/Games/SMTNocturne/Demons.pm b/lib/Games/SMTNocturne/Demons.pm index 163f30c..cb399ce 100644 --- a/lib/Games/SMTNocturne/Demons.pm +++ b/lib/Games/SMTNocturne/Demons.pm @@ -3,11 +3,17 @@ use strict; use warnings; use Exporter 'import'; -our @EXPORT_OK = qw(fuse fusions_for); +our @EXPORT_OK = qw(demon fuse fusions_for); use Games::SMTNocturne::Demons::Demon; use Games::SMTNocturne::Demons::FusionChart; +sub demon { + my ($demon) = @_; + + return Games::SMTNocturne::Demons::Demon->from_name($demon); +} + sub fuse { my ($demon1, $demon2, $options) = @_; $options = { %{ $options || {} } }; -- cgit v1.2.3-54-g00ecf