From 08a05ceabdeee2bdb7f6257b9e5e5ae845159ab2 Mon Sep 17 00:00:00 2001 From: Charles Otto Date: Sat, 14 Nov 2009 23:14:47 -0500 Subject: Change DUR_SLEEP and DUR_BUILDING_RAGE durations Make DUR_SLEEP and DUR_BULIDING_RAGE durations proportional to baseline delay (well it hardly matters for DUR_BUILDING_RAGE). --- crawl-ref/source/decks.cc | 2 +- crawl-ref/source/player.cc | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'crawl-ref') diff --git a/crawl-ref/source/decks.cc b/crawl-ref/source/decks.cc index b57989a745..5b26c0d37e 100644 --- a/crawl-ref/source/decks.cc +++ b/crawl-ref/source/decks.cc @@ -1740,7 +1740,7 @@ static void _battle_lust_card(int power, deck_rarity_type rarity) } else if (power_level == 1) { - you.duration[DUR_BUILDING_RAGE] = 1; + you.duration[DUR_BUILDING_RAGE] = 1 * BASELINE_DELAY; mpr("You feel your rage building."); } else if (power_level == 0) diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index 1ea762be1a..22e4717f91 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -7016,6 +7016,7 @@ void player::hibernate(int) // Do this *after* redrawing the view, or viewwindow() will no-op. duration[DUR_SLEEP] = 3 + random2avg(5, 2); + duration[DUR_SLEEP] *= BASELINE_DELAY; } void player::put_to_sleep(int power) @@ -7033,6 +7034,7 @@ void player::put_to_sleep(int power) // As above, do this after redraw. duration[DUR_SLEEP] = 5 + random2avg(power / 10, 5); + duration[DUR_SLEEP] *= BASELINE_DELAY; } void player::awake() -- cgit v1.2.3-54-g00ecf