From 55a58d8df1dc1ec91cc0a6fcc31956556582c67e Mon Sep 17 00:00:00 2001 From: ZomgPonies Date: Sun, 26 Jan 2014 20:47:56 -0500 Subject: [PATCH] Fixes farting through airlocks --- code/modules/mob/living/carbon/human/emote.dm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/modules/mob/living/carbon/human/emote.dm b/code/modules/mob/living/carbon/human/emote.dm index 9a87c06a610..9422d77ba0e 100644 --- a/code/modules/mob/living/carbon/human/emote.dm +++ b/code/modules/mob/living/carbon/human/emote.dm @@ -580,6 +580,8 @@ // So, let's give 'em space drugs. if (M == src) continue + if(!airborne_can_reach(get_turf(src), get_turf(M))) + continue M.reagents.add_reagent("space_drugs",rand(1,10)) /* var/datum/effect/effect/system/smoke_spread/chem/fart/S = new /datum/effect/effect/system/smoke_spread/chem/fart @@ -591,7 +593,6 @@ S.start() */ if(M_SUPER_FART in mutations) - message="" playsound(location, 'sound/effects/smoke.ogg', 50, 1, -3) visible_message("\red [name] hunches down and grits their teeth!") if(do_after(usr,30)) @@ -602,6 +603,8 @@ shake_camera(V,10,5) if (V == src) continue + if(!airborne_can_reach(get_turf(src), get_turf(V))) + continue V << "\red You are sent flying!" V.Weaken(5) // why the hell was this set to 12 christ step_away(V,location,15)