diff options
author | Shmuale Mark <shm.mark@gmail.com> | 2014-04-29 00:15:43 -0400 |
---|---|---|
committer | Shmuale Mark <shm.mark@gmail.com> | 2014-04-29 00:18:58 -0400 |
commit | b1d562d9869bbad4e80748cea216f2e4d1ea891d (patch) | |
tree | b4c999a3f76ac60a13ca9f309458058d3ff192c0 /crawl-ref/source/player-equip.cc | |
parent | 2659849dd6c9d7b4915bd511e006f367593d2a7f (diff) | |
download | crawl-ref-b1d562d9869bbad4e80748cea216f2e4d1ea891d.tar.gz crawl-ref-b1d562d9869bbad4e80748cea216f2e4d1ea891d.zip |
Make the AC display update upon wielding an unrand with ARTP_AC (johnny0, #8465).
I removed the message since randarts with +/-/AC/EV ARTPs aren't
possible, and accidentally removed the check that tells the screen
to re-generate the AC/EV values.
Diffstat (limited to 'crawl-ref/source/player-equip.cc')
-rw-r--r-- | crawl-ref/source/player-equip.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/crawl-ref/source/player-equip.cc b/crawl-ref/source/player-equip.cc index f4a13a2c8d..fbb9a0665d 100644 --- a/crawl-ref/source/player-equip.cc +++ b/crawl-ref/source/player-equip.cc @@ -228,6 +228,12 @@ static void _equip_artefact_effect(item_def &item, bool *show_msgs, bool unmeld) artefact_known_props_t known; artefact_wpn_properties(item, proprt, known); + if (proprt[ARTP_AC]) + you.redraw_armour_class = true; + + if (proprt[ARTP_EVASION]) + you.redraw_evasion = true; + if (proprt[ARTP_EYESIGHT]) autotoggle_autopickup(false); @@ -284,6 +290,12 @@ static void _unequip_artefact_effect(item_def &item, artefact_wpn_properties(item, proprt, known); const bool msg = !show_msgs || *show_msgs; + if (proprt[ARTP_AC]) + you.redraw_armour_class = true; + + if (proprt[ARTP_EVASION]) + you.redraw_evasion = true; + if (proprt[ARTP_HP]) _calc_hp_artefact(); |