diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-07-04 21:18:28 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-07-04 21:18:28 +0000 |
commit | adf10d7dd27e29e7cfd6ce3d7d0a16fb29e6ce5c (patch) | |
tree | 3bea1eb6e474e58d0aa2ac78334259048bcae904 /crawl-ref/source/spl-util.cc | |
parent | a51373bd73dcf4a99fa895ad24508ce5af2d426a (diff) | |
download | crawl-ref-adf10d7dd27e29e7cfd6ce3d7d0a16fb29e6ce5c.tar.gz crawl-ref-adf10d7dd27e29e7cfd6ce3d7d0a16fb29e6ce5c.zip |
Fix 2815574: Venom card not waking monsters.
Fix 2815185: Not updating wield display for rotting chunks.
Fix 2812496: Wrong message when attempting to chop with unwieldable
weapons. (Small patch by rafalmaj.)
Fix 2811476: Turn autopickup back on when gaining see invisible
(mutation, ring, artefact, spell).
Fix 2806314: Remove coinflip() for Sandblast range. Wielding rocks now
guarantees range of 2.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10096 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spl-util.cc')
-rw-r--r-- | crawl-ref/source/spl-util.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/crawl-ref/source/spl-util.cc b/crawl-ref/source/spl-util.cc index 494ccbb50e..871f6a7ac9 100644 --- a/crawl-ref/source/spl-util.cc +++ b/crawl-ref/source/spl-util.cc @@ -974,13 +974,12 @@ int spell_power_cap(spell_type spell) return (_seekspell(spell)->power_cap); } -// Sandblast range is 1 if not wielding rocks, 1-2 if you are. -// For targetting purposes, of course, be optimistic about range. +// Sandblast range is 1 if not wielding rocks, 2 if you are. static int _sandblast_range(int pow, bool real_cast) { int res = 1; - if (wielding_rocks() && (!real_cast || coinflip())) + if (wielding_rocks()) res = 2; return (res); |