diff options
author | Charles Otto <ottochar@gmail.com> | 2009-11-15 02:22:57 -0500 |
---|---|---|
committer | Charles Otto <ottochar@gmail.com> | 2009-11-15 23:46:41 -0500 |
commit | 753f2ca4d4ab46449aba87ea7f532c437e59f37d (patch) | |
tree | a51ef4585966c96efa7da1a5f47303368900663b /crawl-ref/source/abl-show.cc | |
parent | bdd962a78180a6989597d5ab8d1e20172fcabaf0 (diff) | |
download | crawl-ref-753f2ca4d4ab46449aba87ea7f532c437e59f37d.tar.gz crawl-ref-753f2ca4d4ab46449aba87ea7f532c437e59f37d.zip |
Delay adjustment for lowered MR and jivya's slimify
Diffstat (limited to 'crawl-ref/source/abl-show.cc')
-rw-r--r-- | crawl-ref/source/abl-show.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/crawl-ref/source/abl-show.cc b/crawl-ref/source/abl-show.cc index 94d2f05b8f..8680f76495 100644 --- a/crawl-ref/source/abl-show.cc +++ b/crawl-ref/source/abl-show.cc @@ -2025,10 +2025,12 @@ static bool _do_ability(const ability_def& abil) } mprf(MSGCH_DURATION, "A thick mucus forms on %s.", msg.c_str()); - you.duration[DUR_SLIMIFY] += you.skills[SK_INVOCATIONS] * 3 / 2 + 3; + int addition = you.skills[SK_INVOCATIONS] * 3 / 2 + 3; - if (you.duration[DUR_SLIMIFY] > 100) - you.duration[DUR_SLIMIFY] = 100; + you.duration[DUR_SLIMIFY] += addition * BASELINE_DELAY; + + if (you.duration[DUR_SLIMIFY] > 100 * BASELINE_DELAY) + you.duration[DUR_SLIMIFY] = 100 * BASELINE_DELAY; exercise(SK_INVOCATIONS, 3 + random2(5)); break; |