diff options
author | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-12-17 10:03:47 +0000 |
---|---|---|
committer | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-12-17 10:03:47 +0000 |
commit | d459948cef28e17a4008352da97eeb43dd58f93e (patch) | |
tree | dbfa12466d251f65a073cef2c4e222df20a2eb86 /crawl-ref/source/initfile.cc | |
parent | eab76c4ea51dbaf2a7602774278a31283b9459f4 (diff) | |
download | crawl-ref-d459948cef28e17a4008352da97eeb43dd58f93e.tar.gz crawl-ref-d459948cef28e17a4008352da97eeb43dd58f93e.zip |
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
Diffstat (limited to 'crawl-ref/source/initfile.cc')
-rw-r--r-- | crawl-ref/source/initfile.cc | 6 |
1 files changed, 6 insertions, 0 deletions
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 = |