diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-07-14 12:57:54 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-07-14 12:57:54 +0000 |
commit | fc767d9b3b123f6bdf37e30b78200c06f042b570 (patch) | |
tree | 19bf1e97e82356ceecd881f93f6002436a9683b6 /crawl-ref/source/items.cc | |
parent | 8d572fb8435b02dc723c64318536ac38a5733eab (diff) | |
download | crawl-ref-fc767d9b3b123f6bdf37e30b78200c06f042b570.tar.gz crawl-ref-fc767d9b3b123f6bdf37e30b78200c06f042b570.zip |
Rewrite of the shopping code. Much cleaner now.
Hopefully I didn't break anything.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1861 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/items.cc')
-rw-r--r-- | crawl-ref/source/items.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/items.cc b/crawl-ref/source/items.cc index 926876ead5..e9c781c5ce 100644 --- a/crawl-ref/source/items.cc +++ b/crawl-ref/source/items.cc @@ -852,6 +852,11 @@ static void check_note_item(item_def &item) take_note(Note(NOTE_GET_ITEM, 0, 0, item.name(DESC_NOCAP_A).c_str(), origin_desc(item).c_str())); item.flags |= ISFLAG_NOTED_GET; + + // If it's already fully identified when picked up, don't take + // further notes. + if ( fully_identified(item) ) + item.flags |= ISFLAG_NOTED_ID; } } |