From d122ec9979bcdfb9a3a7ff629a4d812bc26449c5 Mon Sep 17 00:00:00 2001 From: Hubblenaut Date: Sun, 17 Aug 2014 02:15:18 +0200 Subject: [PATCH] Sleeping people on chairs can be woken up --- code/modules/mob/living/carbon/carbon.dm | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/code/modules/mob/living/carbon/carbon.dm b/code/modules/mob/living/carbon/carbon.dm index 968d9f853f7..bd1cddb60ff 100644 --- a/code/modules/mob/living/carbon/carbon.dm +++ b/code/modules/mob/living/carbon/carbon.dm @@ -1,6 +1,6 @@ /mob/living/carbon/Life() ..() - + // Increase germ_level regularly if(germ_level < GERM_LEVEL_AMBIENT && prob(30)) //if you're just standing there, you shouldn't get more germs beyond an ambient level germ_level++ @@ -14,7 +14,7 @@ src.nutrition -= HUNGER_FACTOR/10 if((FAT in src.mutations) && src.m_intent == "run" && src.bodytemperature <= 360) src.bodytemperature += 2 - + // Moving around increases germ_level faster if(germ_level < GERM_LEVEL_MOVE_CAP && prob(8)) germ_level++ @@ -104,9 +104,9 @@ shock_damage *= siemens_coeff if (shock_damage<1) return 0 - + src.apply_damage(shock_damage, BURN, def_zone, used_weapon="Electrocution") - + playsound(loc, "sparks", 50, 1, -1) if (shock_damage > 10) src.visible_message( @@ -211,8 +211,8 @@ if (istype(src,/mob/living/carbon/human) && src:w_uniform) var/mob/living/carbon/human/H = src H.w_uniform.add_fingerprint(M) - - if(lying) + + if(lying || src.sleeping) src.sleeping = max(0,src.sleeping-5) if(src.sleeping == 0) src.resting = 0 @@ -221,7 +221,7 @@ else M.visible_message("[M] hugs [src] to make [t_him] feel better!", \ "You hug [src] to make [t_him] feel better!") - + AdjustParalysis(-3) AdjustStunned(-3) AdjustWeakened(-3)