diff options
Diffstat (limited to 'lib/Games/SMTNocturne/Demons')
-rw-r--r-- | lib/Games/SMTNocturne/Demons/Demon.pm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/Games/SMTNocturne/Demons/Demon.pm b/lib/Games/SMTNocturne/Demons/Demon.pm index 1cf2bf1..81114a8 100644 --- a/lib/Games/SMTNocturne/Demons/Demon.pm +++ b/lib/Games/SMTNocturne/Demons/Demon.pm @@ -43,6 +43,14 @@ sub from_type_and_level { return $found; } +sub from_type { + my ($class, $type) = @_; + + die "unknown type $type" unless $DEMONS_BY_TYPE{$type}; + + return @{ $DEMONS_BY_TYPE{$type} }; +} + # sub boss { $_[0]->{boss} } sub fusion_type { $_[0]->{fusion_type} } sub level { $_[0]->{level} } |