Refactor carp event to optionally use landmarks if present and stop at the edge of space.

This commit is contained in:
Leshana
2020-03-17 21:20:00 -04:00
committed by Aronai Sieyes
parent c8129e24fb
commit 41aa31f847
2 changed files with 36 additions and 17 deletions

View File

@@ -26,15 +26,6 @@
max_z = max(z, max_z)
return max_z
/proc/living_observers_present(var/list/zlevels)
if(LAZYLEN(zlevels))
for(var/mob/M in player_list) //if a tree ticks on the empty zlevel does it really tick
if(M.stat != DEAD) //(no it doesn't)
var/turf/T = get_turf(M)
if(T && (T.z in zlevels))
return TRUE
return FALSE
/proc/get_area(atom/A)
if(isarea(A))
return A