diff options
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); } } |