mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 03:02:54 +00:00
Fixes #7111
This commit is contained in:
@@ -364,18 +364,13 @@
|
|||||||
if(flush && air_contents.return_pressure() >= SEND_PRESSURE ) // flush can happen even without power
|
if(flush && air_contents.return_pressure() >= SEND_PRESSURE ) // flush can happen even without power
|
||||||
flush()
|
flush()
|
||||||
|
|
||||||
if(mode != 1) // if off or ready, no need to charge
|
if(mode != 1) //if off or ready, no need to charge
|
||||||
update_use_power(1)
|
update_use_power(1)
|
||||||
return
|
else if(air_contents.return_pressure() >= SEND_PRESSURE)
|
||||||
|
mode = 2 //if full enough, switch to ready mode
|
||||||
// otherwise charge
|
|
||||||
src.pressurize()
|
|
||||||
|
|
||||||
// if full enough, switch to ready mode
|
|
||||||
if(air_contents.return_pressure() >= SEND_PRESSURE)
|
|
||||||
mode = 2
|
|
||||||
update()
|
update()
|
||||||
return
|
else
|
||||||
|
src.pressurize() //otherwise charge
|
||||||
|
|
||||||
/obj/machinery/disposal/proc/pressurize()
|
/obj/machinery/disposal/proc/pressurize()
|
||||||
if(stat & NOPOWER) // won't charge if no power
|
if(stat & NOPOWER) // won't charge if no power
|
||||||
|
|||||||
Reference in New Issue
Block a user