summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/beam.cc
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-01 09:26:40 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-01 09:26:40 +0000
commit3e4e26b227d45f1a3f33a3adf1ff25f3b02a79dc (patch)
treebf100acfc5d1644f40ca927e0eb5f4a3ff810e79 /crawl-ref/source/beam.cc
parent94e3fadcc3e1c6931409d6a4b7e1cb714ec94076 (diff)
downloadcrawl-ref-3e4e26b227d45f1a3f33a3adf1ff25f3b02a79dc.tar.gz
crawl-ref-3e4e26b227d45f1a3f33a3adf1ff25f3b02a79dc.zip
Make initial sanctuary be circular in shape rather than square.
Remove non-harmless clouds when laying down sanctuary, and don't allow non-harmless clouds to speard into sanctuary or be placed on it. Don't let explosions spread into sanctuary (probably needs a flavour message). If a giant spore or ball lightning somehow explodes while in sanctuary then give a message about Zin containing it's explosion, and skip the call to explosion(). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6284 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/beam.cc')
-rw-r--r--crawl-ref/source/beam.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc
index 983651bd42..1b71cd7711 100644
--- a/crawl-ref/source/beam.cc
+++ b/crawl-ref/source/beam.cc
@@ -5482,6 +5482,10 @@ static void _explosion_map( bolt &beam, int x, int y,
if (count > 10*r)
return;
+ // 3. check sanctuary
+ if (is_sanctuary(beam.target_x + x, beam.target_y + y))
+ return;
+
// 3. check to see if we're blocked by something
// specifically, we're blocked by WALLS. Not
// statues, idols, etc.