summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/initfile.cc
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-31 01:03:57 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-31 01:03:57 +0000
commit336384033b1bfd1a7dab2df82b185481314051b7 (patch)
tree4bee92a140bf8997e909321a4c9e3ef71936b37c /crawl-ref/source/initfile.cc
parent5ed9c78ba083cbfab2ed0eeb720cd3de176940b0 (diff)
downloadcrawl-ref-336384033b1bfd1a7dab2df82b185481314051b7.tar.gz
crawl-ref-336384033b1bfd1a7dab2df82b185481314051b7.zip
Fixed greedy mode explore_stop so that "items" stops when non-autopickup
items come into view and "greedy_items" stops when autopickup items come into view. Also added the new explore_stop conditions "glowing_items", "artefacts" and "runes", which stops greedy explore when non-autopickup items which are glowing/rune/etc, artefacts and runes (respectively) come into view. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5352 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/initfile.cc')
-rw-r--r--crawl-ref/source/initfile.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/crawl-ref/source/initfile.cc b/crawl-ref/source/initfile.cc
index a21f306a7c..1eda3233f1 100644
--- a/crawl-ref/source/initfile.cc
+++ b/crawl-ref/source/initfile.cc
@@ -1509,6 +1509,14 @@ int game_options::read_explore_stop_conditions(const std::string &field) const
conditions |= ES_ALTAR;
else if (c == "greedy_item" || c == "greedy_items")
conditions |= ES_GREEDY_ITEM;
+ else if (c == "glowing" || c == "glowing_item"
+ || c == "glowing_items")
+ conditions |= ES_GLOWING_ITEM;
+ else if (c == "artefact" || c == "artefacts"
+ || c == "artifact" || c == "artifacts")
+ conditions |= ES_ARTEFACT;
+ else if (c == "rune" || c == "runes")
+ conditions |= ES_RUNE;
}
return (conditions);
}