summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-cast.cc
diff options
context:
space:
mode:
authorSteve Melenchuk <smelenchuk@gmail.com>2014-02-24 21:55:17 -0700
committerSteve Melenchuk <smelenchuk@gmail.com>2014-02-26 21:19:58 -0700
commit75deb85f6e81443628063de806a368df0c3b08a3 (patch)
treef273b4bd7fa2f970aa3803621bc477befcbf7cc9 /crawl-ref/source/spl-cast.cc
parent677420826d3fc95192aa22869fe859f2093952cc (diff)
downloadcrawl-ref-75deb85f6e81443628063de806a368df0c3b08a3.tar.gz
crawl-ref-75deb85f6e81443628063de806a368df0c3b08a3.zip
Rod of frigid destruction -> Rod of clouds.
Sprays clouds over a cone-shaped area in front of the caster. At low power it gives rain, mist, or noxious fumes; mid-tier gives flames, freezing vapour, or poison gas; high-tier gives one of three new cloud types - acidic fog, negative energy, or storm clouds. The targeter is from an experimental implementation of a spell called "Scattershot", hence the name and some of the functionality it provides which goes unused here.
Diffstat (limited to 'crawl-ref/source/spl-cast.cc')
-rw-r--r--crawl-ref/source/spl-cast.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/spl-cast.cc b/crawl-ref/source/spl-cast.cc
index fd39c22a2a..c29aece7cf 100644
--- a/crawl-ref/source/spl-cast.cc
+++ b/crawl-ref/source/spl-cast.cc
@@ -1127,6 +1127,8 @@ static targetter* _spell_targetter(spell_type spell, int pow, int range)
return new targetter_explosive_bolt(&you, pow, range);
case SPELL_GLACIATE:
return new targetter_cone(&you, range);
+ case SPELL_CLOUD_CONE:
+ return new targetter_shotgun(&you, range);
case SPELL_MAGIC_DART:
case SPELL_FORCE_LANCE:
case SPELL_SHOCK:
@@ -1559,6 +1561,8 @@ static spret_type _do_cast(spell_type spell, int powc,
case SPELL_CHAIN_OF_CHAOS:
return cast_chain_spell(SPELL_CHAIN_OF_CHAOS, powc, &you, fail);
+ case SPELL_CLOUD_CONE:
+ return cast_cloud_cone(&you, powc, target, fail);
// Summoning spells, and other spells that create new monsters.
// If a god is making you cast one of these spells, any monsters