mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 00:29:02 +01:00
[gbp no-update]fix apc as anything runtiming (#66344)
* fix as anything runtiming * Apply suggestions from code review
This commit is contained in:
@@ -546,7 +546,7 @@
|
||||
INVOKE_ASYNC(src, .proc/break_lights)
|
||||
|
||||
/obj/machinery/power/apc/proc/break_lights()
|
||||
for(var/obj/machinery/light/breaked_light as anything in area)
|
||||
for(var/obj/machinery/light/breaked_light in area)
|
||||
breaked_light.on = TRUE
|
||||
breaked_light.break_light_tube()
|
||||
stoplag()
|
||||
|
||||
@@ -110,7 +110,7 @@
|
||||
terminal = null
|
||||
|
||||
/obj/machinery/power/apc/proc/energy_fail(duration)
|
||||
for(var/obj/machinery/failing_machine as anything in area.contents)
|
||||
for(var/obj/machinery/failing_machine in area.contents)
|
||||
if(failing_machine.critical_machine)
|
||||
return
|
||||
|
||||
@@ -123,7 +123,7 @@
|
||||
/obj/machinery/power/apc/proc/set_nightshift(on)
|
||||
set waitfor = FALSE
|
||||
nightshift_lights = on
|
||||
for(var/obj/machinery/light/night_light as anything in area)
|
||||
for(var/obj/machinery/light/night_light in area)
|
||||
if(night_light.nightshift_allowed)
|
||||
night_light.nightshift_enabled = nightshift_lights
|
||||
night_light.update(FALSE)
|
||||
|
||||
Reference in New Issue
Block a user