Implement toxic farts.

Conflicts:
	code/game/objects/effects/effect_system.dm
	code/modules/mob/living/carbon/human/human_defines.dm
This commit is contained in:
Rob Nelson
2014-01-20 23:13:46 -08:00
committed by ZomgPonies
parent 4b14f37adb
commit 57dc0ddd50
3 changed files with 56 additions and 2 deletions
@@ -543,6 +543,32 @@
message = "<B>[src]</B> makes a very loud noise."
m_type = 2
// Needed for M_TOXIC_FART
if("fart")
if(world.time-lastFart >= 600)
message = "<b>[src]</b> [pick("passes wind","farts")]."
m_type = 2
var/location = get_turf(src)
playsound(location, 'sound/effects/smoke.ogg', 50, 1, -3)
if(M_TOXIC_FARTS in mutations)
if(wear_suit && wear_suit.body_parts_covered & LOWER_TORSO)
if (internal != null && wear_mask && (wear_mask.flags & MASKINTERNALS))
return
src << "\red You gas yourself!"
reagents.add_reagent("mercury", rand(10,20))
return
var/datum/effect/effect/system/chem_smoke_spread/fart/S = new /datum/effect/effect/system/chem_smoke_spread/fart
S.attach(location)
S.set_up(src, 10, 0, location)
spawn(0)
S.start()
sleep(10)
S.start()
lastFart=world.time
else
message = "<b>[src]</b> strains, and nothing happens."
m_type = 1
if ("help")
src << "blink, blink_r, blush, bow-(none)/mob, burp, choke, chuckle, clap, collapse, cough,\ncry, custom, deathgasp, drool, eyebrow, frown, gasp, giggle, groan, grumble, handshake, hug-(none)/mob, glare-(none)/mob,\ngrin, laugh, look-(none)/mob, moan, mumble, nod, pale, point-atom, raise, salute, shake, shiver, shrug,\nsigh, signal-#1-10, smile, sneeze, sniff, snore, stare-(none)/mob, tremble, twitch, twitch_s, whimper,\nwink, yawn"
@@ -60,3 +60,5 @@
var/check_mutations=0 // Check mutations on next life tick
var/lastFart = 0 // Toxic fart cooldown.