summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-06-16 21:42:26 -0400
committerJesse Luehrs <doy@tozt.net>2014-06-16 21:42:26 -0400
commitd7bd5eb79c560ea3f26370c14f98024ca95b4885 (patch)
treec8b9bdb1542fc3651f56091c2b1e55d0be137334
parent633d30f248f770d05b27609e6b4d354a7417c066 (diff)
downloadgames-smtnocturne-demons-d7bd5eb79c560ea3f26370c14f98024ca95b4885.tar.gz
games-smtnocturne-demons-d7bd5eb79c560ea3f26370c14f98024ca95b4885.zip
expose this as a function too
-rw-r--r--lib/Games/SMTNocturne/Demons.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Games/SMTNocturne/Demons.pm b/lib/Games/SMTNocturne/Demons.pm
index 2d90a31..6f6030c 100644
--- a/lib/Games/SMTNocturne/Demons.pm
+++ b/lib/Games/SMTNocturne/Demons.pm
@@ -3,7 +3,7 @@ use strict;
use warnings;
use Exporter 'import';
-our @EXPORT_OK = qw(demon demons_of_type fuse fusions_for);
+our @EXPORT_OK = qw(demon demons_of_type all_demons fuse fusions_for);
use Games::SMTNocturne::Demons::Demon;
use Games::SMTNocturne::Demons::Fusion;
@@ -21,6 +21,10 @@ sub demons_of_type {
return Games::SMTNocturne::Demons::Demon->from_type($type);
}
+sub all_demons {
+ return Games::SMTNocturne::Demons::Demon->all_demons;
+}
+
sub fuse {
my ($demon1, $demon2, $options) = @_;
$options = { %{ $options || {} } };