summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/showsymb.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-10-18 00:43:02 +0200
committerAdam Borowski <kilobyte@angband.pl>2012-10-18 01:09:09 +0200
commit3c0c5f3e7b75290ae0c00fbcf2a81b8bc9881255 (patch)
tree9b9e13e2901cb5b69f0b422a0561a1727e02a89f /crawl-ref/source/showsymb.cc
parent74c377595af3e819b5656e390d0488c67c9923a6 (diff)
downloadcrawl-ref-3c0c5f3e7b75290ae0c00fbcf2a81b8bc9881255.tar.gz
crawl-ref-3c0c5f3e7b75290ae0c00fbcf2a81b8bc9881255.zip
Allow colouring/reglyphing items based on their filter prefixes.
These are partially redundant with stash prefixes, it'd be good to unify these two sets somehow.
Diffstat (limited to 'crawl-ref/source/showsymb.cc')
-rw-r--r--crawl-ref/source/showsymb.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/showsymb.cc b/crawl-ref/source/showsymb.cc
index 80544488ec..5bba0d2c5a 100644
--- a/crawl-ref/source/showsymb.cc
+++ b/crawl-ref/source/showsymb.cc
@@ -11,6 +11,7 @@
#include "colour.h"
#include "env.h"
+#include "itemname.h"
#include "libutil.h"
#include "map_knowledge.h"
#include "mon-util.h"
@@ -210,6 +211,7 @@ static cglyph_t _get_item_override(const item_def &item)
return g;
string name = stash_annotate_item(STASH_LUA_SEARCH_ANNOTATE, &item)
+ + " {" + filtering_item_prefix(item, false) + "} "
+ item.name(DESC_PLAIN);
{