summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/initfile.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2006-12-02 12:07:59 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2006-12-02 12:07:59 +0000
commitfa3b58bbc845e824e835eda9230abac20528c561 (patch)
tree43a7f5281f61e01a07d8f9a2cc04b4c973e0a0e0 /crawl-ref/source/initfile.cc
parent42d11f45385dc9ec3235e3292ecfc7f7411e764e (diff)
downloadcrawl-ref-fa3b58bbc845e824e835eda9230abac20528c561.tar.gz
crawl-ref-fa3b58bbc845e824e835eda9230abac20528c561.zip
Greedy-explore tweaks: speedup by not double-floodfilling, and handle inability
to pick stuff up gracefully. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@541 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/initfile.cc')
-rw-r--r--crawl-ref/source/initfile.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/crawl-ref/source/initfile.cc b/crawl-ref/source/initfile.cc
index c87f7265be..529ab76e3a 100644
--- a/crawl-ref/source/initfile.cc
+++ b/crawl-ref/source/initfile.cc
@@ -629,6 +629,8 @@ void game_options::reset_options()
// The prompt conditions will be combined into explore_stop after
// reading options.
explore_stop_prompt = ES_NONE;
+
+ explore_item_greed = 10;
safe_zero_exp = true;
target_zero_exp = false;
@@ -1944,6 +1946,14 @@ void game_options::read_option_line(const std::string &str, bool runscript)
else
explore_stop_prompt |= new_conditions;
}
+ else if (key == "explore_item_greed")
+ {
+ explore_item_greed = atoi( field.c_str() );
+ if (explore_item_greed > 1000)
+ explore_item_greed = 1000;
+ else if (explore_item_greed < -1000)
+ explore_item_greed = -1000;
+ }
else if (key == "stash_tracking")
{
stash_tracking =