Fixes SSD not being prolonged.

Signed-off-by: Erthilo <erthilo@gmail.com>
This commit is contained in:
Erthilo
2013-02-13 10:35:09 +00:00
parent 133d309f64
commit e5fcb91fb0
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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.