From 2fdb9bf3159ff508ace17afa23a295db175cc573 Mon Sep 17 00:00:00 2001 From: Charles Otto Date: Sun, 15 Nov 2009 01:37:59 -0500 Subject: Convert some sources of temporary insulation to delays Specifically potions of resistance and the helm card. --- crawl-ref/source/decks.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/decks.cc') diff --git a/crawl-ref/source/decks.cc b/crawl-ref/source/decks.cc index 5b26c0d37e..65190511b9 100644 --- a/crawl-ref/source/decks.cc +++ b/crawl-ref/source/decks.cc @@ -1820,7 +1820,8 @@ static void _helm_card(int power, deck_rarity_type rarity) if (x_chance_in_y(num_resists, 4-i)) { // Add a temporary resistance. - you.duration[possible_resists[i]] += random2(power/7) + 1; + int duration = (random2(power/7) + 1) * BASELINE_DELAY; + you.duration[possible_resists[i]] += duration; msg::stream << "You feel resistant to " << resist_names[i] << '.' << std::endl; --num_resists; -- cgit v1.2.3-54-g00ecf