summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/initfile.cc
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/initfile.cc
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/initfile.cc')
-rw-r--r--crawl-ref/source/initfile.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/initfile.cc b/crawl-ref/source/initfile.cc
index ab9a548b7b..12b3f47370 100644
--- a/crawl-ref/source/initfile.cc
+++ b/crawl-ref/source/initfile.cc
@@ -2652,6 +2652,10 @@ void game_options::read_option_line(const std::string &str, bool runscript)
{
tc_disconnected = str_to_colour(field, tc_disconnected);
}
+ else if (key == "auto_exclude")
+ {
+ append_vector(auto_exclude, split_string(",", field));
+ }
else BOOL_OPTION(classic_item_colours);
else BOOL_OPTION(item_colour);
else BOOL_OPTION_NAMED("item_color", item_colour);