From 8472752a584308d3d300906a230bae4bdf67445f Mon Sep 17 00:00:00 2001 From: zelgadis Date: Thu, 11 Oct 2007 05:04:23 +0000 Subject: 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 --- crawl-ref/source/items.cc | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'crawl-ref/source/items.cc') 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)) -- cgit v1.2.3-54-g00ecf