From bd19eb507dcd40d235ab26ae68c7d091aaeecb65 Mon Sep 17 00:00:00 2001 From: haranp Date: Sat, 13 Oct 2007 23:28:11 +0000 Subject: Fixed "shiny" and "embroidered" items not showing as white in abbreviated display. Fix bad merfolk energy. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2455 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/items.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/items.cc') diff --git a/crawl-ref/source/items.cc b/crawl-ref/source/items.cc index 1e5d7cb6cc..d14aa7ebd3 100644 --- a/crawl-ref/source/items.cc +++ b/crawl-ref/source/items.cc @@ -701,12 +701,16 @@ static int item_name_specialness(const item_def& item) std::string itname = item.name(DESC_PLAIN, false, false, false); lowercase(itname); + // FIXME Maybe we should replace this with a test of ISFLAG_COSMETIC_MASK? const bool item_runed = itname.find("runed ") != std::string::npos; const bool heav_runed = itname.find("heavily ") != std::string::npos; const bool item_glows = itname.find("glowing") != std::string::npos; - if ( item_glows || (item_runed && !heav_runed) ) + if ( item_glows || (item_runed && !heav_runed) || + get_equip_desc(item) == ISFLAG_EMBROIDERED_SHINY ) + { return 1; + } // You can tell artefacts, because they'll have a description which // rules out anything else. -- cgit v1.2.3-54-g00ecf