diff options
author | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-10-11 05:04:23 +0000 |
---|---|---|
committer | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-10-11 05:04:23 +0000 |
commit | 8472752a584308d3d300906a230bae4bdf67445f (patch) | |
tree | 91a082d9e6f4b2f0a67f599b8287c6b3caffaaf8 /crawl-ref/source/items.cc | |
parent | 37bace0de351260e14b6e1102e2f8f101d2bb162 (diff) | |
download | crawl-ref-8472752a584308d3d300906a230bae4bdf67445f.tar.gz crawl-ref-8472752a584308d3d300906a230bae4bdf67445f.zip |
Oops, was using UNIQ_LOST_IN_ABYSS wrongly.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2420 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/items.cc')
-rw-r--r-- | crawl-ref/source/items.cc | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/crawl-ref/source/items.cc b/crawl-ref/source/items.cc index c50d7e5efc..7e873542d2 100644 --- a/crawl-ref/source/items.cc +++ b/crawl-ref/source/items.cc @@ -522,15 +522,16 @@ void destroy_item( int dest ) static void handle_gone_item(const item_def &item) { - if (item.base_type == OBJ_ORBS) + if (you.level_type == LEVEL_ABYSS + && place_type(item.orig_place) == LEVEL_ABYSS + && !(item.flags & ISFLAG_BEEN_IN_INV)) { - set_unique_item_status(OBJ_ORBS, item.sub_type, - UNIQ_LOST_IN_ABYSS); - } - else if (is_fixed_artefact(item)) - { - set_unique_item_status(OBJ_WEAPONS, item.special, - UNIQ_LOST_IN_ABYSS); + if (item.base_type == OBJ_ORBS) + set_unique_item_status(OBJ_ORBS, item.sub_type, + UNIQ_LOST_IN_ABYSS); + else if (is_fixed_artefact(item)) + set_unique_item_status(OBJ_WEAPONS, item.special, + UNIQ_LOST_IN_ABYSS); } if (is_rune(item)) |