mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-14 00:26:02 +01:00
Sleep
This commit is contained in:
@@ -403,11 +403,12 @@
|
||||
if(H.stat == 2)
|
||||
return
|
||||
|
||||
if(H.bodytemperature >= 318.15 && H.bodytemperature < 333.15) //45C
|
||||
if(H.bodytemperature >= 318.15 && H.bodytemperature < 333.15) //45C Confusion
|
||||
H.confused = max(H.confused, 20)
|
||||
else if(H.bodytemperature >= 333.15 && H.bodytemperature < 353.15) //60C
|
||||
else if(H.bodytemperature >= 333.15 && H.bodytemperature < 353.15) //60C Sleeping
|
||||
H.sleeping = max(H.sleeping, 20)
|
||||
else if(H.bodytemperature >= 353.15) //80C Organ damage and sleeping.
|
||||
H.sleeping = max(H.sleeping, 20)
|
||||
else if(H.bodytemperature >= 353.15) //80C
|
||||
var/obj/item/organ/internal/O = pick(H.internal_organs)
|
||||
if(O) //In case they have no internal organs but are still alive by some magic. Prevents runtimes.
|
||||
O.take_damage(5) //Welp.
|
||||
|
||||
Reference in New Issue
Block a user