From 336384033b1bfd1a7dab2df82b185481314051b7 Mon Sep 17 00:00:00 2001 From: zelgadis Date: Sat, 31 May 2008 01:03:57 +0000 Subject: 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 --- crawl-ref/source/initfile.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'crawl-ref/source/initfile.cc') 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); } -- cgit v1.2.3-54-g00ecf