diff options
author | Shayne Halvorson <N78291@gmail.com> | 2014-05-10 17:12:49 -0500 |
---|---|---|
committer | reaverb <reaverb.Crawl@gmail.com> | 2014-05-14 22:11:08 -0400 |
commit | e31251231736f9371999ccadea973b450281b6e3 (patch) | |
tree | 9c1a34578a7e7496c46391280afb13f5a0c3e551 /crawl-ref/source/player-reacts.cc | |
parent | 3632d78e45e7f7fa2ed87037cc7960c4d4389a32 (diff) | |
download | crawl-ref-e31251231736f9371999ccadea973b450281b6e3.tar.gz crawl-ref-e31251231736f9371999ccadea973b450281b6e3.zip |
Replace corrosion with a temporary effect.
If your equipment would have been corroded under the old system, you now
get a temporary (but stacking) -5 AC and -3 weapon damage. Corrosion
against armour-wearing monsters instead halves their AC.
Committer's notes:
Fixed whitespace and fit to Trunk
Added Corrosion entry to hiscores.cc
The original patch showed the slaying malus on the weapon, which may
be preferable to a status light.
gammafunk noted that ouch.cc iterates over equipment when deciding
when to corrode, this might make less sense under the new system.
-reaverb
Diffstat (limited to 'crawl-ref/source/player-reacts.cc')
-rw-r--r-- | crawl-ref/source/player-reacts.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/crawl-ref/source/player-reacts.cc b/crawl-ref/source/player-reacts.cc index 454251b863..24cc6a770d 100644 --- a/crawl-ref/source/player-reacts.cc +++ b/crawl-ref/source/player-reacts.cc @@ -1022,6 +1022,14 @@ static void _decrement_durations() _decrement_a_duration(DUR_SAP_MAGIC, delay, "Your magic seems less tainted."); + if (_decrement_a_duration(DUR_CORROSION, delay, + "You repair your equipment.")) + { + you.props["corrosion_amount"] = 0; + you.redraw_armour_class = true; + you.wield_change = true; + } + if (!you.duration[DUR_SAP_MAGIC]) { _decrement_a_duration(DUR_MAGIC_SAPPED, delay, |