diff options
author | Charles Otto <ottochar@gmail.com> | 2009-11-14 23:11:18 -0500 |
---|---|---|
committer | Charles Otto <ottochar@gmail.com> | 2009-11-15 23:46:20 -0500 |
commit | 69950a6dbd369a11ff0b4d0438aaf07890b57b29 (patch) | |
tree | ba6f009f5fea6288f1ffab5d8af7c7036dddfd26 /crawl-ref/source/player.cc | |
parent | 2a1149664ad5a73fc6a978394acbf680c18a2117 (diff) | |
download | crawl-ref-69950a6dbd369a11ff0b4d0438aaf07890b57b29.tar.gz crawl-ref-69950a6dbd369a11ff0b4d0438aaf07890b57b29.zip |
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.
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r-- | crawl-ref/source/player.cc | 10 |
1 files changed, 5 insertions, 5 deletions
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); |