Check for internals and accessibility on toxic farts.

Conflicts:
	code/modules/mob/living/carbon/human/emote.dm
This commit is contained in:
Rob Nelson
2014-01-28 23:38:31 -05:00
committed by ZomgPonies
parent 593cae8ca7
commit b97a21ed94
2 changed files with 8 additions and 5 deletions
+2 -2
View File
@@ -37,12 +37,12 @@ proc/get_infection_chance(var/mob/living/carbon/M, var/vector = "Airborne")
return 1
//Checks if table-passing table can reach target (5 tile radius)
proc/airborne_can_reach(turf/source, turf/target)
proc/airborne_can_reach(turf/source, turf/target, var/radius=5)
var/obj/dummy = new(source)
dummy.flags = FPRINT | TABLEPASS
dummy.pass_flags = PASSTABLE
for(var/i=0, i<5, i++) if(!step_towards(dummy, target)) break
for(var/i=0, i<radius, i++) if(!step_towards(dummy, target)) break
var/rval = (dummy.loc in range(1,target))
dummy.loc = null