summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/beam.h
diff options
context:
space:
mode:
authorSteve Melenchuk <smelenchuk@gmail.com>2012-07-11 14:13:35 -0600
committerSteve Melenchuk <smelenchuk@gmail.com>2012-07-11 14:13:35 -0600
commit30fc1177d68f5bf5a55636d058b07c87c047c28f (patch)
treedb494ed4786e2cb6715027b9d8ed44debc4c403e /crawl-ref/source/beam.h
parent59ea75df7436023d83c29fafa70fc573e594ff54 (diff)
downloadcrawl-ref-30fc1177d68f5bf5a55636d058b07c87c047c28f.tar.gz
crawl-ref-30fc1177d68f5bf5a55636d058b07c87c047c28f.zip
IMB tracer and targetting improvements.
IMB tracers now account for the possible explosion, so that the player will get appropriate warnings and IMB-wielding monsters will consider the affect that the spell could have on allies. Thus, this fixes 0005823. There's also now a dedicated targetter for IMB, employing the same code to determine what squares can be affected as the tracer, which has been split out from the relevant section of the beam code. Finally, on account of the above split, the IMB explosion code itself is now a bit cleaner.
Diffstat (limited to 'crawl-ref/source/beam.h')
-rw-r--r--crawl-ref/source/beam.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/beam.h b/crawl-ref/source/beam.h
index 36cd8e88dc..9941ca255a 100644
--- a/crawl-ref/source/beam.h
+++ b/crawl-ref/source/beam.h
@@ -329,6 +329,8 @@ bool napalm_monster(monster* mons, const actor* who, int levels = 1,
bool verbose = true);
void fire_tracer(const monster* mons, struct bolt &pbolt,
bool explode_only = false);
+bool imb_can_splash(coord_def origin, coord_def center,
+ std::vector<coord_def> path_taken, coord_def target);
spret_type zapping(zap_type ztype, int power, bolt &pbolt,
bool needs_tracer = false, const char* msg = NULL,
bool fail = false);