Added the z-level manager system from TG (#19532)

Added the z-level manager system from TG, mostly
This commit is contained in:
Fluffy
2024-07-22 15:00:38 +02:00
committed by GitHub
parent 0a9176841c
commit 1345beac4b
90 changed files with 614 additions and 245 deletions
+1 -1
View File
@@ -109,7 +109,7 @@
attached_satchel.insert_into_storage(ore)
else if(istype(get_turf(src), /turf/simulated/floor))
var/turf/simulated/floor/T = get_turf(src)
var/turf/below_turf = GetBelow(T)
var/turf/below_turf = GET_TURF_BELOW(T)
if(below_turf && !istype(below_turf.loc, /area/mine) && !istype(below_turf.loc, /area/exoplanet) && !istype(below_turf.loc, /area/template_noop))
system_error("Potential station breach below.")
return
+6 -3
View File
@@ -1262,7 +1262,8 @@ var/list/total_extraction_beacons = list()
return TRUE
if("ladder")
var/turf/above = GET_ABOVE(src)
var/turf/T = get_turf(src)
var/turf/above = GET_TURF_ABOVE(T)
if(!above)
to_chat(user, SPAN_WARNING("There is nothing above you to make a ladder towards."))
return FALSE
@@ -1278,7 +1279,8 @@ var/list/total_extraction_beacons = list()
return TRUE
return FALSE
if("ladder")
var/turf/above = GET_ABOVE(src)
var/turf/T = get_turf(src)
var/turf/above = GET_TURF_ABOVE(T)
if(!above)
to_chat(user, SPAN_WARNING("There is nothing above you to make a ladder towards."))
return FALSE
@@ -1323,7 +1325,8 @@ var/list/total_extraction_beacons = list()
return TRUE
if("ladder")
var/turf/above = GET_ABOVE(src)
var/turf/T = get_turf(src)
var/turf/above = GET_TURF_ABOVE(T)
if(!above)
to_chat(user, SPAN_WARNING("There is nothing above you to make a ladder towards."))
return FALSE
+4 -3
View File
@@ -600,7 +600,8 @@ var/list/mineral_can_smooth_with = list(
if(ishuman(user) && user.a_intent == I_GRAB)
var/mob/living/carbon/human/H = user
var/turf/destination = GetAbove(H)
var/turf/T = get_turf(H)
var/turf/destination = GET_TURF_ABOVE(T)
if(destination)
var/turf/start = get_turf(H)
if(start.CanZPass(H, UP))
@@ -816,7 +817,7 @@ var/list/asteroid_floor_smooth = list(
if(digging)
return
if(dug)
if(!GetBelow(src))
if(!GET_TURF_BELOW(src))
return
to_chat(user, SPAN_NOTICE("You start digging deeper."))
playsound(get_turf(user), 'sound/effects/stonedoor_openclose.ogg', 50, TRUE)
@@ -960,7 +961,7 @@ var/list/asteroid_floor_smooth = list(
dug += 1
AddOverlays("asteroid_dug", TRUE)
else
var/turf/below = GetBelow(src)
var/turf/below = GET_TURF_BELOW(src)
if(below)
var/area/below_area = get_area(below) // Let's just assume that the turf is not in nullspace.
if(below_area.station_area)