push
This commit is contained in:
@@ -94,7 +94,7 @@
|
||||
if(!terminal)
|
||||
to_chat(user, "<span class='alert'>No power terminal found.</span>")
|
||||
return
|
||||
stat &= ~BROKEN
|
||||
machine_stat &= ~BROKEN
|
||||
update_icon()
|
||||
return
|
||||
|
||||
@@ -189,7 +189,7 @@
|
||||
terminal = new/obj/machinery/power/terminal(T)
|
||||
terminal.setDir(get_dir(T,src))
|
||||
terminal.master = src
|
||||
stat &= ~BROKEN
|
||||
machine_stat &= ~BROKEN
|
||||
|
||||
/obj/machinery/power/smes/disconnect_terminal()
|
||||
if(terminal)
|
||||
@@ -200,7 +200,7 @@
|
||||
|
||||
/obj/machinery/power/smes/update_overlays()
|
||||
. = ..()
|
||||
if(stat & BROKEN)
|
||||
if(machine_stat & BROKEN)
|
||||
return
|
||||
|
||||
if(panel_open)
|
||||
@@ -225,7 +225,7 @@
|
||||
return clamp(round(5.5*charge/capacity),0,5)
|
||||
|
||||
/obj/machinery/power/smes/process()
|
||||
if(stat & BROKEN)
|
||||
if(machine_stat & BROKEN)
|
||||
return
|
||||
|
||||
//store machine state to see if we need to update the icon overlays
|
||||
@@ -289,7 +289,7 @@
|
||||
// called after all power processes are finished
|
||||
// restores charge level to smes if there was excess this ptick
|
||||
/obj/machinery/power/smes/proc/restore()
|
||||
if(stat & BROKEN)
|
||||
if(machine_stat & BROKEN)
|
||||
return
|
||||
|
||||
if(!outputting)
|
||||
|
||||
Reference in New Issue
Block a user