mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
@@ -366,16 +366,11 @@
|
|||||||
|
|
||||||
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