mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 02:34:00 +00:00
Fix gas thrusters turning off when trying to burn.
They expected use_power_oneoff to return the amount of power that *couldn't* be used, but they return the amount of power that *could*
This commit is contained in:
@@ -150,7 +150,7 @@
|
||||
/obj/machinery/atmospherics/unary/engine/proc/burn()
|
||||
if(!is_on())
|
||||
return 0
|
||||
if(!check_fuel() || (0 < use_power_oneoff(charge_per_burn)) || check_blockage())
|
||||
if(!check_fuel() || (use_power_oneoff(charge_per_burn) < charge_per_burn) || check_blockage())
|
||||
audible_message(src,"<span class='warning'>[src] coughs once and goes silent!</span>")
|
||||
update_use_power(USE_POWER_OFF)
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user