summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/misc.h
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-10-03 20:13:05 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-10-03 20:13:05 +0000
commitf681507d16fe97426545dffe4c2827bb878f5f7f (patch)
treec6512341f85e465934ee828f8264a15bcb015e6d /crawl-ref/source/misc.h
parentc07f2c46323c57f9d5699293e3e4458d5bbacde5 (diff)
downloadcrawl-ref-f681507d16fe97426545dffe4c2827bb878f5f7f.tar.gz
crawl-ref-f681507d16fe97426545dffe4c2827bb878f5f7f.zip
Add an auto_exclude option that will automatically set a travel
exclusion if any monster on this list is encountered during exploration and it's either asleep or stationary. This also works during manual exploration to cover cases where only the first monster is announced and stops autoexplore but there are more monsters in the room that would fit the criteria, such as in the oklob vaults. (Players who insist on exploring manually will have to simply leave this option empty.) Once you kill the monster (or someone else does it for you, as long as you are there to watch it) or it wakes up with you in sight, this exclusion automatically is removed again. By default the setting is: auto_exclude = oklob plant,silver statue,orange crystal statue git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7109 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/misc.h')
-rw-r--r--crawl-ref/source/misc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/misc.h b/crawl-ref/source/misc.h
index 21fc63889c..efccdec0c7 100644
--- a/crawl-ref/source/misc.h
+++ b/crawl-ref/source/misc.h
@@ -72,6 +72,8 @@ std::string weird_sound();
void curare_hits_player(int agent, int degree);
bool mons_is_safe(const monsters *mon, bool want_move = false);
+bool need_auto_exclude(const monsters *mon, bool sleepy = false);
+void remove_auto_exclude(const monsters *mon, bool sleepy = false);
std::vector<monsters*> get_nearby_monsters(bool want_move = false,
bool just_check = false,