Forces lights to be on when CI is running (#21814)

forces lightswitches to be on when CI is running
This commit is contained in:
Zonespace
2023-06-13 15:28:51 -07:00
committed by GitHub
parent 4483cb6433
commit 0721421f82
@@ -5,10 +5,12 @@
. = ..()
playsound(src, 'modular_skyrat/modules/aesthetics/lightswitch/sound/lightswitch.ogg', 100, 1)
#ifndef UNIT_TESTS
/obj/machinery/light_switch/LateInitialize()
. = ..()
if(prob(50) && area.lightswitch) //50% chance for area to start with lights off.
turn_off()
#endif
/obj/machinery/light_switch/proc/turn_off()
if(!area.lightswitch)