summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/itemname.cc
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-14 08:04:39 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-14 08:04:39 +0000
commit0a14dac08b6339e154870297c2035567a5197a6a (patch)
tree4e8c7868988dc4b93479be9a1241230f3b48c7ac /crawl-ref/source/itemname.cc
parent8457ded2704858f5d6f7f7db5f7c0c8756f5fd47 (diff)
downloadcrawl-ref-0a14dac08b6339e154870297c2035567a5197a6a.tar.gz
crawl-ref-0a14dac08b6339e154870297c2035567a5197a6a.zip
Use the menu item colour prefixes with note_items, so that (for example)
you can only note identified books, or you can note picking up unidentified randarts. When an item is bought from a shop, mpr() a line about the item, so that you can use note_messages to keep note of everything you've bought. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5811 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/itemname.cc')
-rw-r--r--crawl-ref/source/itemname.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/itemname.cc b/crawl-ref/source/itemname.cc
index 0e0441d786..d557138d8e 100644
--- a/crawl-ref/source/itemname.cc
+++ b/crawl-ref/source/itemname.cc
@@ -2145,7 +2145,8 @@ bool is_interesting_item( const item_def& item )
return (true);
}
- const std::string iname = item.name(DESC_PLAIN);
+ const std::string iname = menu_colour_item_prefix(item, false)
+ + item.name(DESC_PLAIN);
for (unsigned i = 0; i < Options.note_items.size(); ++i)
if (Options.note_items[i].matches(iname))
return (true);