Yogstation 13 - Modules - TypesProc Details

/datum/status_effect/incapacitating/sleeping

Procs

on_owner_insomniacIf the mob is sleeping and gain the TRAIT_SLEEPIMMUNE we remove the TRAIT_KNOCKEDOUT and stop the tick() from happening
on_owner_sleepyIf the mob has the TRAIT_SLEEPIMMUNE but somehow looses it we make him sleep and restart the tick()

Proc Details

on_owner_insomniac

If the mob is sleeping and gain the TRAIT_SLEEPIMMUNE we remove the TRAIT_KNOCKEDOUT and stop the tick() from happening

on_owner_sleepy

If the mob has the TRAIT_SLEEPIMMUNE but somehow looses it we make him sleep and restart the tick()