summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/status.cc
diff options
context:
space:
mode:
authorShayne Halvorson <N78291@gmail.com>2014-05-10 17:12:49 -0500
committerreaverb <reaverb.Crawl@gmail.com>2014-05-14 22:11:08 -0400
commite31251231736f9371999ccadea973b450281b6e3 (patch)
tree9c1a34578a7e7496c46391280afb13f5a0c3e551 /crawl-ref/source/status.cc
parent3632d78e45e7f7fa2ed87037cc7960c4d4389a32 (diff)
downloadcrawl-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/status.cc')
-rw-r--r--crawl-ref/source/status.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/crawl-ref/source/status.cc b/crawl-ref/source/status.cc
index ed0cae69ae..ce25d6ead5 100644
--- a/crawl-ref/source/status.cc
+++ b/crawl-ref/source/status.cc
@@ -176,6 +176,8 @@ static duration_def duration_data[] =
LIGHTBLUE, "rElec+", "protected from electricity", "Qazlal is protecting you from electricity." },
{ DUR_QAZLAL_AC, false,
LIGHTBLUE, "", "protected from physical damage", "Qazlal is protecting you from physical damage." },
+ { DUR_CORROSION, false,
+ RED, "Corr", "corroded equipment", "Your equipment is corroded." },
};
static int duration_index[NUM_DURATIONS];
@@ -305,6 +307,12 @@ bool fill_status_info(int status, status_info* inf)
// completing or overriding the defaults set above.
switch (status)
{
+
+ case DUR_CORROSION:
+ inf->light_text = make_stringf("Corr (%d)",
+ (-3 * you.props["corrosion_amount"].get_int()));
+ break;
+
case DUR_CONTROL_TELEPORT:
if (!allow_control_teleport(true))
inf->light_colour = DARKGREY;