mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-24 05:23:22 +01:00
Added the z-level manager system from TG (#19532)
Added the z-level manager system from TG, mostly
This commit is contained in:
@@ -149,9 +149,8 @@
|
||||
planet_name = generate_planet_name()
|
||||
name = "[planet_name], \a [name]"
|
||||
|
||||
world.maxz++
|
||||
forceMove(locate(1,1,world.maxz))
|
||||
SEND_GLOBAL_SIGNAL(COMSIG_GLOB_NEW_Z, world.maxz)
|
||||
var/datum/space_level/exoplanet_level = SSmapping.add_new_zlevel("Exoplanet [name]", ZTRAITS_AWAY, contain_turfs = FALSE)
|
||||
forceMove(locate(1, 1, exoplanet_level.z_value))
|
||||
|
||||
pre_ruin_preparation()
|
||||
if(LAZYLEN(possible_themes))
|
||||
|
||||
@@ -283,13 +283,13 @@ var/global/area/overmap/map_overmap
|
||||
magnet_survey_result = ""
|
||||
|
||||
/proc/build_overmap()
|
||||
set waitfor = FALSE
|
||||
if(!SSatlas.current_map.use_overmap)
|
||||
return 1
|
||||
|
||||
log_module_sectors("Building overmap...")
|
||||
world.maxz++
|
||||
SSatlas.current_map.overmap_z = world.maxz
|
||||
SEND_GLOBAL_SIGNAL(COMSIG_GLOB_NEW_Z, world.maxz)
|
||||
var/datum/space_level/overmap_spacelevel = SSmapping.add_new_zlevel("Overmap", ZTRAITS_OVERMAP, contain_turfs = FALSE)
|
||||
SSatlas.current_map.overmap_z = overmap_spacelevel.z_value
|
||||
|
||||
log_module_sectors("Putting overmap on [SSatlas.current_map.overmap_z]")
|
||||
var/area/overmap/A = new
|
||||
|
||||
@@ -39,10 +39,9 @@
|
||||
/obj/effect/overmap/visitable/ship/landable/find_z_levels()
|
||||
if(!use_mapped_z_levels)
|
||||
for(var/i = 0 to multiz)
|
||||
world.maxz++
|
||||
map_z += world.maxz
|
||||
SEND_GLOBAL_SIGNAL(COMSIG_GLOB_NEW_Z, world.maxz)
|
||||
var/turf/center_loc = locate(round(world.maxx/2), round(world.maxy/2), world.maxz)
|
||||
var/datum/space_level/S = SSmapping.add_new_zlevel("Landable Landmark [i] for [shuttle]", list(ZTRAIT_RESERVED = TRUE), contain_turfs = FALSE)
|
||||
map_z += S.z_value
|
||||
var/turf/center_loc = locate(round(world.maxx/2), round(world.maxy/2), map_z[length(map_z)])
|
||||
landmark = new (center_loc, shuttle)
|
||||
add_landmark(landmark, shuttle)
|
||||
var/visitor_dir = fore_dir
|
||||
@@ -53,7 +52,7 @@
|
||||
visitor_dir = turn(visitor_dir, 90)
|
||||
|
||||
if(multiz)
|
||||
new /obj/effect/landmark/map_data(locate(1, 1, world.maxz), (multiz + 1))
|
||||
new /obj/effect/landmark/map_data(locate(1, 1, map_z[length(map_z)]), (multiz + 1))
|
||||
else
|
||||
..()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user