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/player.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/player.cc')
-rw-r--r-- | crawl-ref/source/player.cc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index 05ccf42770..1fcafdd60f 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -6873,17 +6873,13 @@ void player::backlight() else mpr("You are outlined in light."); - this->duration[DUR_CORONA] += random_range(15, 35); - if (this->duration[DUR_CORONA] > 250) - this->duration[DUR_CORONA] = 250; + you.increase_duration(DUR_CORONA, random_range(15, 35), 250); } else { mpr("You feel strangely conspicuous."); - this->duration[DUR_CORONA] += random_range(3, 5); - if (this->duration[DUR_CORONA] > 250) - this->duration[DUR_CORONA] = 250; + you.increase_duration(DUR_CORONA, random_range(3, 5), 250); } } |