From d0bdd94091ad8eacacc62c7400359a7f8feef787 Mon Sep 17 00:00:00 2001 From: ZomgPonies Date: Sun, 27 Oct 2013 04:52:21 -0400 Subject: [PATCH] Taj Hairball --- code/modules/mob/living/carbon/human/human.dm | 12 ++++++++---- code/modules/mob/living/carbon/human/life.dm | 4 ++++ 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/code/modules/mob/living/carbon/human/human.dm b/code/modules/mob/living/carbon/human/human.dm index 0ea45f0cbe8..c394fe40076 100644 --- a/code/modules/mob/living/carbon/human/human.dm +++ b/code/modules/mob/living/carbon/human/human.dm @@ -896,7 +896,7 @@ xylophone=0 return -/mob/living/carbon/human/proc/vomit() +/mob/living/carbon/human/proc/vomit(hairball=0) if(!lastpuke) lastpuke = 1 src << "You feel nauseous..." @@ -905,15 +905,19 @@ spawn(100) //and you have 10 more for mad dash to the bucket Stun(5) - src.visible_message("[src] throws up!","You throw up!") + if(hairball) + src.visible_message("[src] hacks up a hairball!","You hack up a hairball!") + else + src.visible_message("[src] throws up!","You throw up!") playsound(loc, 'sound/effects/splat.ogg', 50, 1) var/turf/location = loc if (istype(location, /turf/simulated)) location.add_vomit_floor(src, 1) - nutrition -= 40 - adjustToxLoss(-3) + if(!hairball) + nutrition -= 40 + adjustToxLoss(-3) spawn(350) //wait 35 seconds before next volley lastpuke = 0 diff --git a/code/modules/mob/living/carbon/human/life.dm b/code/modules/mob/living/carbon/human/life.dm index 521d3345c06..5d73343b53a 100644 --- a/code/modules/mob/living/carbon/human/life.dm +++ b/code/modules/mob/living/carbon/human/life.dm @@ -188,6 +188,10 @@ if(3) emote("drool") + if(species.name == "Tajaran") + if(prob(3)) + vomit(1) // Hairball + if(stat != 2) var/rn = rand(0, 200)