Skip to content

Commit

Permalink
mor readability
Browse files Browse the repository at this point in the history
  • Loading branch information
Antoonij committed Sep 22, 2024
1 parent 5fcd273 commit 2fcc6c5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/datums/components/animal_temperature.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 2fcc6c5

Please sign in to comment.