[MIRROR] (code bounty) The tram is now unstoppably powerful. it cannot be stopped, it cannot be slowed, it cannot be reasoned with. YOU HAVE NO IDEA HOW READY YOU ARE [MDB IGNORE] (#14477)

* (code bounty) The tram is now unstoppably powerful. it cannot be stopped, it cannot be slowed, it cannot be reasoned with. YOU HAVE NO IDEA HOW READY YOU ARE

* fex

* fex

Co-authored-by: Kylerace <kylerlumpkin1@gmail.com>
Co-authored-by: Gandalf <9026500+Gandalf2k15@users.noreply.github.com>
This commit is contained in:
SkyratBot
2022-06-25 01:24:00 +01:00
committed by GitHub
co-authored by Kylerace Gandalf
parent 1e8579d2a8
commit 18a56ffeeb
77 changed files with 2350 additions and 1186 deletions
@@ -57,18 +57,19 @@
/// Attempt to get the turf below the provided one according to Z traits
/datum/controller/subsystem/mapping/proc/get_turf_below(turf/T)
if (!T)
if (!T || !initialized)
return
var/offset = level_trait(T.z, ZTRAIT_DOWN)
var/offset = multiz_levels[T.z]["[DOWN]"]
if (!offset)
return
return locate(T.x, T.y, T.z + offset)
return locate(T.x, T.y, T.z - offset)
/// Attempt to get the turf above the provided one according to Z traits
/datum/controller/subsystem/mapping/proc/get_turf_above(turf/T)
if (!T)
if (!T || !initialized)
return
var/offset = level_trait(T.z, ZTRAIT_UP)
var/offset = multiz_levels[T.z]["[UP]"]
if (!offset)
return
return locate(T.x, T.y, T.z + offset)
@@ -26,6 +26,8 @@
// TODO: sleep here if the Z level needs to be cleared
var/datum/space_level/S = new z_type(new_z, name, traits)
z_list += S
generate_linkages_for_z_level(new_z)
calculate_z_level_gravity(new_z)
adding_new_zlevel = FALSE
SEND_GLOBAL_SIGNAL(COMSIG_GLOB_NEW_Z, S)
return S