summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/it_use2.cc
diff options
context:
space:
mode:
authorCharles Otto <ottochar@gmail.com>2009-11-15 18:13:28 -0500
committerCharles Otto <ottochar@gmail.com>2009-11-15 23:46:53 -0500
commitec62dd87b6bbe338aa50dc503db2f999c2d352c3 (patch)
treee1e94611c9a702fbadd97e31fc06ffbe628ff82e /crawl-ref/source/it_use2.cc
parentf77c84bb4c94205933c5a0dc7a7eda82f5460103 (diff)
downloadcrawl-ref-ec62dd87b6bbe338aa50dc503db2f999c2d352c3.tar.gz
crawl-ref-ec62dd87b6bbe338aa50dc503db2f999c2d352c3.zip
Delay changes for corona, berserk, lev, and cfly
Diffstat (limited to 'crawl-ref/source/it_use2.cc')
-rw-r--r--crawl-ref/source/it_use2.cc10
1 files changed, 4 insertions, 6 deletions
diff --git a/crawl-ref/source/it_use2.cc b/crawl-ref/source/it_use2.cc
index 35b0bc49da..c5f4ab302c 100644
--- a/crawl-ref/source/it_use2.cc
+++ b/crawl-ref/source/it_use2.cc
@@ -242,10 +242,7 @@ bool potion_effect(potion_type pot_eff, int pow, bool drank_it, bool was_known)
unmeld_one_equip(EQ_BOOTS);
}
- you.duration[DUR_LEVITATION] += 25 + random2(pow);
-
- if (you.duration[DUR_LEVITATION] > 100)
- you.duration[DUR_LEVITATION] = 100;
+ you.increase_duration(DUR_LEVITATION, 25 + random2(pow), 100);
burden_change();
break;
@@ -736,8 +733,9 @@ void unuse_artefact(const item_def &item, bool *show_msgs)
if (proprt[ARTP_NOISES] != 0)
you.attribute[ATTR_NOISES] = 0;
- if (proprt[ARTP_LEVITATE] != 0 && you.duration[DUR_LEVITATION] > 2
- && !you.permanent_levitation())
+ if (proprt[ARTP_LEVITATE] != 0
+ && you.duration[DUR_LEVITATION] > 2
+ && !you.permanent_levitation())
{
you.duration[DUR_LEVITATION] = 1;
}