Taj Hairball

This commit is contained in:
ZomgPonies
2013-10-27 04:52:21 -04:00
parent 80413d809c
commit d0bdd94091
2 changed files with 12 additions and 4 deletions
@@ -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 << "<spawn class='warning'>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("<spawn class='warning'>[src] throws up!","<spawn class='warning'>You throw up!")
if(hairball)
src.visible_message("<span class='warning'>[src] hacks up a hairball!</span>","<span class='warning'>You hack up a hairball!</span>")
else
src.visible_message("<span class='warning'>[src] throws up!</span>","<span class='warning'>You throw up!</span>")
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
@@ -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)