mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-14 00:23:29 +01:00
Simple animals will now tick down sleeping
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user