diff options
author | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-05-31 01:03:57 +0000 |
---|---|---|
committer | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-05-31 01:03:57 +0000 |
commit | 336384033b1bfd1a7dab2df82b185481314051b7 (patch) | |
tree | 4bee92a140bf8997e909321a4c9e3ef71936b37c /crawl-ref/source/travel.h | |
parent | 5ed9c78ba083cbfab2ed0eeb720cd3de176940b0 (diff) | |
download | crawl-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/travel.h')
-rw-r--r-- | crawl-ref/source/travel.h | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/crawl-ref/source/travel.h b/crawl-ref/source/travel.h index 864207d029..8fcf639a73 100644 --- a/crawl-ref/source/travel.h +++ b/crawl-ref/source/travel.h @@ -165,15 +165,18 @@ extern travel_distance_grid_t travel_point_distance; enum explore_stop_type { - ES_NONE = 0x00, - ES_ITEM = 0x01, - ES_PICKUP = 0x02, - ES_GREEDY_PICKUP = 0x04, - ES_GREEDY_ITEM = 0x08, - ES_STAIR = 0x10, - ES_SHOP = 0x20, - ES_ALTAR = 0x40, - ES_PORTAL = 0x80 + ES_NONE = 0x000, + ES_ITEM = 0x001, + ES_PICKUP = 0x002, + ES_GREEDY_PICKUP = 0x004, + ES_GREEDY_ITEM = 0x008, + ES_STAIR = 0x010, + ES_SHOP = 0x020, + ES_ALTAR = 0x040, + ES_PORTAL = 0x080, + ES_GLOWING_ITEM = 0x100, + ES_ARTEFACT = 0x200, + ES_RUNE = 0x400 }; //////////////////////////////////////////////////////////////////////////// |