summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/itemname.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-20 11:47:37 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-20 11:47:37 +0000
commit6052fa93471180670f18d1abad16b2a12cdcf1dc (patch)
treec6eab06e95c6c8d643990cb4e660b5fccd08c9cd /crawl-ref/source/itemname.cc
parentb926fb5cd10ca674313c3b8aa2bf99d6233db143 (diff)
downloadcrawl-ref-6052fa93471180670f18d1abad16b2a12cdcf1dc.tar.gz
crawl-ref-6052fa93471180670f18d1abad16b2a12cdcf1dc.zip
Finally fix 1868761: Books in shops being noted as identified over and
over again (when searching stashes). Also remove my recently added NOTE_FOUND_ORB_OR_RUNES in favour of the previously existing NOTE_GET_ITEM. Also I've noticed that this is probably already listed in the "milestones" - but what on earth are they? git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5150 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/itemname.cc')
-rw-r--r--crawl-ref/source/itemname.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/crawl-ref/source/itemname.cc b/crawl-ref/source/itemname.cc
index 14a8c72474..f299dbc8d1 100644
--- a/crawl-ref/source/itemname.cc
+++ b/crawl-ref/source/itemname.cc
@@ -2128,15 +2128,18 @@ static char retlet( int sed )
bool is_interesting_item( const item_def& item )
{
if (fully_identified(item)
- && (is_random_artefact(item) ||
- is_unrandom_artefact(item) ||
- is_fixed_artefact(item)))
+ && (is_random_artefact(item)
+ || is_unrandom_artefact(item)
+ || is_fixed_artefact(item)))
+ {
return (true);
+ }
const std::string iname = item.name(DESC_PLAIN);
for (unsigned i = 0; i < Options.note_items.size(); ++i)
if (Options.note_items[i].matches(iname))
return (true);
+
return (false);
}