Files
CHOMPStation2/code/game/gamemodes/technomancer/spell_objs_helpers.dm
2016-01-14 00:54:07 -07:00

9 lines
270 B
Plaintext

//Returns 1 if the turf is dense, or if there's dense objects on it, unless told to ignore them.
/turf/proc/check_density(var/ignore_objs = 0)
if(density)
return 1
if(!ignore_objs)
for(var/atom/movable/stuff in contents)
if(stuff.density)
return 1
return 0