diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-01-06 09:11:42 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-01-06 09:11:42 +0000 |
commit | 2052c5d6371a9c8e877fe594c769fea8ee78c282 (patch) | |
tree | a38e9e97e20c1fb7bbb461c29a7bd3fe692d11d3 /crawl-ref/source/beam.cc | |
parent | bc80cb35bd115a2b039d5531df5480a4f7d2631b (diff) | |
download | crawl-ref-2052c5d6371a9c8e877fe594c769fea8ee78c282.tar.gz crawl-ref-2052c5d6371a9c8e877fe594c769fea8ee78c282.zip |
[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
Diffstat (limited to 'crawl-ref/source/beam.cc')
-rw-r--r-- | crawl-ref/source/beam.cc | 25 |
1 files changed, 15 insertions, 10 deletions
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) ? |