Simple animals will now tick down sleeping

This commit is contained in:
Crazylemon
2016-01-04 13:47:36 -08:00
parent c163372ad6
commit df224e81d6
2 changed files with 15 additions and 9 deletions
+8 -9
View File
@@ -293,15 +293,6 @@
CheckStamina()
if(sleeping)
handle_dreams()
adjustStaminaLoss(-10)
sleeping = max(sleeping - 1, 0)
if(prob(10) && health && !hal_crit)
spawn(0)
emote("snore")
var/restingpwr = 1 + 4 * resting
//Dizziness
@@ -373,6 +364,14 @@
else
hallucination -= 2
/mob/living/carbon/handle_sleeping()
if(..())
adjustStaminaLoss(-10)
if(prob(10) && health && !hal_crit)
spawn(0)
emote("snore")
//this handles hud updates. Calls update_vision() and handle_hud_icons()
/mob/living/carbon/handle_regular_hud_updates()
if(!client) return 0
+7
View File
@@ -110,6 +110,7 @@
handle_drugged()
handle_slurring()
handle_paralysed()
handle_sleeping()
/mob/living/proc/handle_stunned()
@@ -151,6 +152,12 @@
AdjustParalysis(-1)
return paralysis
/mob/living/proc/handle_sleeping()
if(sleeping)
handle_dreams()
sleeping = max(sleeping - 1, 0)
return sleeping
/mob/living/proc/handle_disabilities()