summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-util.cc
diff options
context:
space:
mode:
authorDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-11-10 11:07:59 -0600
committerDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-11-10 11:07:59 -0600
commita8e32820e3c5e721486f8baf42b58e63b00e6c07 (patch)
tree09b9f0de09495e2450d7d8dd249bfe5136e1fc96 /crawl-ref/source/mon-util.cc
parent64336d12b0e30861c3eb9d8a9262e328635c95a6 (diff)
downloadcrawl-ref-a8e32820e3c5e721486f8baf42b58e63b00e6c07.tar.gz
crawl-ref-a8e32820e3c5e721486f8baf42b58e63b00e6c07.zip
Add explanatory comment and, for now, a FIXME to _get_spellbook_list().
Diffstat (limited to 'crawl-ref/source/mon-util.cc')
-rw-r--r--crawl-ref/source/mon-util.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/crawl-ref/source/mon-util.cc b/crawl-ref/source/mon-util.cc
index 8f35a290e5..1342a571b8 100644
--- a/crawl-ref/source/mon-util.cc
+++ b/crawl-ref/source/mon-util.cc
@@ -1358,6 +1358,14 @@ monster_type random_draconian_monster_species()
return static_cast<monster_type>(MONS_BLACK_DRACONIAN + random2(num_drac));
}
+// Note: For consistent behavior in player_will_anger_monster(), all
+// spellbooks a given monster can get here should produce the same
+// return values in is_holy_spell(), is_evil_spell(), and
+// is_chaotic_spell().
+//
+// FIXME: This is not true for one set of spellbooks; MST_WIZARD_IV
+// contains the evil Banishment spell, but the other MST_WIZARD-type
+// spellbooks contain no evil spells.
static bool _get_spellbook_list(mon_spellbook_type book[6],
monster_type mon_type)
{