diff options
author | Aj Adamson <aj.k.adamson@gmail.com> | 2014-06-23 12:23:14 -0600 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2014-07-01 22:55:21 -0400 |
commit | 6f411d1547278c84dff7c0003e4ffe350d566e50 (patch) | |
tree | 0f371951d5ab886463078843ca6708286728fa38 /crawl-ref/source/mon-info.h | |
parent | 18cebf10d87e656198b010574d219ade9a37df8e (diff) | |
download | crawl-ref-6f411d1547278c84dff7c0003e4ffe350d566e50.tar.gz crawl-ref-6f411d1547278c84dff7c0003e4ffe350d566e50.zip |
Add getting monster spells to clua m:spells() (#8737)
[Committer's note: squashed two commits. The second commit's message
was:
changed clua moninfo:spells() to return book sets/string tables like
describe.cc monster_info has_spells based on mostly on spellbooks.
describe and clua moninfo:spells's shared code moves to
mon-book.h/mon-util.cc
-neil]
Diffstat (limited to 'crawl-ref/source/mon-info.h')
-rw-r--r-- | crawl-ref/source/mon-info.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/mon-info.h b/crawl-ref/source/mon-info.h index 30049177a3..01b9ff5eaa 100644 --- a/crawl-ref/source/mon-info.h +++ b/crawl-ref/source/mon-info.h @@ -324,6 +324,8 @@ struct monster_info : public monster_info_base { return mons_class_flag(this->type, M_FAKE_SPELLS) || this->props.exists("fake_spells"); } + + bool has_spells() const; protected: string _core_name() const; |