mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 02:34:00 +00:00
Machinery: Always use update_use_power()
This commit is contained in:
@@ -359,7 +359,7 @@
|
||||
// charge the gas reservoir and perform flush if ready
|
||||
/obj/machinery/disposal/process()
|
||||
if(!air_contents || (stat & BROKEN)) // nothing can happen if broken
|
||||
update_use_power(0)
|
||||
update_use_power(USE_POWER_OFF)
|
||||
return
|
||||
|
||||
flush_count++
|
||||
@@ -377,7 +377,7 @@
|
||||
flush()
|
||||
|
||||
if(mode != 1) //if off or ready, no need to charge
|
||||
update_use_power(1)
|
||||
update_use_power(USE_POWER_IDLE)
|
||||
else if(air_contents.return_pressure() >= SEND_PRESSURE)
|
||||
mode = 2 //if full enough, switch to ready mode
|
||||
update()
|
||||
@@ -386,7 +386,7 @@
|
||||
|
||||
/obj/machinery/disposal/proc/pressurize()
|
||||
if(stat & NOPOWER) // won't charge if no power
|
||||
update_use_power(0)
|
||||
update_use_power(USE_POWER_OFF)
|
||||
return
|
||||
|
||||
var/atom/L = loc // recharging from loc turf
|
||||
|
||||
Reference in New Issue
Block a user