diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-17 14:42:06 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-17 14:42:06 +0000 |
commit | ec77cae6ceff3f075c694d7d5cbabaec6d1d64b5 (patch) | |
tree | 1f9a9939a8508f009c13709852e3c879b2678a84 /crawl-ref/source/effects.cc | |
parent | a3583438b7b74f33d450f59d64a91b4c0684538c (diff) | |
download | crawl-ref-ec77cae6ceff3f075c694d7d5cbabaec6d1d64b5.tar.gz crawl-ref-ec77cae6ceff3f075c694d7d5cbabaec6d1d64b5.zip |
Fix [2581197]: Make glow status consistent with magical contamination by
fixing off-by-one errors when checking the latter.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9113 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/effects.cc')
-rw-r--r-- | crawl-ref/source/effects.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc index f13b2d70d1..9161e0f80e 100644 --- a/crawl-ref/source/effects.cc +++ b/crawl-ref/source/effects.cc @@ -3177,13 +3177,13 @@ void handle_time(long time_delta) // sufficiently used to beta 26's unkindness that we can use a lower // roll.) if (is_sanctuary(you.pos()) - && you.magic_contamination >= 5 + && you.magic_contamination > 5 && x_chance_in_y(you.magic_contamination + 1, 25)) { mpr("Your body momentarily shudders from a surge of wild " "energies until Zin's power calms it.", MSGCH_GOD); } - else if (you.magic_contamination >= 5 + else if (you.magic_contamination > 5 && x_chance_in_y(you.magic_contamination + 1, 25)) { mpr("Your body shudders with the violent release " @@ -3193,7 +3193,7 @@ void handle_time(long time_delta) // Undead enjoy extra contamination explosion damage because // the magical contamination has a harder time dissipating // through non-living flesh. :-) - if (you.magic_contamination >= 10 && coinflip()) + if (you.magic_contamination > 10 && coinflip()) { bolt beam; |