From d87dca30c67f5c1a14a9e4354b56b5f0ce540722 Mon Sep 17 00:00:00 2001 From: "vageyenaman@gmail.com" Date: Mon, 16 Jan 2012 21:55:21 +0000 Subject: [PATCH] Makes puking less common. Corpses can no longer puke... git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2965 316c924e-a436-60f5-8080-3fe189b3f50e --- code/modules/mob/living/carbon/human/life.dm | 29 ++++++++++---------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/code/modules/mob/living/carbon/human/life.dm b/code/modules/mob/living/carbon/human/life.dm index bda5c767bd3..abbfb6ed5af 100644 --- a/code/modules/mob/living/carbon/human/life.dm +++ b/code/modules/mob/living/carbon/human/life.dm @@ -1026,24 +1026,25 @@ */ // Puke if toxloss is too high - if (prob(50) && getToxLoss() >= 45 && nutrition > 20) - lastpuke ++ - if(lastpuke >= 5) - Stun(rand(4,6)) + if(!stat) + if (prob(50) && getToxLoss() >= 45 && nutrition > 20) + lastpuke ++ + if(lastpuke >= rand(15,20)) + Stun(rand(4,6)) - for(var/mob/O in viewers(world.view, src)) - O.show_message(text("\red [] throws up!", src), 1) - playsound(src.loc, 'splat.ogg', 50, 1) + for(var/mob/O in viewers(world.view, src)) + O.show_message(text("\red [] throws up!", src), 1) + playsound(src.loc, 'splat.ogg', 50, 1) - var/turf/location = loc - if (istype(location, /turf/simulated)) - location.add_vomit_floor(src, 1) + var/turf/location = loc + if (istype(location, /turf/simulated)) + location.add_vomit_floor(src, 1) - nutrition -= rand(10,20) - adjustToxLoss(-rand(1,10)) + nutrition -= rand(10,20) + adjustToxLoss(-rand(1,10)) - // make it so you can only puke so fast - lastpuke = 0 + // make it so you can only puke so fast + lastpuke = 0 handle_virus_updates() if(bodytemperature > 406)