mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 11:13:16 +00:00
8 lines
364 B
Plaintext
8 lines
364 B
Plaintext
/mob/living/Logout()
|
|
..()
|
|
if (mind)
|
|
if(!key) //key and mind have become seperated.
|
|
mind.active = 0 //This is to stop say, a mind.transfer_to call on a corpse causing a ghost to re-enter its body.
|
|
if(!immune_to_ssd && sleeping < 2 && mind.active)
|
|
sleeping = 2 //This causes instant sleep, but does not prolong it. See life.dm for furthering SSD.
|