diff options
author | Stefan O'Rear <stefanor@cox.net> | 2009-12-30 01:47:57 -0800 |
---|---|---|
committer | Stefan O'Rear <stefanor@cox.net> | 2009-12-30 01:47:57 -0800 |
commit | 4e7ce852fffc07900790e7923dd381b776b82599 (patch) | |
tree | cefc56edcff360cec79f16a6053bcd8f2c2b3f08 /crawl-ref/source/spells4.cc | |
parent | 9483afb14439b650bda657d4f14c6a8dfdfc9e66 (diff) | |
download | crawl-ref-4e7ce852fffc07900790e7923dd381b776b82599.tar.gz crawl-ref-4e7ce852fffc07900790e7923dd381b776b82599.zip |
Deny apportation of items in deep water / lava
Diffstat (limited to 'crawl-ref/source/spells4.cc')
-rw-r--r-- | crawl-ref/source/spells4.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/crawl-ref/source/spells4.cc b/crawl-ref/source/spells4.cc index 9f3f03d736..03dbf76e72 100644 --- a/crawl-ref/source/spells4.cc +++ b/crawl-ref/source/spells4.cc @@ -1720,6 +1720,15 @@ bool cast_apportation(int pow, const coord_def& where) return (false); } + // Letting mostly-melee characters spam apport after every Shoals + // fight seems like it has too much grinding potential. We could + // weaken this for high power. + if (grd(where) == DNGN_DEEP_WATER || grd(where) == DNGN_LAVA) + { + mpr("The density of the terrain blocks your spell."); + return (false); + } + // Let's look at the top item in that square... // And don't allow apporting from shop inventories. const int item_idx = igrd(where); |