Skip to content

Commit

Permalink
Map cleanup
Browse files Browse the repository at this point in the history
Removing open spaces in space
  • Loading branch information
LordNest committed Dec 31, 2024
1 parent 3b419a8 commit 69dd483
Show file tree
Hide file tree
Showing 3 changed files with 3,225 additions and 3,321 deletions.
6 changes: 2 additions & 4 deletions code/modules/multiz/basic.dm
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ var/global/list/z_levels = list()// Each bit re... haha just kidding this is a l
return null
return HasBelow(turf.z) ? get_step(turf, DOWN) : null

//

//[SIERRA-EDIT] - logic for turf/space/open by Spookerton
/proc/GetAboveZlevels(z)
RETURN_TYPE(/list)
. = list()
Expand All @@ -59,8 +58,7 @@ var/global/list/z_levels = list()// Each bit re... haha just kidding this is a l
/proc/GetConnectedZlevels(z)
RETURN_TYPE(/list)
return list(z) + GetAboveZlevels(z) + GetBelowZlevels(z)

//
// [/SIERRA-EDIT]

/proc/GetConnectedZlevelsSet(z)
RETURN_TYPE(/list)
Expand Down
9 changes: 4 additions & 5 deletions maps/sierra/sierra_turfs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
initial_gas = list("oxygen" = MOLES_O2STANDARD, "nitrogen" = MOLES_N2STANDARD)

/*
*
*
* Z-mimic space turf part
*/

/turf/space/Initialize()
Expand Down Expand Up @@ -54,7 +53,7 @@
/turf/space/open
icon_state = ""
z_flags = ZM_MIMIC_DEFAULTS | ZM_MIMIC_OVERWRITE | ZM_MIMIC_NO_AO
z_eventually_space = null
z_eventually_space = 0


/turf/space/open/Initialize()
Expand All @@ -63,9 +62,9 @@
if (!istype(below, /turf/space))
z_eventually_space = FALSE
break
if (below.z_eventually_space != null)
if (below.z_eventually_space != 0)
z_eventually_space = below.z_eventually_space
break
if (z_eventually_space == null)
if (z_eventually_space == 0)
z_eventually_space = TRUE
return ..()
Loading

0 comments on commit 69dd483

Please sign in to comment.