diff options
author | Neil Moore <neil@s-z.org> | 2014-01-17 01:09:51 -0500 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2014-01-17 01:13:50 -0500 |
commit | dde664e211b3661fc7ece9c36dba454eaa50c38b (patch) | |
tree | 7581a7b959b4e4dd1d2a74418e750ee3e91ab554 /crawl-ref/source/mon-info.cc | |
parent | db6e4539e64514ec7665a14fb8726f019b270037 (diff) | |
download | crawl-ref-dde664e211b3661fc7ece9c36dba454eaa50c38b.tar.gz crawl-ref-dde664e211b3661fc7ece9c36dba454eaa50c38b.zip |
Split some prototypes etc off to mon-book.h
All the ones that reference mon_spellbook_type, so that the users
of mon-util.h don't all require a rebuild whenever mon-spll.h is
touched and mon-mst.h regenerated.
For the same reason, change the 'sec' field mon monster_entry back to an
int, and make get_spellbooks a function rather than a method of
monster_info.
I did not split the implementations off into a new .cc file, but that
wouldn't be unreasonable.
Diffstat (limited to 'crawl-ref/source/mon-info.cc')
-rw-r--r-- | crawl-ref/source/mon-info.cc | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/crawl-ref/source/mon-info.cc b/crawl-ref/source/mon-info.cc index b4067ac699..8710c523a0 100644 --- a/crawl-ref/source/mon-info.cc +++ b/crawl-ref/source/mon-info.cc @@ -1742,20 +1742,6 @@ bool monster_info::ground_level() const return !airborne() && !is(MB_CLINGING); } -vector<mon_spellbook_type> monster_info::get_spellbooks() const -{ - vector<mon_spellbook_type> books; - - // special case for vault monsters: if they have a custom book, - // treat it as MST_GHOST - if (this->props.exists("custom_spells")) - books.push_back(MST_GHOST); - else - books = mons_spellbook_list(this->type); - - return books; -} - void get_monster_info(vector<monster_info>& mons) { vector<monster* > visible; |