mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-06-21 22:24:09 +01:00
Forces lights to be on when CI is running (#21814)
forces lightswitches to be on when CI is running
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user