From 2fcc6c58d22cb195221d2f070c429a1f9a8fa020 Mon Sep 17 00:00:00 2001 From: Antoonij <42318445+Antoonij@users.noreply.github.com> Date: Sun, 22 Sep 2024 21:46:56 +0200 Subject: [PATCH] mor readability --- code/datums/components/animal_temperature.dm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/datums/components/animal_temperature.dm b/code/datums/components/animal_temperature.dm index 30e21f0f32e..b8d42909418 100644 --- a/code/datums/components/animal_temperature.dm +++ b/code/datums/components/animal_temperature.dm @@ -63,14 +63,18 @@ /datum/component/animal_temperature/proc/check_temperature(mob/living/simple_animal/animal) if(animal.bodytemperature < minbodytemp) animal.adjustHealth(cold_damage) + if(show_alert) animal.throw_alert("temp", /atom/movable/screen/alert/cold, get_severity(animal)) + return TRUE if(animal.bodytemperature > maxbodytemp) animal.adjustHealth(heat_damage) + if(show_alert) animal.throw_alert("temp", /atom/movable/screen/alert/hot, get_severity(animal)) + return TRUE animal.clear_alert("temp")