Fix Mech Bay Lights (#35728)

This commit is contained in:
DeityLink
2024-01-06 22:05:45 +01:00
committed by GitHub
parent 2e084d8fa4
commit 09a8190862

View File

@@ -221,19 +221,10 @@
recharge_port.stop_charge()
/obj/machinery/computer/mech_bay_power_console/power_change()
if(stat & BROKEN)
icon_state = initial(icon_state) +"_broken"
..()
if(stat & (BROKEN|NOPOWER))
if(recharge_port)
recharge_port.stop_charge()
else if(powered())
icon_state = initial(icon_state)
stat &= ~NOPOWER
else
spawn(rand(0, 15))
icon_state = initial(icon_state)+"_nopower"
stat |= NOPOWER
if(recharge_port)
recharge_port.stop_charge()
/obj/machinery/computer/mech_bay_power_console/set_broken()
icon_state = initial(icon_state)+"_broken"