readd ssd sleep

Signed-off-by: Cael_Aislinn <cael_aislinn@yahoo.com.au>
This commit is contained in:
Cael_Aislinn
2012-10-30 23:46:54 +10:00
parent 5c82c87aa2
commit 698425a987
3 changed files with 6 additions and 1 deletions
+2 -1
View File
@@ -1078,7 +1078,8 @@
else if(sleeping)
handle_dreams()
adjustHalLoss(-5)
sleeping = max(sleeping-1, 0)
if(mind.active || immune_to_ssd)
sleeping = max(sleeping-1, 0)
blinded = 1
stat = UNCONSCIOUS
if( prob(10) && health && !hal_crit )
+2
View File
@@ -2,3 +2,5 @@
..()
if(!key && mind) //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)
sleeping = 2
+2
View File
@@ -223,3 +223,5 @@
var/has_limbs = 1 //Whether this mob have any limbs he can move with
var/can_stand = 1 //Whether this mob have ability to stand
var/immune_to_ssd = 0