summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/ouch.cc
diff options
context:
space:
mode:
authorPekka Lampila <pekka.lampila@iki.fi>2014-02-17 04:40:55 +0200
committerPekka Lampila <pekka.lampila@iki.fi>2014-02-17 04:44:29 +0200
commit7643984871ea19ba637aa3d117383969d5335988 (patch)
treeca5675635e45f084d0df2506f8779455b2f39e04 /crawl-ref/source/ouch.cc
parent6d263bff17afaba6edb675d117ab4fcbfbec40af (diff)
downloadcrawl-ref-7643984871ea19ba637aa3d117383969d5335988.tar.gz
crawl-ref-7643984871ea19ba637aa3d117383969d5335988.zip
Identify rCorr amulet when splashed with acid. (#8165)
Diffstat (limited to 'crawl-ref/source/ouch.cc')
-rw-r--r--crawl-ref/source/ouch.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/ouch.cc b/crawl-ref/source/ouch.cc
index cf08851a9f..93abfa01a4 100644
--- a/crawl-ref/source/ouch.cc
+++ b/crawl-ref/source/ouch.cc
@@ -430,7 +430,11 @@ void splash_with_acid(int acid_strength, int death_source, bool corrode_items,
mpr(hurt_msg ? hurt_msg : "The acid burns!");
if (post_res_dam < dam)
+ {
canned_msg(MSG_YOU_RESIST);
+ if (!player_res_acid(false, true))
+ maybe_id_resist(BEAM_ACID);
+ }
ouch(post_res_dam, death_source, KILLED_BY_ACID);
}