diff options
author | Charles Otto <ottochar@gmail.com> | 2009-11-15 00:58:40 -0500 |
---|---|---|
committer | Charles Otto <ottochar@gmail.com> | 2009-11-15 23:46:26 -0500 |
commit | bd50c076d36322b58a7231a2300d1f391846da87 (patch) | |
tree | 6eeba8182133bd7ce2a2980d509f7034c48bb9f1 /crawl-ref/source/spells2.cc | |
parent | b9151ca4e5fe8245f00cc998eb8179e6146b4a54 (diff) | |
download | crawl-ref-bd50c076d36322b58a7231a2300d1f391846da87.tar.gz crawl-ref-bd50c076d36322b58a7231a2300d1f391846da87.zip |
Modify temporary brand spells to be delay based
Diffstat (limited to 'crawl-ref/source/spells2.cc')
-rw-r--r-- | crawl-ref/source/spells2.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/spells2.cc b/crawl-ref/source/spells2.cc index 8a325aba27..649c516bf0 100644 --- a/crawl-ref/source/spells2.cc +++ b/crawl-ref/source/spells2.cc @@ -368,10 +368,10 @@ bool brand_weapon(brand_type which_brand, int power) const int dur_change = duration_affected + roll_dice(2, power); - you.duration[DUR_WEAPON_BRAND] += dur_change; + you.duration[DUR_WEAPON_BRAND] += dur_change * BASELINE_DELAY; - if (you.duration[DUR_WEAPON_BRAND] > 50) - you.duration[DUR_WEAPON_BRAND] = 50; + if (you.duration[DUR_WEAPON_BRAND] > 50 * BASELINE_DELAY) + you.duration[DUR_WEAPON_BRAND] = 50 * BASELINE_DELAY; return (true); } |