From 5ce0d0260a82bfb4b60e52b85070e08c867d14eb Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Wed, 12 Mar 2008 16:43:37 +0000 Subject: 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 --- crawl-ref/source/initfile.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/initfile.cc') 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 = -- cgit v1.2.3-54-g00ecf