From b83fbd21504bbb265ec533c2eaffbe9b17b782fd Mon Sep 17 00:00:00 2001 From: Charles Otto Date: Sun, 15 Nov 2009 01:55:49 -0500 Subject: Delay adjustment for cteleport from the portal card --- crawl-ref/source/decks.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/decks.cc') diff --git a/crawl-ref/source/decks.cc b/crawl-ref/source/decks.cc index 65190511b9..6ce78c4488 100644 --- a/crawl-ref/source/decks.cc +++ b/crawl-ref/source/decks.cc @@ -1389,12 +1389,13 @@ static void _portal_card(int power, deck_rarity_type rarity) controlled = true; } + int threshold = 6 * BASELINE_DELAY; const bool was_controlled = player_control_teleport(); const bool short_control = (you.duration[DUR_CONTROL_TELEPORT] > 0 - && you.duration[DUR_CONTROL_TELEPORT] < 6); + && you.duration[DUR_CONTROL_TELEPORT] < threshold); if (controlled && (!was_controlled || short_control)) - you.duration[DUR_CONTROL_TELEPORT] = 6; // Long enough to kick in. + you.duration[DUR_CONTROL_TELEPORT] = threshold; // Long enough to kick in. if (instant) you_teleport_now( true ); -- cgit v1.2.3-54-g00ecf