From b9151ca4e5fe8245f00cc998eb8179e6146b4a54 Mon Sep 17 00:00:00 2001 From: Charles Otto Date: Sun, 15 Nov 2009 00:36:33 -0500 Subject: Modify silence to use delay not turn count --- crawl-ref/source/spells4.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source/spells4.cc') diff --git a/crawl-ref/source/spells4.cc b/crawl-ref/source/spells4.cc index 6970ceb668..68c61ad0f9 100644 --- a/crawl-ref/source/spells4.cc +++ b/crawl-ref/source/spells4.cc @@ -757,10 +757,12 @@ void cast_silence(int pow) you.attribute[ATTR_WAS_SILENCED] = 1; - you.duration[DUR_SILENCE] += 10 + random2avg( pow, 2 ); + int value = 10 + random2avg( pow, 2 ); + value *= BASELINE_DELAY; + you.duration[DUR_SILENCE] += value; - if (you.duration[DUR_SILENCE] > 100) - you.duration[DUR_SILENCE] = 100; + if (you.duration[DUR_SILENCE] > 100 * BASELINE_DELAY) + you.duration[DUR_SILENCE] = 100 * BASELINE_DELAY; if (you.beheld()) { -- cgit v1.2.3-54-g00ecf