mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Stop trying to heat space (#7613)
This commit is contained in:
@@ -188,7 +188,7 @@
|
|||||||
/obj/machinery/alarm/proc/handle_heating_cooling(var/datum/gas_mixture/environment)
|
/obj/machinery/alarm/proc/handle_heating_cooling(var/datum/gas_mixture/environment)
|
||||||
if(!regulating_temperature)
|
if(!regulating_temperature)
|
||||||
//check for when we should start adjusting temperature
|
//check for when we should start adjusting temperature
|
||||||
if(!get_danger_level(target_temperature, TLV["temperature"]) && abs(environment.temperature - target_temperature) > 2.0)
|
if(!get_danger_level(target_temperature, TLV["temperature"]) && abs(environment.temperature - target_temperature) > 2.0 && environment.return_pressure() >= 1)
|
||||||
update_use_power(USE_POWER_ACTIVE)
|
update_use_power(USE_POWER_ACTIVE)
|
||||||
regulating_temperature = 1
|
regulating_temperature = 1
|
||||||
audible_message("\The [src] clicks as it starts [environment.temperature > target_temperature ? "cooling" : "heating"] the room.",\
|
audible_message("\The [src] clicks as it starts [environment.temperature > target_temperature ? "cooling" : "heating"] the room.",\
|
||||||
@@ -196,7 +196,7 @@
|
|||||||
playsound(src, 'sound/machines/click.ogg', 50, 1)
|
playsound(src, 'sound/machines/click.ogg', 50, 1)
|
||||||
else
|
else
|
||||||
//check for when we should stop adjusting temperature
|
//check for when we should stop adjusting temperature
|
||||||
if(get_danger_level(target_temperature, TLV["temperature"]) || abs(environment.temperature - target_temperature) <= 0.5)
|
if(get_danger_level(target_temperature, TLV["temperature"]) || abs(environment.temperature - target_temperature) <= 0.5 || environment.return_pressure() < 1)
|
||||||
update_use_power(USE_POWER_IDLE)
|
update_use_power(USE_POWER_IDLE)
|
||||||
regulating_temperature = 0
|
regulating_temperature = 0
|
||||||
audible_message("\The [src] clicks quietly as it stops [environment.temperature > target_temperature ? "cooling" : "heating"] the room.",\
|
audible_message("\The [src] clicks quietly as it stops [environment.temperature > target_temperature ? "cooling" : "heating"] the room.",\
|
||||||
|
|||||||
Reference in New Issue
Block a user