From 69950a6dbd369a11ff0b4d0438aaf07890b57b29 Mon Sep 17 00:00:00 2001 From: Charles Otto Date: Sat, 14 Nov 2009 23:11:18 -0500 Subject: Changes to _decrement_a_duration Make _decrement_a_duration accept a delay as a parameter, make all calls to decrement_a_duration give it a delay. Adjust the thresholds in get_expiration_threshold to be proportional to baseline delay. --- crawl-ref/source/player.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'crawl-ref/source/player.cc') diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index 92b30dc4bd..1ea762be1a 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -3341,7 +3341,7 @@ int get_expiration_threshold(duration_type dur) { case DUR_FIRE_SHIELD: case DUR_SILENCE: // no message - return (5); + return (5 * BASELINE_DELAY); case DUR_DEFLECT_MISSILES: case DUR_REPEL_MISSILES: @@ -3356,21 +3356,21 @@ int get_expiration_threshold(duration_type dur) case DUR_PHASE_SHIFT: case DUR_CONTROL_TELEPORT: case DUR_DEATH_CHANNEL: - return (6); + return (6 * BASELINE_DELAY); case DUR_LEVITATION: case DUR_TRANSFORMATION: // not on status case DUR_DEATHS_DOOR: // not on status case DUR_SLIMIFY: - return (10); + return (10 * BASELINE_DELAY); // These get no messages when they "flicker". case DUR_SAGE: case DUR_BARGAIN: - return (15); + return (15 * BASELINE_DELAY); case DUR_CONFUSING_TOUCH: - return (20); + return (20 * BASELINE_DELAY); default: return (0); -- cgit v1.2.3-54-g00ecf