diff options
-rw-r--r-- | crawl-ref/source/invent.cc | 3 | ||||
-rw-r--r-- | crawl-ref/source/itemprop.cc | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/invent.cc b/crawl-ref/source/invent.cc index e438d15ab1..2db3364076 100644 --- a/crawl-ref/source/invent.cc +++ b/crawl-ref/source/invent.cc @@ -271,6 +271,9 @@ void InvMenu::load_inv_items(int item_selector, case OBJ_WEAPONS: s = "You aren't carrying any weapons."; break; + case OSEL_UNIDENT: + s = "You don't have any unidentified items."; + break; default: s = "You aren't carrying any such object."; break; diff --git a/crawl-ref/source/itemprop.cc b/crawl-ref/source/itemprop.cc index 20724ebca9..0b631c3045 100644 --- a/crawl-ref/source/itemprop.cc +++ b/crawl-ref/source/itemprop.cc @@ -510,6 +510,10 @@ unsigned long full_ident_mask( const item_def& item ) default: break; } + + if (item_type_known(item)) + flagset &= (~ISFLAG_KNOW_TYPE); + if ( is_random_artefact(item) || is_fixed_artefact(item) ) { |