summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/ouch.cc
diff options
context:
space:
mode:
authorStefan O'Rear <stefanor@cox.net>2009-11-02 00:08:28 -0800
committerStefan O'Rear <stefanor@cox.net>2009-11-02 00:08:28 -0800
commit945b0cd6507cb5453e099e0cc245706f70c87d98 (patch)
treebf34de1939ba603929fcfe15c06d7d079a467ab9 /crawl-ref/source/ouch.cc
parent22dc55568b1c6bbc4a3e3e9374acf0a889645810 (diff)
downloadcrawl-ref-945b0cd6507cb5453e099e0cc245706f70c87d98.tar.gz
crawl-ref-945b0cd6507cb5453e099e0cc245706f70c87d98.zip
Implement 'Icemail' mutation for new DS
Diffstat (limited to 'crawl-ref/source/ouch.cc')
-rw-r--r--crawl-ref/source/ouch.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/ouch.cc b/crawl-ref/source/ouch.cc
index 5fd554d40f..8a06b6357e 100644
--- a/crawl-ref/source/ouch.cc
+++ b/crawl-ref/source/ouch.cc
@@ -601,6 +601,13 @@ bool expose_player_to_element(beam_type flavour, int strength)
{
if (you.duration[DUR_CONDENSATION_SHIELD] > 0)
remove_condensation_shield();
+
+ if (you.mutation[MUT_ICEMAIL])
+ {
+ mpr("Your icy envelope dissipates!", MSGCH_DURATION);
+ you.duration[DUR_ICEMAIL_DEPLETED] = ICEMAIL_TIME;
+ you.redraw_armour_class = true;
+ }
}
if (strength <= 0)