This commit is contained in:
SandPoot
2024-08-24 21:28:55 -03:00
parent 9604090014
commit c07e94be66
218 changed files with 1001 additions and 979 deletions
+6 -6
View File
@@ -177,7 +177,7 @@
// monkeys and xenos can only pull the flush lever
/obj/machinery/disposal/attack_paw(mob/user)
if(stat & BROKEN)
if(machine_stat & BROKEN)
return
flush = !flush
update_icon()
@@ -303,7 +303,7 @@
return GLOB.notcontained_state
/obj/machinery/disposal/bin/ui_interact(mob/user, datum/tgui/ui)
if(stat & BROKEN)
if(machine_stat & BROKEN)
return
ui = SStgui.try_update_ui(user, src, ui)
if(!ui)
@@ -385,7 +385,7 @@
/obj/machinery/disposal/bin/update_overlays()
. = ..()
if(stat & BROKEN)
if(machine_stat & BROKEN)
pressure_charging = FALSE
flush = FALSE
return
@@ -395,7 +395,7 @@
. += "dispover-handle"
//only handle is shown if no power
if(stat & NOPOWER || panel_open)
if(machine_stat & NOPOWER || panel_open)
return
//check for items in disposal - occupied light
@@ -418,7 +418,7 @@
//timed process
//charge the gas reservoir and perform flush if ready
/obj/machinery/disposal/bin/process()
if(stat & BROKEN) //nothing can happen if broken
if(machine_stat & BROKEN) //nothing can happen if broken
return
flush_count++
@@ -431,7 +431,7 @@
if(flush && air_contents.return_pressure() >= SEND_PRESSURE) // flush can happen even without power
do_flush()
if(stat & NOPOWER) // won't charge if no power
if(machine_stat & NOPOWER) // won't charge if no power
return
use_power(100) // base power usage