diff options
author | Charles Otto <ottochar@gmail.com> | 2009-11-15 01:14:09 -0500 |
---|---|---|
committer | Charles Otto <ottochar@gmail.com> | 2009-11-15 23:46:28 -0500 |
commit | 3a9d60e74902be7b9b196808cb1a88aa03ea84c3 (patch) | |
tree | e584e6138a749a44139536f8462fabfc78963adb /crawl-ref/source/main.cc | |
parent | bd50c076d36322b58a7231a2300d1f391846da87 (diff) | |
download | crawl-ref-3a9d60e74902be7b9b196808cb1a88aa03ea84c3.tar.gz crawl-ref-3a9d60e74902be7b9b196808cb1a88aa03ea84c3.zip |
Moidfy DUR_TRANSFORMATION to be delay based.
Diffstat (limited to 'crawl-ref/source/main.cc')
-rw-r--r-- | crawl-ref/source/main.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/main.cc b/crawl-ref/source/main.cc index 7a8b162b12..15ba2340d1 100644 --- a/crawl-ref/source/main.cc +++ b/crawl-ref/source/main.cc @@ -2252,7 +2252,7 @@ static void _decrement_durations() //jmf: More flexible weapon branding code. int last_value = you.duration[DUR_WEAPON_BRAND]; - if(last_value > 0) + if (last_value > 0) { you.duration[DUR_WEAPON_BRAND] -= delay; @@ -2303,7 +2303,7 @@ static void _decrement_durations() // Vampire bat transformations are permanent (until ended). if (you.species != SP_VAMPIRE || !player_in_bat_form() - || you.duration[DUR_TRANSFORMATION] <= 5) + || you.duration[DUR_TRANSFORMATION] <= 5 * BASELINE_DELAY) { if (_decrement_a_duration(DUR_TRANSFORMATION, delay, NULL, random2(3), "Your transformation is almost over.")) |