From 3e4e26b227d45f1a3f33a3adf1ff25f3b02a79dc Mon Sep 17 00:00:00 2001 From: zelgadis Date: Tue, 1 Jul 2008 09:26:40 +0000 Subject: 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 --- crawl-ref/source/beam.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crawl-ref/source/beam.cc') 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. -- cgit v1.2.3-54-g00ecf