From f3181091e894c233e5490366233acab45ab6144b Mon Sep 17 00:00:00 2001 From: Charles Otto Date: Sun, 15 Nov 2009 15:13:08 -0500 Subject: Convert several more durations Change over durations for magic shield (this is from the helm card), TSO's divine shield, paralysis, and petrification. --- crawl-ref/source/player.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source/player.cc') diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index a36799c8f8..45b77308f5 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -6710,17 +6710,19 @@ void player::paralyse(actor *who, int str) mprf("You %s the ability to move!", paralysis ? "still haven't" : "suddenly lose"); + str *= BASELINE_DELAY; if (str > paralysis && (paralysis < 3 || one_chance_in(paralysis))) paralysis = str; - if (paralysis > 13) - paralysis = 13; + if (paralysis > 13 * BASELINE_DELAY) + paralysis = 13 * BASELINE_DELAY; } void player::petrify(actor *who, int str) { ASSERT(!crawl_state.arena); + str *= BASELINE_DELAY; int &petrif(duration[DUR_PETRIFIED]); mprf("You %s the ability to move!", @@ -6729,7 +6731,7 @@ void player::petrify(actor *who, int str) if (str > petrif && (petrif < 3 || one_chance_in(petrif))) petrif = str; - petrif = std::min(13, petrif); + petrif = std::min(13 * BASELINE_DELAY, petrif); } void player::slow_down(actor *foe, int str) -- cgit v1.2.3-54-g00ecf