summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgammafunk <gammafunk@gmail.com>2014-08-04 23:48:01 -0500
committergammafunk <gammafunk@gmail.com>2014-08-05 19:56:32 -0500
commit57b3fc90fd53850f7dc4e0e4fb6dd3d0ed48fedb (patch)
tree04e915ff7f3c3927b7717d831e7b98331896e01c
parent9bcff70278ca54d3944d17e4741429d86f4c4b64 (diff)
downloadcrawl-ref-57b3fc90fd53850f7dc4e0e4fb6dd3d0ed48fedb.tar.gz
crawl-ref-57b3fc90fd53850f7dc4e0e4fb6dd3d0ed48fedb.zip
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.
-rw-r--r--crawl-ref/source/effects.cc2
-rw-r--r--crawl-ref/source/player.cc5
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)
{