From d459948cef28e17a4008352da97eeb43dd58f93e Mon Sep 17 00:00:00 2001 From: zelgadis Date: Mon, 17 Dec 2007 10:03:47 +0000 Subject: Experimental "improved" explore algorithm which can be turned on by adding "explore_improved=true" to crawlrc. The intent is to reduce backtracking and zig-zagging during auto-explore. Currently only works with non-greedy explore since I can't yet figure out how to intelligently combine it with greediness. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3084 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/initfile.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'crawl-ref/source/initfile.cc') diff --git a/crawl-ref/source/initfile.cc b/crawl-ref/source/initfile.cc index 5e66290cc5..9a8242cef9 100644 --- a/crawl-ref/source/initfile.cc +++ b/crawl-ref/source/initfile.cc @@ -684,6 +684,8 @@ void game_options::reset_options() explore_item_greed = 10; explore_greedy = false; + + explore_improved = false; target_zero_exp = false; target_wrap = true; @@ -2412,6 +2414,10 @@ void game_options::read_option_line(const std::string &str, bool runscript) { explore_greedy = read_bool(field, explore_greedy); } + else if (key == "explore_improved") + { + explore_improved = read_bool(field, explore_improved); + } else if (key == "stash_tracking") { stash_tracking = -- cgit v1.2.3-54-g00ecf