Makes puking less common. Corpses can no longer puke...

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2965 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
vageyenaman@gmail.com
2012-01-16 21:55:21 +00:00
parent 3a61c2b975
commit d87dca30c6
+15 -14
View File
@@ -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("<b>\red [] throws up!</b>", src), 1)
playsound(src.loc, 'splat.ogg', 50, 1)
for(var/mob/O in viewers(world.view, src))
O.show_message(text("<b>\red [] throws up!</b>", 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)