From 1f9e38751c81744f2e8d4ffb1aea7f3870ba9d5b Mon Sep 17 00:00:00 2001 From: haranp Date: Thu, 25 Sep 2008 17:13:23 +0000 Subject: Ranges redone. bolt no longer has a rangeMax, just a range. Almost all ranges are now capped by LOS. There are still some things missing, most noticeably randomizing ranges for the range-1-to-2 spells (e.g. Flame Tongue.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6984 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/spells1.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'crawl-ref/source/spells1.cc') diff --git a/crawl-ref/source/spells1.cc b/crawl-ref/source/spells1.cc index fcbe4e7e99..0ebd200152 100644 --- a/crawl-ref/source/spells1.cc +++ b/crawl-ref/source/spells1.cc @@ -274,7 +274,6 @@ void cast_chain_lightning(int pow) beam.beam_source = MHITYOU; beam.thrower = KILL_YOU_MISSILE; beam.range = 8; - beam.rangeMax = 8; beam.hit = AUTOMATIC_HIT; beam.type = dchar_glyph(DCHAR_FIRED_ZAP); beam.flavour = BEAM_ELECTRICITY; @@ -550,7 +549,6 @@ bool stinking_cloud( int pow, bolt &beem ) beem.name = "ball of vapour"; beem.colour = GREEN; beem.range = 6; - beem.rangeMax = 6; beem.damage = dice_def( 1, 0 ); beem.hit = 20; beem.type = dchar_glyph(DCHAR_FIRED_ZAP); @@ -691,6 +689,7 @@ static int _healing_spell(int healed, const coord_def where = coord_def(0,0)) spd.isValid = spell_direction(spd, beam, DIR_TARGET, you.religion == GOD_ELYVILON ? TARG_ANY : TARG_FRIEND, + LOS_RADIUS, true, true, true, "Heal whom?"); } else -- cgit v1.2.3-54-g00ecf