recharge station icon fix and return to process when broken/nopower (#19977)

This commit is contained in:
Henri215
2022-12-24 11:03:26 -05:00
committed by GitHub
parent eb81a44c78
commit 93a2e4f8ff
+4 -4
View File
@@ -64,7 +64,7 @@
consumable_recharge_coeff = max(1, recharge_speed / 200)
/obj/machinery/recharge_station/process()
if(!(NOPOWER|BROKEN))
if(stat & (NOPOWER|BROKEN))
return
if(occupant)
@@ -117,11 +117,11 @@
..(severity)
/obj/machinery/recharge_station/update_icon_state()
if(NOPOWER|BROKEN)
if(occupant)
if(occupant)
if(!(stat & (NOPOWER|BROKEN)))
icon_state = "borgcharger1"
else
icon_state = "borgcharger0"
icon_state = "borgcharger2"
else
icon_state = "borgcharger0"