From 753f2ca4d4ab46449aba87ea7f532c437e59f37d Mon Sep 17 00:00:00 2001 From: Charles Otto Date: Sun, 15 Nov 2009 02:22:57 -0500 Subject: Delay adjustment for lowered MR and jivya's slimify --- crawl-ref/source/abl-show.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source/abl-show.cc') 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; -- cgit v1.2.3-54-g00ecf