From 57b3fc90fd53850f7dc4e0e4fb6dd3d0ed48fedb Mon Sep 17 00:00:00 2001 From: gammafunk Date: Mon, 4 Aug 2014 23:48:01 -0500 Subject: Make potions of resistance grant rCorr rCorr is less common with the removal of the preservation ego and recently less effective at blocking the corrosion effect. Adding rCorr to the potion increases the resistance's availability and falls reasonably under the umbrella of "temporary natural resistances" of the consumable. After the 0.15 release, we can consider if we want to add rCorr as to artefacts or as an ego for e.g. cloaks, possibly contingent on adding further monster acid attacks, in which case we can reconsider the potion if need be. --- crawl-ref/source/effects.cc | 2 +- crawl-ref/source/player.cc | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc index f8c4910ca1..1839e0dd3f 100644 --- a/crawl-ref/source/effects.cc +++ b/crawl-ref/source/effects.cc @@ -2831,7 +2831,7 @@ void corrode_actor(actor *act) // rCorr protects against 50% of corrosion. if (act->res_corr() && coinflip()) { - dprf("Amulet protects."); + dprf("rCorr protects."); return; } diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index e9954202dd..e583ffc3ab 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -1812,7 +1812,10 @@ bool player::res_corr(bool calc_unid, bool items) const return true; if (form == TRAN_WISP) - return 1; + return true; + + if (you.duration[DUR_RESISTANCE]) + return true; if (items) { -- cgit v1.2.3-54-g00ecf