diff options
author | Charles Otto <ottochar@gmail.com> | 2009-11-15 18:13:28 -0500 |
---|---|---|
committer | Charles Otto <ottochar@gmail.com> | 2009-11-15 23:46:53 -0500 |
commit | ec62dd87b6bbe338aa50dc503db2f999c2d352c3 (patch) | |
tree | e1e94611c9a702fbadd97e31fc06ffbe628ff82e /crawl-ref/source/spells1.cc | |
parent | f77c84bb4c94205933c5a0dc7a7eda82f5460103 (diff) | |
download | crawl-ref-ec62dd87b6bbe338aa50dc503db2f999c2d352c3.tar.gz crawl-ref-ec62dd87b6bbe338aa50dc503db2f999c2d352c3.zip |
Delay changes for corona, berserk, lev, and cfly
Diffstat (limited to 'crawl-ref/source/spells1.cc')
-rw-r--r-- | crawl-ref/source/spells1.cc | 9 |
1 files changed, 2 insertions, 7 deletions
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(); |