diff options
Diffstat (limited to 'crawl-ref/source')
-rw-r--r-- | crawl-ref/source/decks.cc | 4 | ||||
-rw-r--r-- | crawl-ref/source/it_use2.cc | 8 |
2 files changed, 7 insertions, 5 deletions
diff --git a/crawl-ref/source/decks.cc b/crawl-ref/source/decks.cc index 3947e0aeca..423e4ba337 100644 --- a/crawl-ref/source/decks.cc +++ b/crawl-ref/source/decks.cc @@ -1880,7 +1880,9 @@ static void _shadow_card(int power, deck_rarity_type rarity) { mpr(you.duration[DUR_STEALTH] ? "You feel more catlike." : "You feel stealthy."); - you.duration[DUR_STEALTH] += random2(power/4) + 1; + int duration = (random2(power/4) + 1 ) * BASELINE_DELAY; + + you.duration[DUR_STEALTH] += duration; } potion_effect(POT_INVISIBILITY, random2(power/4)); diff --git a/crawl-ref/source/it_use2.cc b/crawl-ref/source/it_use2.cc index 00a2c19a85..97089a9f85 100644 --- a/crawl-ref/source/it_use2.cc +++ b/crawl-ref/source/it_use2.cc @@ -328,12 +328,12 @@ bool potion_effect(potion_type pot_eff, int pow, bool drank_it, bool was_known) // Now multiple invisiblity casts aren't as good. -- bwr if (!you.duration[DUR_INVIS]) - you.duration[DUR_INVIS] = 15 + random2(pow); + you.duration[DUR_INVIS] = (15 + random2(pow)) * BASELINE_DELAY; else - you.duration[DUR_INVIS] += random2(pow); + you.duration[DUR_INVIS] += random2(pow) * BASELINE_DELAY; - if (you.duration[DUR_INVIS] > 100) - you.duration[DUR_INVIS] = 100; + if (you.duration[DUR_INVIS] > 100 * BASELINE_DELAY) + you.duration[DUR_INVIS] = 100 * BASELINE_DELAY; break; case POT_PORRIDGE: // oatmeal - always gluggy white/grey? |