Thermomachines can no longer work backwards. (#24902)

* Thermomachines no longer work backwards.

* Return to sender.
This commit is contained in:
Charlie Nolan
2024-04-12 11:36:57 -07:00
committed by GitHub
parent 36a2f72df2
commit 535144a601
@@ -95,7 +95,14 @@
/obj/machinery/atmospherics/unary/thermomachine/process_atmos()
..()
if(!on)
return 0
return
// Coolers don't heat.
if(air_contents.temperature <= target_temperature && cooling)
return
// Heaters don't cool.
if(air_contents.temperature >= target_temperature && !cooling)
return
var/air_heat_capacity = air_contents.heat_capacity()
var/combined_heat_capacity = heat_capacity + air_heat_capacity
@@ -115,7 +122,7 @@
parent.update = TRUE
else
change_power_mode(IDLE_POWER_USE)
return 1
return
/obj/machinery/atmospherics/unary/thermomachine/attackby(obj/item/I, mob/user, params)
if(exchange_parts(user, I))