adds a message notice that you can no longer move as a slime (#20626)

* adds a message notice that you can no longer move as a slime

* Update code/modules/mob/living/simple_animal/slime/slime_life.dm

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>

---------

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
This commit is contained in:
GDN
2023-03-24 21:42:33 +01:00
committed by GitHub
co-authored by Luc
parent a19e2cc4ef
commit 55ae864821
@@ -123,6 +123,8 @@
if(bodytemperature < (T0C + 5)) // start calculating temperature damage etc
if(bodytemperature <= (T0C - 40)) // stun temperature
Tempstun = TRUE
throw_alert("temp", /obj/screen/alert/cold, 3)
to_chat(src,"<span class='userdanger'>You suddenly freeze up, you cannot move!</span>")
if(bodytemperature <= (T0C - 50)) // hurt temperature
if(bodytemperature <= 50) // sqrting negative numbers is bad
@@ -131,6 +133,8 @@
adjustBruteLoss(round(sqrt(bodytemperature)) * 2)
else
if(Tempstun)
to_chat(src,"<span class='warning'>You suddenly unthaw!</span>")
Tempstun = FALSE
updatehealth("handle environment")