SSD people fall asleep more reliably

This commit is contained in:
Crazylemon64
2016-01-07 09:05:52 -08:00
parent 840c519321
commit 0a91b351c0
3 changed files with 39 additions and 9 deletions
@@ -827,10 +827,6 @@ var/global/list/brutefireloss_overlays = list("1" = image("icon" = 'icons/mob/sc
. = ..()
//SSD check, if a logged player is awake put them back to sleep!
if(player_logged && sleeping < 2)
sleeping = 2
if(.) //alive
if(REGEN in mutations)
if(nutrition)
@@ -865,11 +861,6 @@ var/global/list/brutefireloss_overlays = list("1" = image("icon" = 'icons/mob/sc
else if(sleeping)
speech_problem_flag = 1
if(mind)
//Are they SSD? If so we'll keep them asleep but work off some of that sleep var in case of ether or similar.
if(player_logged)
sleeping = max(sleeping - 1, 2)
blinded = 1
stat = UNCONSCIOUS
+4
View File
@@ -371,6 +371,10 @@
if(prob(10) && health && !hal_crit)
spawn(0)
emote("snore")
// Keep SSD people asleep
if(player_logged && sleeping < 2)
sleeping = 2
return sleeping
//this handles hud updates. Calls update_vision() and handle_hud_icons()