summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/abl-show.cc
diff options
context:
space:
mode:
authorCharles Otto <ottochar@gmail.com>2009-11-15 02:22:57 -0500
committerCharles Otto <ottochar@gmail.com>2009-11-15 23:46:41 -0500
commit753f2ca4d4ab46449aba87ea7f532c437e59f37d (patch)
treea51ef4585966c96efa7da1a5f47303368900663b /crawl-ref/source/abl-show.cc
parentbdd962a78180a6989597d5ab8d1e20172fcabaf0 (diff)
downloadcrawl-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.cc8
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;