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/mon-info.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/mon-info.cc')
-rw-r--r-- | crawl-ref/source/mon-info.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/mon-info.cc b/crawl-ref/source/mon-info.cc index 2450f0dbe3..bef7307a04 100644 --- a/crawl-ref/source/mon-info.cc +++ b/crawl-ref/source/mon-info.cc @@ -198,6 +198,8 @@ static monster_info_flags ench_to_mb(const monster& mons, enchant_type ench) return MB_SAP_MAGIC; case ENCH_SHROUD: return MB_SHROUD; + case ENCH_CORROSION: + return MB_CORROSION; default: return NUM_MB_FLAGS; } @@ -1597,6 +1599,8 @@ vector<string> monster_info::attributes() const v.push_back("magic-sapped"); if (is(MB_SHROUD)) v.push_back("shrouded"); + if (is(MB_CORROSION)) + v.push_back("covered in acid"); return v; } |