diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-02 14:27:05 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-02 14:27:05 +0000 |
commit | 783d701df6b0352a730c211be593d91c27b07b4a (patch) | |
tree | 91598741313efb1c4b8496e8fa3e3590f089968e /crawl-ref/source/mon-util.cc | |
parent | c5ffdfb13fef3e9bd72904c5d39c549ac2939704 (diff) | |
download | crawl-ref-783d701df6b0352a730c211be593d91c27b07b4a.tar.gz crawl-ref-783d701df6b0352a730c211be593d91c27b07b4a.zip |
Make the neutrality enchantment decay properly.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6336 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mon-util.cc')
-rw-r--r-- | crawl-ref/source/mon-util.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/crawl-ref/source/mon-util.cc b/crawl-ref/source/mon-util.cc index a19ca4cd6c..0840042d1a 100644 --- a/crawl-ref/source/mon-util.cc +++ b/crawl-ref/source/mon-util.cc @@ -5202,6 +5202,13 @@ void monsters::remove_enchantment_effect(const mon_enchant &me, bool quiet) behaviour_event(this, ME_EVAL); break; + case ENCH_NEUTRAL: + if (!quiet) + simple_monster_message(this, " is no longer neutral."); + + behaviour_event(this, ME_EVAL); + break; + case ENCH_PETRIFIED: if (!quiet) simple_monster_message(this, " is no longer petrified."); @@ -5216,6 +5223,7 @@ void monsters::remove_enchantment_effect(const mon_enchant &me, bool quiet) if (!quiet) simple_monster_message(this, " stops moving altogether!"); + behaviour_event(this, ME_EVAL); break; @@ -5597,6 +5605,7 @@ void monsters::apply_enchantment(const mon_enchant &me) case ENCH_HASTE: case ENCH_FEAR: case ENCH_PARALYSIS: + case ENCH_NEUTRAL: case ENCH_PETRIFYING: case ENCH_PETRIFIED: case ENCH_SICK: |