From 300c2888605863ceb8f5345f2cdfba646833e7ed Mon Sep 17 00:00:00 2001 From: dshaligram Date: Fri, 1 Dec 2006 15:23:51 +0000 Subject: Minor tweaks to greedy-explore: * Don't make overly fine GREEDY_PICKUP distinction. * GREEDY_PICKUP always interrupts explore. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@539 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/delay.cc | 8 +++----- crawl-ref/source/initfile.cc | 5 +++-- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/crawl-ref/source/delay.cc b/crawl-ref/source/delay.cc index 204d10f488..be0673e69d 100644 --- a/crawl-ref/source/delay.cc +++ b/crawl-ref/source/delay.cc @@ -359,11 +359,9 @@ void handle_delay( void ) switch (delay.type) { case DELAY_AUTOPICKUP: - // Ask the player if they want to stop explore to examine - // the loot, but only if we picked up at least one item - // that the character did not throw. - int estop = (you.running == RMODE_EXPLORE_GREEDY - && delay.parm1)? ES_GREEDY_PICKUP : ES_PICKUP; + const int estop = + you.running == RMODE_EXPLORE_GREEDY? + ES_GREEDY_PICKUP : ES_PICKUP; if ((Options.explore_stop & estop) && prompt_stop_explore(estop)) stop_delay(); break; diff --git a/crawl-ref/source/initfile.cc b/crawl-ref/source/initfile.cc index 19fbf8cae9..c87f7265be 100644 --- a/crawl-ref/source/initfile.cc +++ b/crawl-ref/source/initfile.cc @@ -623,11 +623,12 @@ void game_options::reset_options() stash_tracking = STM_ALL; - explore_stop = ES_ITEM | ES_STAIR | ES_SHOP | ES_ALTAR; + explore_stop = ES_ITEM | ES_STAIR | ES_SHOP | ES_ALTAR + | ES_GREEDY_PICKUP; // The prompt conditions will be combined into explore_stop after // reading options. - explore_stop_prompt = ES_GREEDY_PICKUP; + explore_stop_prompt = ES_NONE; safe_zero_exp = true; target_zero_exp = false; -- cgit v1.2.3-54-g00ecf