diff options
Diffstat (limited to 'crawl-ref/source/delay.cc')
-rw-r--r-- | crawl-ref/source/delay.cc | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/crawl-ref/source/delay.cc b/crawl-ref/source/delay.cc index fd1f3eac7b..d92591529c 100644 --- a/crawl-ref/source/delay.cc +++ b/crawl-ref/source/delay.cc @@ -33,6 +33,7 @@ #include "monstuff.h" #include "mon-util.h" #include "mstuff2.h" +#include "notes.h" #include "ouch.h" #include "output.h" #include "player.h" @@ -1246,11 +1247,19 @@ static 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 (Options.autoinscribe_randarts && is_random_artefact( arm ) - && !was_known) + + if (!was_known) { - add_autoinscription( arm, randart_auto_inscription(arm)); + 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())); } mprf("You finish putting on %s.", arm.name(DESC_NOCAP_YOUR).c_str()); |