summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells1.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-04-24 23:15:49 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-04-24 23:15:49 +0000
commit0b6df73ceeecd0a2361efbf2ffbbeeebdb7ecfdd (patch)
treeefd576cb08728ebd3f7233b2c2aa50913a314cb6 /crawl-ref/source/spells1.cc
parentfcf7c5191381b4cf90787d62ba8e448dd4a23a17 (diff)
downloadcrawl-ref-0b6df73ceeecd0a2361efbf2ffbbeeebdb7ecfdd.tar.gz
crawl-ref-0b6df73ceeecd0a2361efbf2ffbbeeebdb7ecfdd.zip
Try a bit harder to prevent reidentifying IDed items.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1361 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spells1.cc')
-rw-r--r--crawl-ref/source/spells1.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/spells1.cc b/crawl-ref/source/spells1.cc
index 1a1609dbda..bb5f9904f3 100644
--- a/crawl-ref/source/spells1.cc
+++ b/crawl-ref/source/spells1.cc
@@ -374,6 +374,11 @@ void identify(int power)
canned_msg( MSG_OK );
return;
}
+ if ( fully_identified(you.inv[item_slot]) )
+ {
+ mpr("Choose an unidentified item, or Esc to abort.");
+ continue;
+ }
set_ident_type( you.inv[item_slot].base_type,
you.inv[item_slot].sub_type, ID_KNOWN_TYPE );