From 6ab56c71296ac0ffa4475291fca5022af172419a Mon Sep 17 00:00:00 2001 From: Charles Otto Date: Sun, 15 Nov 2009 01:58:09 -0500 Subject: Delay adjustment for death channel --- crawl-ref/source/spells3.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'crawl-ref/source/spells3.cc') 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(god); -- cgit v1.2.3-54-g00ecf