summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/notes.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-08 11:35:20 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-08 11:35:20 +0000
commit973509a558e93af8c9ba7ea70a860f5f51d3c718 (patch)
tree4a9a11f288b47f261cce2b65199142b9ba3f2658 /crawl-ref/source/notes.cc
parent9e2952d470e02deab56ae8e2ea8773a8ab1662b7 (diff)
downloadcrawl-ref-973509a558e93af8c9ba7ea70a860f5f51d3c718.tar.gz
crawl-ref-973509a558e93af8c9ba7ea70a860f5f51d3c718.zip
Note improvements (1749776). Double notes are possible if regexps
are careless. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1797 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/notes.cc')
-rw-r--r--crawl-ref/source/notes.cc9
1 files changed, 2 insertions, 7 deletions
diff --git a/crawl-ref/source/notes.cc b/crawl-ref/source/notes.cc
index 3f3e1124ed..1d913205ab 100644
--- a/crawl-ref/source/notes.cc
+++ b/crawl-ref/source/notes.cc
@@ -102,6 +102,8 @@ static bool is_noteworthy( const Note& note )
note.type == NOTE_GOD_GIFT ||
note.type == NOTE_GET_MUTATION ||
note.type == NOTE_LOSE_MUTATION ||
+ note.type == NOTE_GET_ITEM ||
+ note.type == NOTE_ID_ITEM ||
note.type == NOTE_SEEN_MONSTER ||
note.type == NOTE_KILL_MONSTER ||
note.type == NOTE_POLY_MONSTER ||
@@ -174,13 +176,6 @@ static bool is_noteworthy( const Note& note )
if ( rnote.first == note.first && rnote.second == note.second )
return false;
break;
- case NOTE_ID_ITEM:
- case NOTE_GET_ITEM:
- /* re-id'ing an item, e.g. second copy of book, isn't
- noteworthy */
- if ( rnote.name == note.name )
- return false;
- break;
case NOTE_HP_CHANGE:
/* not if we have a recent warning */
if ( (note.turn - rnote.turn < 5) &&