From 664bcb001295eee155ad14e40bb71446689d0063 Mon Sep 17 00:00:00 2001 From: haranp Date: Wed, 7 Nov 2007 19:10:55 +0000 Subject: Runes no longer need ID [1826900] git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2791 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/itemname.cc | 7 +------ crawl-ref/source/itemprop.cc | 7 ++++++- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/crawl-ref/source/itemname.cc b/crawl-ref/source/itemname.cc index f7f89d8aa6..26210874c8 100644 --- a/crawl-ref/source/itemname.cc +++ b/crawl-ref/source/itemname.cc @@ -1387,12 +1387,7 @@ std::string item_def::name_aux( description_level_type desc, case OBJ_MISCELLANY: if ( item_typ == MISC_RUNE_OF_ZOT ) - { - buff << rune_type_name(it_plus) << " rune"; - - if (know_type) - buff << " of Zot"; - } + buff << rune_type_name(it_plus) << " rune of Zot"; else { if ( is_deck(*this) ) diff --git a/crawl-ref/source/itemprop.cc b/crawl-ref/source/itemprop.cc index 1841a8e856..e0630da891 100644 --- a/crawl-ref/source/itemprop.cc +++ b/crawl-ref/source/itemprop.cc @@ -555,8 +555,13 @@ unsigned long full_ident_mask( const item_def& item ) case OBJ_FOOD: flagset = 0; break; - case OBJ_BOOKS: case OBJ_MISCELLANY: + if ( item.sub_type == MISC_RUNE_OF_ZOT ) + flagset = 0; + else + flagset = ISFLAG_KNOW_TYPE; + break; + case OBJ_BOOKS: case OBJ_ORBS: case OBJ_SCROLLS: case OBJ_POTIONS: -- cgit v1.2.3-54-g00ecf