From a8e32820e3c5e721486f8baf42b58e63b00e6c07 Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Tue, 10 Nov 2009 11:07:59 -0600 Subject: Add explanatory comment and, for now, a FIXME to _get_spellbook_list(). --- crawl-ref/source/mon-util.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'crawl-ref/source') 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(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) { -- cgit v1.2.3-54-g00ecf