mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 02:16:05 +00:00
Fix Mech Bay Lights (#35728)
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user