diff options
author | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-12-07 08:41:09 +0000 |
---|---|---|
committer | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-12-07 08:41:09 +0000 |
commit | e389d95705a390483c21191eec96a12824c6cb69 (patch) | |
tree | 5178d7db19c7f5391dee298194c59085947d494a /crawl-ref/source/delay.cc | |
parent | 0f4b659dddc446658c1cb6387dfdd03bcb758db5 (diff) | |
download | crawl-ref-e389d95705a390483c21191eec96a12824c6cb69.tar.gz crawl-ref-e389d95705a390483c21191eec96a12824c6cb69.zip |
Fix bug 2398346: don't record note on identify-by-wearing of mundane armour.
Fix some god gift autoinscription problems.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7762 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/delay.cc')
-rw-r--r-- | crawl-ref/source/delay.cc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/crawl-ref/source/delay.cc b/crawl-ref/source/delay.cc index a90afe48ca..bc9c19376b 100644 --- a/crawl-ref/source/delay.cc +++ b/crawl-ref/source/delay.cc @@ -1339,10 +1339,10 @@ void armour_wear_effects(const int item_slot) item_def &arm = you.inv[item_slot]; const bool was_known = item_type_known(arm); - if (is_random_artefact(arm)) - arm.flags |= ISFLAG_NOTED_ID; set_ident_flags(arm, ISFLAG_EQ_ARMOUR_MASK); + if (is_random_artefact(arm)) + arm.flags |= ISFLAG_NOTED_ID; const equipment_type eq_slot = get_armour_slot(arm); const bool melded = (arm.link == you.equip[eq_slot]); @@ -1352,10 +1352,6 @@ void armour_wear_effects(const int item_slot) { if (Options.autoinscribe_randarts && is_random_artefact( arm )) add_autoinscription( arm, randart_auto_inscription(arm)); - - // Make a note of it. - take_note(Note(NOTE_ID_ITEM, 0, 0, arm.name(DESC_NOCAP_A).c_str(), - origin_desc(arm).c_str())); } if (!melded) mprf("You finish putting on %s.", arm.name(DESC_NOCAP_YOUR).c_str()); |