diff options
Diffstat (limited to 'crawl-ref/source/beam.cc')
-rw-r--r-- | crawl-ref/source/beam.cc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc index a2beb9d7be..20ddbb63d3 100644 --- a/crawl-ref/source/beam.cc +++ b/crawl-ref/source/beam.cc @@ -3081,6 +3081,22 @@ static int affect_player( struct bolt &beam ) // these colors are misapplied - see mons_ench_f2() {dlb} switch (beam.flavour) { + case BEAM_BACKLIGHT: + if (!you.invis) + { + if (you.backlight) + mpr("You glow brighter."); + else + mpr("You are outlined in light."); + + you.backlight += random_range(15, 35); + if (you.backlight > 250) + you.backlight = 250; + + beam.obvious_effect = true; + } + break; + case BEAM_POLYMORPH: if (MON_KILL(beam.thrower)) { |