summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells4.cc
diff options
context:
space:
mode:
authorCharles Otto <ottochar@gmail.com>2009-11-15 00:36:33 -0500
committerCharles Otto <ottochar@gmail.com>2009-11-15 23:46:25 -0500
commitb9151ca4e5fe8245f00cc998eb8179e6146b4a54 (patch)
tree052e41df3fdf6dfd532fe79d8a6bd54a71f1e094 /crawl-ref/source/spells4.cc
parent4dc2c63095a1ce190ee3ec8dc39b2b669dab174e (diff)
downloadcrawl-ref-b9151ca4e5fe8245f00cc998eb8179e6146b4a54.tar.gz
crawl-ref-b9151ca4e5fe8245f00cc998eb8179e6146b4a54.zip
Modify silence to use delay not turn count
Diffstat (limited to 'crawl-ref/source/spells4.cc')
-rw-r--r--crawl-ref/source/spells4.cc8
1 files changed, 5 insertions, 3 deletions
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())
{