summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/decks.cc
diff options
context:
space:
mode:
authorCharles Otto <ottochar@gmail.com>2009-11-15 01:55:49 -0500
committerCharles Otto <ottochar@gmail.com>2009-11-15 23:46:33 -0500
commitb83fbd21504bbb265ec533c2eaffbe9b17b782fd (patch)
treea6f29e173f2159cb227389773d02208ddf8f0c04 /crawl-ref/source/decks.cc
parentb7146954ad091407e92804cbf0a371b4a8f435db (diff)
downloadcrawl-ref-b83fbd21504bbb265ec533c2eaffbe9b17b782fd.tar.gz
crawl-ref-b83fbd21504bbb265ec533c2eaffbe9b17b782fd.zip
Delay adjustment for cteleport from the portal card
Diffstat (limited to 'crawl-ref/source/decks.cc')
-rw-r--r--crawl-ref/source/decks.cc5
1 files changed, 3 insertions, 2 deletions
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 );