More helpers and a smol fix

This commit is contained in:
Aronai Sieyes
2021-08-04 17:16:38 -04:00
parent 5f982a3d44
commit 748dff84e4
4 changed files with 22 additions and 11 deletions
+4 -2
View File
@@ -34,6 +34,8 @@
if(!show_bottom_level(our_turf) && prune_on_fail) //If we cant show whats below, and we prune on fail, change the turf to plating as a fallback
our_turf.ChangeTurf(/turf/simulated/floor/plating)
return FALSE
else
return TRUE
if(init)
below_turf?.update_icon() // So the 'ceiling-less' overlay gets added.
our_turf.vis_contents += below_turf
@@ -67,11 +69,11 @@
/datum/element/turf_z_transparency/proc/show_bottom_level(turf/our_turf)
if(!show_bottom_level)
return FALSE
var/turf/path = get_base_turf(our_turf.z) || /turf/space
var/turf/path = get_base_turf_by_area(our_turf) || /turf/space
if(!ispath(path))
path = text2path(path)
if(!ispath(path))
warning("Z-level [our_turf.z] has invalid baseturf '[get_base_turf(our_turf.z)]'")
warning("Z-level [our_turf] has invalid baseturf '[get_base_turf_by_area(our_turf)]' in area '[get_area(our_turf)]'")
path = /turf/space
var/do_plane = ispath(path, /turf/space) ? SPACE_PLANE : null