summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-abil.h
diff options
context:
space:
mode:
authorDracoOmega <draco_omega@live.com>2013-03-10 19:14:16 -0230
committerDracoOmega <draco_omega@live.com>2013-03-11 16:38:47 -0230
commita0b0f0243cfe5971f50184ad2688034fc2c8f2ab (patch)
treea8fe31fc838643b29a07d182f0de372327b126a2 /crawl-ref/source/mon-abil.h
parent4a659799ab21cb615ece32e70c27c28f91bf92cd (diff)
downloadcrawl-ref-a0b0f0243cfe5971f50184ad2688034fc2c8f2ab.tar.gz
crawl-ref-a0b0f0243cfe5971f50184ad2688034fc2c8f2ab.zip
Make Zin's Imprison ability less picky about its surroundings
Imprison will now push monsters adjacent to the target out of the way of the prison if there is any room for them to go. Also, Zins' divine power will not fail to imprison monsters standing next to such unremarkable objects as fountains (or water, or stairs, or many other things). Instead, the old feature will be preserved and restored when the prison expires. (This means that doors are no longer destroyed by this ability, though traps still are) Things which still create obstacles for imprison are features which are solid but not opaque (eg: statues, trees) or creatures which are immobile.
Diffstat (limited to 'crawl-ref/source/mon-abil.h')
-rw-r--r--crawl-ref/source/mon-abil.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/mon-abil.h b/crawl-ref/source/mon-abil.h
index 848cbde773..4212216b3b 100644
--- a/crawl-ref/source/mon-abil.h
+++ b/crawl-ref/source/mon-abil.h
@@ -28,4 +28,8 @@ void move_demon_tentacle(monster * tentacle);
void ancient_zyme_sicken(monster* mons);
void starcursed_merge(monster* mon, bool forced);
+bool has_push_space(const coord_def& pos, actor* act);
+bool get_push_space(const coord_def& pos, coord_def& newpos,
+ actor* act, bool ignore_tension = false);
+
#endif