From 13dcaec791bc4e1ad4494335ea8d5733c7c75a8f Mon Sep 17 00:00:00 2001 From: Rykka Stormheart <54187424+Rykka-Stormheart@users.noreply.github.com> Date: Fri, 31 Jul 2020 04:00:25 -0400 Subject: [PATCH] Fix alerts not being thrown for body temps being too out of range (#7384) Specifically for body temperatures to high/cold. --- code/modules/mob/living/carbon/human/life.dm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/modules/mob/living/carbon/human/life.dm b/code/modules/mob/living/carbon/human/life.dm index de4ac31354..2fa1530d28 100644 --- a/code/modules/mob/living/carbon/human/life.dm +++ b/code/modules/mob/living/carbon/human/life.dm @@ -682,10 +682,13 @@ if(bodytemperature >= species.heat_level_2) if(bodytemperature >= species.heat_level_3) burn_dam = HEAT_DAMAGE_LEVEL_3 + throw_alert("temp", /obj/screen/alert/hot, 3) else burn_dam = HEAT_DAMAGE_LEVEL_2 + throw_alert("temp", /obj/screen/alert/hot, 2) else burn_dam = HEAT_DAMAGE_LEVEL_1 + throw_alert("temp", /obj/screen/alert/hot, 1) take_overall_damage(burn=burn_dam, used_weapon = "High Body Temperature") @@ -708,6 +711,8 @@ cold_dam = COLD_DAMAGE_LEVEL_1 take_overall_damage(burn=cold_dam, used_weapon = "Low Body Temperature") + + else clear_alert("temp") // Account for massive pressure differences. Done by Polymorph // Made it possible to actually have something that can protect against high pressure... Done by Errorage. Polymorph now has an axe sticking from his head for his previous hardcoded nonsense!