mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-17 10:03:50 +01:00
Fixes SSD not being prolonged.
Signed-off-by: Erthilo <erthilo@gmail.com>
This commit is contained in:
@@ -1106,7 +1106,7 @@ var/const/BLOOD_VOLUME_SURVIVE = 122
|
||||
handle_dreams()
|
||||
adjustHalLoss(-5)
|
||||
if (mind)
|
||||
if(mind.active || immune_to_ssd)
|
||||
if((mind.active && client != null) || immune_to_ssd) //This also checks whether a client is connected, if not, sleep is not reduced.
|
||||
sleeping = max(sleeping-1, 0)
|
||||
blinded = 1
|
||||
stat = UNCONSCIOUS
|
||||
|
||||
@@ -4,4 +4,4 @@
|
||||
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
|
||||
sleeping = 2 //This causes instant sleep, but does not prolong it. See life.dm for furthering SSD.
|
||||
|
||||
Reference in New Issue
Block a user