mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-03 14:02:49 +00:00
Ports /tg/ spatial grid system, refactors telecomms, destroys lag (#15140)
This commit is contained in:
@@ -73,6 +73,7 @@
|
||||
|
||||
world.maxz++
|
||||
forceMove(locate(1,1,world.maxz))
|
||||
SEND_GLOBAL_SIGNAL(COMSIG_GLOB_NEW_Z, world.maxz)
|
||||
|
||||
if(LAZYLEN(possible_themes))
|
||||
var/datum/exoplanet_theme/T = pick(possible_themes)
|
||||
|
||||
@@ -33,6 +33,9 @@ var/global/area/overmap/map_overmap // Global object used to locate the overmap
|
||||
var/obj/effect/overmap/targeting
|
||||
var/obj/machinery/leviathan_safeguard/levi_safeguard
|
||||
|
||||
var/comms_support = FALSE // Whether ghostroles attached to this overmap object spawn with comms
|
||||
var/comms_name = "shipboard" // Snowflake name to apply to comms equipment ("shipboard radio headset", "intercom (shipboard)", "shipboard telecommunications mainframe"), etc.
|
||||
|
||||
/obj/effect/overmap/visitable/Initialize()
|
||||
. = ..()
|
||||
if(. == INITIALIZE_HINT_QDEL)
|
||||
@@ -65,7 +68,7 @@ var/global/area/overmap/map_overmap // Global object used to locate the overmap
|
||||
for(var/obj/machinery/hologram/holopad/H as anything in SSmachinery.all_holopads)
|
||||
if(H.linked == src)
|
||||
H.linked = null
|
||||
for(var/obj/machinery/telecomms/T in telecomms_list)
|
||||
for(var/obj/machinery/telecomms/T in SSmachinery.all_telecomms)
|
||||
if(T.linked == src)
|
||||
T.linked = null
|
||||
if(entry_points)
|
||||
@@ -83,7 +86,7 @@ var/global/area/overmap/map_overmap // Global object used to locate the overmap
|
||||
/obj/effect/overmap/visitable/proc/populate_sector_objects()
|
||||
for(var/obj/machinery/hologram/holopad/H as anything in SSmachinery.all_holopads)
|
||||
H.attempt_hook_up(src)
|
||||
for(var/obj/machinery/telecomms/T in telecomms_list)
|
||||
for(var/obj/machinery/telecomms/T in SSmachinery.all_telecomms)
|
||||
T.attempt_hook_up(src)
|
||||
|
||||
/obj/effect/overmap/visitable/proc/get_areas()
|
||||
@@ -190,7 +193,8 @@ var/global/area/overmap/map_overmap // Global object used to locate the overmap
|
||||
testing("Building overmap...")
|
||||
world.maxz++
|
||||
current_map.overmap_z = world.maxz
|
||||
|
||||
SEND_GLOBAL_SIGNAL(COMSIG_GLOB_NEW_Z, world.maxz)
|
||||
|
||||
testing("Putting overmap on [current_map.overmap_z]")
|
||||
var/area/overmap/A = new
|
||||
global.map_overmap = A
|
||||
|
||||
@@ -37,6 +37,7 @@
|
||||
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)
|
||||
landmark = new (center_loc, shuttle)
|
||||
@@ -168,4 +169,4 @@
|
||||
if(SHIP_STATUS_TRANSIT)
|
||||
return "Maneuvering under secondary thrust."
|
||||
if(SHIP_STATUS_OVERMAP)
|
||||
return "In open space."
|
||||
return "In open space."
|
||||
|
||||
@@ -37,6 +37,8 @@ var/const/OVERMAP_SPEED_CONSTANT = (1 SECOND)
|
||||
|
||||
var/list/consoles
|
||||
|
||||
comms_support = TRUE
|
||||
|
||||
/obj/effect/overmap/visitable/ship/Initialize()
|
||||
. = ..()
|
||||
glide_size = world.icon_size
|
||||
|
||||
Reference in New Issue
Block a user