From 2052c5d6371a9c8e877fe594c769fea8ee78c282 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Sat, 6 Jan 2007 09:11:42 +0000 Subject: [1627743] Indicate when a monster's paralysed (mons_is_paralysed may need fixing per Haran's comment). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@793 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/beam.cc | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) (limited to 'crawl-ref/source/beam.cc') diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc index 5c2146f964..2af4dd0a67 100644 --- a/crawl-ref/source/beam.cc +++ b/crawl-ref/source/beam.cc @@ -1857,13 +1857,15 @@ int mons_ench_f2(struct monsters *monster, struct bolt &pbolt) } // not hasted, slow it - if (!mons_has_ench(monster, ENCH_SLOW) - && mons_add_ench(monster, ENCH_SLOW)) + if (!mons_has_ench(monster, ENCH_SLOW) + && !mons_is_stationary(monster) + && mons_add_ench(monster, ENCH_SLOW)) { - // put in an exception for fungi, plants and other things you won't - // notice slow down. - if (simple_monster_message(monster, " seems to slow down.")) + if (!mons_is_paralysed(monster) + && simple_monster_message(monster, " seems to slow down.")) + { pbolt.obvious_effect = true; + } } return (MON_AFFECTED); @@ -1877,12 +1879,15 @@ int mons_ench_f2(struct monsters *monster, struct bolt &pbolt) } // not slowed, haste it - if (mons_add_ench(monster, ENCH_HASTE)) + if (!mons_has_ench(monster, ENCH_HASTE) + && !mons_is_stationary(monster) + && mons_add_ench(monster, ENCH_HASTE)) { - // put in an exception for fungi, plants and other things you won't - // notice speed up. - if (simple_monster_message(monster, " seems to speed up.")) + if (!mons_is_paralysed(monster) + && simple_monster_message(monster, " seems to speed up.")) + { pbolt.obvious_effect = true; + } } return (MON_AFFECTED); @@ -2014,7 +2019,7 @@ bool curare_hits_monster( const bolt &beam, if (hurted) { - simple_monster_message(monster, " appears to choke."); + simple_monster_message(monster, " convulses."); if ((monster->hit_points -= hurted) < 1) { const int thrower = YOU_KILL(beam.thrower) ? -- cgit v1.2.3-54-g00ecf