summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/initfile.cc
diff options
context:
space:
mode:
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 =