mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-21 03:56:47 +01:00
Refactor hardcoded lateloaded map define zs (#17290)
* Refactor hardcoded lateloaded map define zs to use a GLOB list instead * Refactor groundbase wilds loading * new to init docking codes * fix space whales excessive deleting * update comment * Forgot some aliases * How is this now a missing turf Remove duplicate turf
This commit is contained in:
@@ -91,6 +91,14 @@
|
||||
//at the moment only used for the OM location renamer. Initializing here in case we want shuttles incl as well in future. Also proc definition convenience.
|
||||
visitable_overmap_object_instances |= src
|
||||
|
||||
for(var/i in 1 to length(levels_for_distress))
|
||||
var/current = levels_for_distress[i]
|
||||
if(isnum(current))
|
||||
continue
|
||||
levels_for_distress[i] = GLOB.map_templates_loaded[current]
|
||||
if(!levels_for_distress)
|
||||
levels_for_distress = list(1)
|
||||
|
||||
//To be used by GMs and calling through var edits for the overmap object
|
||||
//It causes the overmap object to "reinitialize" its real_appearance for known = FALSE objects
|
||||
//Includes an argument that allows GMs/Admins to set a previously known sector to unknown. Set to any value except 0/False/Null to activate
|
||||
@@ -124,8 +132,17 @@
|
||||
/obj/effect/overmap/visitable/proc/find_z_levels()
|
||||
if(!LAZYLEN(map_z)) // If map_z is already populated use it as-is, otherwise start with connected z-levels.
|
||||
map_z = GetConnectedZlevels(z)
|
||||
if(LAZYLEN(extra_z_levels))
|
||||
map_z |= extra_z_levels
|
||||
|
||||
// extra_z_levels may need to be resolved
|
||||
for(var/extra_z in extra_z_levels)
|
||||
if(isnum(extra_z))
|
||||
map_z |= extra_z
|
||||
continue
|
||||
var/resolved_z = GLOB.map_templates_loaded[extra_z]
|
||||
if(resolved_z)
|
||||
map_z |= resolved_z
|
||||
else
|
||||
admin_notice(span_danger("[src] could not find z_level [extra_z]!"), R_DEBUG)
|
||||
|
||||
/obj/effect/overmap/visitable/proc/register_z_levels()
|
||||
for(var/zlevel in map_z)
|
||||
@@ -248,8 +265,6 @@
|
||||
Per the Interplanetary Convention on Space SAR, those receiving this message must attempt rescue, \
|
||||
or relay the message to those who can. This message will repeat one time in 5 minutes. Thank you for your urgent assistance."
|
||||
|
||||
if(!levels_for_distress)
|
||||
levels_for_distress = list(1)
|
||||
for(var/zlevel in levels_for_distress)
|
||||
priority_announcement.Announce(message, new_title = "Automated Distress Signal", new_sound = 'sound/AI/sos.ogg', zlevel = zlevel)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user