summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crawl-ref/source/it_use2.cc3
-rw-r--r--crawl-ref/source/spells1.cc8
2 files changed, 6 insertions, 5 deletions
diff --git a/crawl-ref/source/it_use2.cc b/crawl-ref/source/it_use2.cc
index c5f4ab302c..bbd9480716 100644
--- a/crawl-ref/source/it_use2.cc
+++ b/crawl-ref/source/it_use2.cc
@@ -273,7 +273,8 @@ bool potion_effect(potion_type pot_eff, int pow, bool drank_it, bool was_known)
case POT_PARALYSIS:
you.paralyse(NULL,
- (2 + random2( 6 + you.duration[DUR_PARALYSIS] )) / factor);
+ (2 + random2( 6 + you.duration[DUR_PARALYSIS]
+ / BASELINE_DELAY )) / factor);
xom_is_stimulated(64 / xom_factor);
break;
diff --git a/crawl-ref/source/spells1.cc b/crawl-ref/source/spells1.cc
index 370427be29..05c7452fa7 100644
--- a/crawl-ref/source/spells1.cc
+++ b/crawl-ref/source/spells1.cc
@@ -1115,11 +1115,11 @@ void cast_deaths_door(int pow)
set_hp( allowed_deaths_door_hp(), false );
deflate_hp( you.hp_max, false );
- you.duration[DUR_DEATHS_DOOR] = 10 + random2avg(13, 3)
- + (random2(pow) / 10);
+ you.set_duration(DUR_DEAHTS_DOOR, 10 + random2avg(13, 3)
+ + (random2(pow) / 10));
- if (you.duration[DUR_DEATHS_DOOR] > 25)
- you.duration[DUR_DEATHS_DOOR] = 23 + random2(5);
+ if (you.duration[DUR_DEATHS_DOOR] > 25 * BASELINE_DELAY)
+ you.duration[DUR_DEATHS_DOOR] = (23 + random2(5)) * BASELINE_DELAY;
}
return;