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-03-12 16:43:37 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-03-12 16:43:37 +0000
commit5ce0d0260a82bfb4b60e52b85070e08c867d14eb (patch)
tree35356f34e8f3a7c569b45266347224d58bb6fd4a /crawl-ref/source/initfile.cc
parent95786b6d3fc7194f2e859eb015034878c5706e13 (diff)
downloadcrawl-ref-5ce0d0260a82bfb4b60e52b85070e08c867d14eb.tar.gz
crawl-ref-5ce0d0260a82bfb4b60e52b85070e08c867d14eb.zip
Modify the Zot trap "Do you really ...?" prompt to only accept "yes" as a
confirming answer, and add an option trap_prompt that, if set to true (the default) will prompt the player before stepping on known mechanical traps trapwalk.lua considers unsafe. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3611 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/initfile.cc')
-rw-r--r--crawl-ref/source/initfile.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/crawl-ref/source/initfile.cc b/crawl-ref/source/initfile.cc
index da5415202f..08d7c4a55c 100644
--- a/crawl-ref/source/initfile.cc
+++ b/crawl-ref/source/initfile.cc
@@ -741,7 +741,8 @@ void game_options::reset_options()
explore_greedy = true;
explore_improved = false;
-
+ trap_prompt = true;
+
target_zero_exp = false;
target_wrap = true;
target_oos = true;
@@ -2516,6 +2517,10 @@ void game_options::read_option_line(const std::string &str, bool runscript)
{
explore_improved = read_bool(field, explore_improved);
}
+ else if (key == "trap_prompt")
+ {
+ trap_prompt = read_bool(field, trap_prompt);
+ }
else if (key == "stash_tracking")
{
stash_tracking =