summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-behv.h
diff options
context:
space:
mode:
authorMark Mackey <atomjack@users.sourceforge.net>2010-05-05 13:38:55 +0100
committerMark Mackey <atomjack@users.sourceforge.net>2010-05-05 13:38:55 +0100
commit6b5ecca7665ce73888ea0650e6ea5ab0b6a472a6 (patch)
treeb883ed587fe0a16da6a839f8d7f98cd9c9897ddc /crawl-ref/source/mon-behv.h
parenta1123dc70059adb0f59ec2ce444355246d46d2a3 (diff)
downloadcrawl-ref-6b5ecca7665ce73888ea0650e6ea5ab0b6a472a6.tar.gz
crawl-ref-6b5ecca7665ce73888ea0650e6ea5ab0b6a472a6.zip
Merge of the original myzotdef branch into the Crawl 0.6
release branch. Quite a few edits required...
Diffstat (limited to 'crawl-ref/source/mon-behv.h')
-rw-r--r--crawl-ref/source/mon-behv.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/crawl-ref/source/mon-behv.h b/crawl-ref/source/mon-behv.h
index fc12f95425..e2336ec9bb 100644
--- a/crawl-ref/source/mon-behv.h
+++ b/crawl-ref/source/mon-behv.h
@@ -47,4 +47,12 @@ bool mons_avoids_cloud(const monsters *monster, cloud_type cl_type,
bool mons_avoids_cloud(const monsters *monster, int cloud_num,
cloud_type *cl_type = NULL, bool placement = false);
+// For Zotdef: the target position of MHITYOU monsters is
+// the orb, if it's on the ground. Note that zotdef_target()
+// returns the orb position, or you.pos if the orb's not
+// on the ground.
+#define PLAYER_POS (game_is_zotdef()?zotdef_target():you.pos())
+
+coord_def zotdef_target();
+
#endif