summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monstuff.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-12 04:55:50 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-12 04:55:50 +0000
commit76b79d4cfbb5791396ed38b4e3e57dfe977c21d3 (patch)
tree7d8e7c3e836cb417f313b4f448fe7406c6b03f5c /crawl-ref/source/monstuff.cc
parent3aaa5e00050a0f7a3027ceb9dc6cb8663d4eb968 (diff)
downloadcrawl-ref-76b79d4cfbb5791396ed38b4e3e57dfe977c21d3.tar.gz
crawl-ref-76b79d4cfbb5791396ed38b4e3e57dfe977c21d3.zip
Clean up handling of killing mutators or rotters (i.e., chaotic beings),
and make them become enraged by your lawful aura if you start worshipping Zin. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5750 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/monstuff.cc')
-rw-r--r--crawl-ref/source/monstuff.cc29
1 files changed, 2 insertions, 27 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc
index 7f8506f0a6..5f48b208f1 100644
--- a/crawl-ref/source/monstuff.cc
+++ b/crawl-ref/source/monstuff.cc
@@ -626,31 +626,6 @@ static bool _monster_avoided_death(monsters *monster, killer_type killer, int i)
return (false);
}
-static bool _is_mons_mutator_or_rotter(monsters *mons)
-{
- if (mons->has_ench(ENCH_GLOWING_SHAPESHIFTER, ENCH_SHAPESHIFTER))
- return true;
-
- if (mons->has_spell(SPELL_POLYMORPH_OTHER))
- return true;
-
- const int attk_flavour = mons_attack_spec(mons, 0).flavour;
- return (attk_flavour == AF_MUTATE || attk_flavour == AF_ROT);
-}
-
-bool is_mons_poisoner(monsters *mons)
-{
- if (mons_corpse_effect(mons->type) == CE_POISONOUS)
- return true;
-
- const int attk_flavour = mons_attack_spec(mons, 0).flavour;
- return (attk_flavour == AF_POISON
- || attk_flavour == AF_POISON_NASTY
- || attk_flavour == AF_POISON_MEDIUM
- || attk_flavour == AF_POISON_STRONG
- || attk_flavour == AF_POISON_STR);
-}
-
static bool _slime_pit_unlock(bool silent)
{
unset_level_flags(LFLAG_NO_TELE_CONTROL, silent);
@@ -926,9 +901,9 @@ void monster_die(monsters *monster, killer_type killer, int i, bool silent)
monster->hit_dice, true, monster);
}
- if (_is_mons_mutator_or_rotter(monster))
+ if (mons_is_chaotic(monster))
{
- did_god_conduct(DID_KILL_MUTATOR_OR_ROTTER,
+ did_god_conduct(DID_KILL_CHAOTIC,
monster->hit_dice, true, monster);
}