From ec62dd87b6bbe338aa50dc503db2f999c2d352c3 Mon Sep 17 00:00:00 2001 From: Charles Otto Date: Sun, 15 Nov 2009 18:13:28 -0500 Subject: Delay changes for corona, berserk, lev, and cfly --- crawl-ref/source/spells1.cc | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'crawl-ref/source/spells1.cc') diff --git a/crawl-ref/source/spells1.cc b/crawl-ref/source/spells1.cc index 226319fb2b..c571f12e32 100644 --- a/crawl-ref/source/spells1.cc +++ b/crawl-ref/source/spells1.cc @@ -1453,13 +1453,8 @@ void cast_fly(int power) const int dur_change = 25 + random2(power) + random2(power); const bool was_levitating = you.airborne(); - you.duration[DUR_LEVITATION] += dur_change; - if (you.duration[DUR_LEVITATION] > 100) - you.duration[DUR_LEVITATION] = 100; - - you.duration[DUR_CONTROLLED_FLIGHT] += dur_change; - if (you.duration[DUR_CONTROLLED_FLIGHT] > 100) - you.duration[DUR_CONTROLLED_FLIGHT] = 100; + you.increase_duration(DUR_LEVITATION, dur_change, 100); + you.increase_duration(DUR_CONTROLLED_FLIGHT, dur_change, 100); burden_change(); -- cgit v1.2.3-54-g00ecf