From adf10d7dd27e29e7cfd6ce3d7d0a16fb29e6ce5c Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Sat, 4 Jul 2009 21:18:28 +0000 Subject: 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 --- crawl-ref/source/spl-util.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source/spl-util.cc') 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); -- cgit v1.2.3-54-g00ecf