summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2006-12-01 15:23:51 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2006-12-01 15:23:51 +0000
commit300c2888605863ceb8f5345f2cdfba646833e7ed (patch)
tree7a88739bef0b481ee389f069d4c8c92b1cf80bc2 /crawl-ref/source
parent5c65cedddfd6f3d893c7eaec03f3c8519e266d45 (diff)
downloadcrawl-ref-300c2888605863ceb8f5345f2cdfba646833e7ed.tar.gz
crawl-ref-300c2888605863ceb8f5345f2cdfba646833e7ed.zip
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
Diffstat (limited to 'crawl-ref/source')
-rw-r--r--crawl-ref/source/delay.cc8
-rw-r--r--crawl-ref/source/initfile.cc5
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;