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
+28 -2
View File
@@ -514,6 +514,33 @@ steam.start() -- spawns the effect
if(smoke) smoke.delete()
src.total_smoke--
// Goon compat.
/datum/effect/effect/system/chem_smoke_spread/fart
set_up(var/mob/M, n = 5, c = 0, loca, direct)
if(n > 20)
n = 20
number = n
cardinals = c
chemholder.reagents.add_reagent("mercury", 50)
if(istype(loca, /turf/))
location = loca
else
location = get_turf(loca)
if(direct)
direction = direct
var/contained = "\[[chemholder.reagents.get_reagent_ids()]\]"
var/area/A = get_area(location)
var/where = "[A.name] | [location.x], [location.y]"
var/whereLink=formatJumpTo(location,where)
var/more = "(<A HREF='?_src_=holder;adminmoreinfo=\ref[M]'>?</a>)"
message_admins("[M][more] produced a toxic fart in ([whereLink])[contained].", 0, 1)
log_game("[M][more] produced a toxic fart in ([where])[contained].")
/////////////////////////////////////////////
@@ -696,7 +723,6 @@ steam.start() -- spawns the effect
src.total_smoke--
/////////////////////////////////////////////
//////// Attach an Ion trail to any object, that spawns when it moves (like for the jetpack)
/// just pass in the object to attach it to in set_up
@@ -1198,4 +1224,4 @@ steam.start() -- spawns the effect
step(sparks,direction)
spawn(20)
del(sparks)
src.total_sparks--
src.total_sparks--