summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells3.cc
diff options
context:
space:
mode:
authorCharles Otto <ottochar@gmail.com>2009-11-15 01:58:09 -0500
committerCharles Otto <ottochar@gmail.com>2009-11-15 23:46:34 -0500
commit6ab56c71296ac0ffa4475291fca5022af172419a (patch)
treee0a03b760087e8d39e6b33f20c01ec8344338f1f /crawl-ref/source/spells3.cc
parentb83fbd21504bbb265ec533c2eaffbe9b17b782fd (diff)
downloadcrawl-ref-6ab56c71296ac0ffa4475291fca5022af172419a.tar.gz
crawl-ref-6ab56c71296ac0ffa4475291fca5022af172419a.zip
Delay adjustment for death channel
Diffstat (limited to 'crawl-ref/source/spells3.cc')
-rw-r--r--crawl-ref/source/spells3.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/crawl-ref/source/spells3.cc b/crawl-ref/source/spells3.cc
index f8f244cc8b..639e7dfa06 100644
--- a/crawl-ref/source/spells3.cc
+++ b/crawl-ref/source/spells3.cc
@@ -1347,16 +1347,18 @@ bool cast_death_channel(int pow, god_type god)
{
bool success = false;
- if (you.duration[DUR_DEATH_CHANNEL] < 30)
+ if (you.duration[DUR_DEATH_CHANNEL] < 30 * BASELINE_DELAY)
{
success = true;
mpr("Malign forces permeate your being, awaiting release.");
- you.duration[DUR_DEATH_CHANNEL] += 15 + random2(1 + (pow / 3));
+ int addition = 15 + random2(1 + (pow / 3));
+ addition *= BASELINE_DELAY;
+ you.duration[DUR_DEATH_CHANNEL] += addition;
- if (you.duration[DUR_DEATH_CHANNEL] > 100)
- you.duration[DUR_DEATH_CHANNEL] = 100;
+ if (you.duration[DUR_DEATH_CHANNEL] > 100 * BASELINE_DELAY)
+ you.duration[DUR_DEATH_CHANNEL] = 100 * BASELINE_DELAY;
if (god != GOD_NO_GOD)
you.attribute[ATTR_DIVINE_DEATH_CHANNEL] = static_cast<int>(god);