summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
diff options
context:
space:
mode:
authorCharles Otto <ottochar@gmail.com>2009-11-15 15:13:08 -0500
committerCharles Otto <ottochar@gmail.com>2009-11-15 23:46:46 -0500
commitf3181091e894c233e5490366233acab45ab6144b (patch)
tree4d7d07ee2623c1143b95f6d9b44bf9a91607b843 /crawl-ref/source/player.cc
parent0da3322c570c3e94859b94fe3bc747c01d1e1364 (diff)
downloadcrawl-ref-f3181091e894c233e5490366233acab45ab6144b.tar.gz
crawl-ref-f3181091e894c233e5490366233acab45ab6144b.zip
Convert several more durations
Change over durations for magic shield (this is from the helm card), TSO's divine shield, paralysis, and petrification.
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r--crawl-ref/source/player.cc8
1 files changed, 5 insertions, 3 deletions
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)