diff options
author | Jesse Luehrs <doy@tozt.net> | 2014-06-15 15:05:48 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2014-06-15 15:05:48 -0400 |
commit | e9a22f7f436470314db3e07665f010b6154cbfb5 (patch) | |
tree | b4bed8262e40b4749f32e2c2a055407028041903 /lib/Games/SMTNocturne | |
parent | dec283f35a4a51dbdb38eb9c1791e3732c0728c9 (diff) | |
download | games-smtnocturne-demons-e9a22f7f436470314db3e07665f010b6154cbfb5.tar.gz games-smtnocturne-demons-e9a22f7f436470314db3e07665f010b6154cbfb5.zip |
method to get all demon objects
Diffstat (limited to 'lib/Games/SMTNocturne')
-rw-r--r-- | lib/Games/SMTNocturne/Demons/Demon.pm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Games/SMTNocturne/Demons/Demon.pm b/lib/Games/SMTNocturne/Demons/Demon.pm index b44140f..3b668d4 100644 --- a/lib/Games/SMTNocturne/Demons/Demon.pm +++ b/lib/Games/SMTNocturne/Demons/Demon.pm @@ -29,6 +29,11 @@ sub from_name { return $DEMONS_BY_NAME{$name}; } +sub all_demons { + my $class = shift; + map { $class->from_name($_) } keys %DEMONS_BY_NAME; +} + sub from_fusion_stats { my ($class, $options) = @_; |