summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-cast.cc
diff options
context:
space:
mode:
authorSteve Melenchuk <smelenchuk@gmail.com>2014-02-25 14:23:17 -0700
committerSteve Melenchuk <smelenchuk@gmail.com>2014-02-26 21:20:28 -0700
commit359569f0a7cc005214ae84427511059f71db10ad (patch)
tree2a5ef8f3cec1c3e90144241fcd191fe61292cd85 /crawl-ref/source/spl-cast.cc
parent2c0f31843e2b39ab2769200c9f67616d57e3decc (diff)
downloadcrawl-ref-359569f0a7cc005214ae84427511059f71db10ad.tar.gz
crawl-ref-359569f0a7cc005214ae84427511059f71db10ad.zip
Rod of demonology -> Rod of shadows.
Weaves shadow creatures roughly from D:<evocations power> (including out-of-depth D depths).
Diffstat (limited to 'crawl-ref/source/spl-cast.cc')
-rw-r--r--crawl-ref/source/spl-cast.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/crawl-ref/source/spl-cast.cc b/crawl-ref/source/spl-cast.cc
index c29aece7cf..dfe6986323 100644
--- a/crawl-ref/source/spl-cast.cc
+++ b/crawl-ref/source/spl-cast.cc
@@ -1629,7 +1629,7 @@ static spret_type _do_cast(spell_type spell, int powc,
return cast_summon_greater_demon(powc, god, fail);
case SPELL_SHADOW_CREATURES:
- return cast_shadow_creatures(false, god, fail);
+ return cast_shadow_creatures(spell, god, level_id::current(), fail);
case SPELL_SUMMON_HORRIBLE_THINGS:
return cast_summon_horrible_things(powc, god, fail);
@@ -1692,6 +1692,13 @@ static spret_type _do_cast(spell_type spell, int powc,
case SPELL_MASS_ABJURATION:
return cast_mass_abjuration(powc, fail);
+ case SPELL_WEAVE_SHADOWS:
+ {
+ level_id place(BRANCH_DUNGEON,
+ min(27, max(1, div_rand_round(powc, 3))));
+ return cast_shadow_creatures(spell, god, place, fail);
+ }
+
// XXX: I don't think any call to healing goes through here. --rla
case SPELL_MINOR_HEALING:
if (cast_healing(5, 5) < 0)