summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/initfile.cc
diff options
context:
space:
mode:
authorMatthew Cline <zelgadis@sourceforge.net>2009-11-22 00:19:13 -0800
committerMatthew Cline <zelgadis@sourceforge.net>2009-11-22 00:21:14 -0800
commit722243eb20be246b6042a36deb016f48091bb6aa (patch)
tree65a90ded496dc817c25ba4ff88d4efb7e1a8cb24 /crawl-ref/source/initfile.cc
parent41814e9593b3364fd0bdfae7ecb19d7dbd3ebb98 (diff)
downloadcrawl-ref-722243eb20be246b6042a36deb016f48091bb6aa.tar.gz
crawl-ref-722243eb20be246b6042a36deb016f48091bb6aa.zip
explore_stop: new condition greedy_pickup_thrown
explore_stop condition greedy_pickup_smart no longer stops for items which were thrown by the player. The new condition greedy_pickup_thrown can be used by those who wish to stop auto-explore when thrown items are auto-pickup'd.
Diffstat (limited to 'crawl-ref/source/initfile.cc')
-rw-r--r--crawl-ref/source/initfile.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/initfile.cc b/crawl-ref/source/initfile.cc
index 9a8be9dde2..744f72cb0a 100644
--- a/crawl-ref/source/initfile.cc
+++ b/crawl-ref/source/initfile.cc
@@ -1605,6 +1605,8 @@ int game_options::read_explore_stop_conditions(const std::string &field) const
conditions |= ES_GREEDY_PICKUP;
else if (c == "greedy_pickup_smart" || c == "greedy pickup smart")
conditions |= ES_GREEDY_PICKUP_SMART;
+ else if (c == "greedy_pickup_thrown" || c == "greedy pickup thrown")
+ conditions |= ES_GREEDY_PICKUP_THROWN;
else if (c == "shop" || c == "shops")
conditions |= ES_SHOP;
else if (c == "stair" || c == "stairs")