summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCharles Otto <ottochar@gmail.com>2009-11-15 02:10:44 -0500
committerCharles Otto <ottochar@gmail.com>2009-11-15 23:46:37 -0500
commit096aefc3992794a35d573555dd4e5e4d93fe1413 (patch)
tree30635aa595fe0f7f6003119e49e72ebbb9d8f313
parent91d651ec935a7bcba3897c0d438f9c627bf826b2 (diff)
downloadcrawl-ref-096aefc3992794a35d573555dd4e5e4d93fe1413.tar.gz
crawl-ref-096aefc3992794a35d573555dd4e5e4d93fe1413.zip
Delay adjustments for invisibility and the shadow card
-rw-r--r--crawl-ref/source/decks.cc4
-rw-r--r--crawl-ref/source/it_use2.cc8
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?