Files
Aurora.3/code/modules/multiz/zmimic/mimic_common.dm
T
FluffyandGitHub 1345beac4b Added the z-level manager system from TG (#19532)
Added the z-level manager system from TG, mostly
2024-07-22 13:00:38 +00:00

15 lines
506 B
Plaintext

// Updates whatever openspace components may be mimicing us. On turfs this queues an openturf update on the above openturf, on movables this updates their bound movable (if present). Meaningless on any type other than `/turf` or `/atom/movable` (incl. children).
/atom/proc/update_above()
return
/turf/proc/is_above_space()
var/turf/T = GET_TURF_BELOW(src)
while (T && (T.z_flags & ZM_MIMIC_BELOW))
T = GET_TURF_BELOW(T)
return isspaceturf(T)
/turf/update_icon()
..()
if (above)
update_above()