From 0bf3ba2fa5ec7bcc08270277ca003b08992a5989 Mon Sep 17 00:00:00 2001 From: Waterpig <49160555+Majkl-J@users.noreply.github.com> Date: Thu, 1 Aug 2024 14:45:43 +0200 Subject: [PATCH] Fixes flashdark (#85454) ## About The Pull Request Flashdarks now actually produce darkness. The bugfix that broke this added their fix to them even though the bug didnt apply here. (#79240) ![image](https://github.com/user-attachments/assets/5c23ac5d-ce73-4b40-92c9-2c7c2770730b) closes https://github.com/tgstation/tgstation/issues/68638 ## Why It's Good For The Game A bugfix is good for the game. ## Changelog :cl: fix: Flashdarks now broduce darkness upon toggling /:cl: --- code/game/objects/items/devices/flashlight.dm | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/code/game/objects/items/devices/flashlight.dm b/code/game/objects/items/devices/flashlight.dm index f6917ee3c48..96dae8c0fc5 100644 --- a/code/game/objects/items/devices/flashlight.dm +++ b/code/game/objects/items/devices/flashlight.dm @@ -963,14 +963,10 @@ var/dark_light_range = 2.5 ///Variable to preserve old lighting behavior in flashlights, to handle darkness. var/dark_light_power = -3 - var/on = FALSE /obj/item/flashlight/flashdark/update_brightness() . = ..() - if(on) - set_light(dark_light_range, dark_light_power) - else - set_light(0) + set_light(dark_light_range, dark_light_power) //type and subtypes spawned and used to give some eyes lights, /obj/item/flashlight/eyelight