diff options
author | Chris Campbell <chriscampbell89@gmail.com> | 2014-05-06 15:08:15 +0100 |
---|---|---|
committer | Steve Melenchuk <smelenchuk@gmail.com> | 2014-05-07 18:23:32 -0600 |
commit | 9782ad96da64914bcd653c0699efe7924e8910f6 (patch) | |
tree | e210069b11a645c9ce597e7dd73890e284c982b2 /crawl-ref/source/godprayer.cc | |
parent | 62419d47668b34f798cbb109dfba23c838606e44 (diff) | |
download | crawl-ref-9782ad96da64914bcd653c0699efe7924e8910f6.tar.gz crawl-ref-9782ad96da64914bcd653c0699efe7924e8910f6.zip |
Make a note when duplicating an item under Gozag or gaining Qazlal's resistance gift
Diffstat (limited to 'crawl-ref/source/godprayer.cc')
-rw-r--r-- | crawl-ref/source/godprayer.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/godprayer.cc b/crawl-ref/source/godprayer.cc index a672619d05..1a57507e66 100644 --- a/crawl-ref/source/godprayer.cc +++ b/crawl-ref/source/godprayer.cc @@ -297,6 +297,8 @@ static bool _altar_prayer() simple_god_message(message.c_str()); you.one_time_ability_used.set(you.religion); + take_note(Note(NOTE_ID_ITEM, 0, 0, + j->name(DESC_A).c_str(), "duplicated by Gozag")); return true; } if (prompted) @@ -332,19 +334,23 @@ static bool _altar_prayer() case 0: you.attribute[ATTR_DIVINE_FIRE_RES] = 1; simple_god_message(" grants you protection from fire!"); + take_note(Note(NOTE_GOD_GIFT, you.religion, 0, "rF+")); break; case 1: you.attribute[ATTR_DIVINE_COLD_RES] = 1; simple_god_message(" grants you protection from cold!"); + take_note(Note(NOTE_GOD_GIFT, you.religion, 0, "rC+")); break; case 2: you.attribute[ATTR_DIVINE_ELEC_RES] = 1; simple_god_message(" grants you protection from electricity!"); + take_note(Note(NOTE_GOD_GIFT, you.religion, 0, "rElec")); break; case 3: you.attribute[ATTR_DIVINE_AC] = 1; simple_god_message( " grants you protection from physical attacks!"); + take_note(Note(NOTE_GOD_GIFT, you.religion, 0, "AC+3")); you.redraw_armour_class = true; break; } |