Files
Aurora.3/code/controllers/subsystems/initialization/misc_late.dm
Matt Atlas dd482c63af Update the codebase to 515. (#15553)
* Update the codebase to 515.

* edit that

* WHOOPS

* maor

* maybe works

* libcall and shit

* do that too

* remove that

* auxtools isnt updated so get rid of it

* actually remove auxtools lol

Co-authored-by: Matt Atlas <liermattia@gmail.com>
2023-01-23 21:21:37 +01:00

43 lines
1.2 KiB
Plaintext

// This subsystem loads later in the init process. Not last, but after most major things are done.
/datum/controller/subsystem/misc_late
name = "Late Miscellaneous Init"
init_order = SS_INIT_MISC
flags = SS_NO_FIRE | SS_NO_DISPLAY
/datum/controller/subsystem/misc_late/Initialize(timeofday)
// Setup the teleport locs.
for(var/area/AR as anything in the_station_areas)
if(AR.flags & NO_GHOST_TELEPORT_ACCESS)
continue
var/list/area_turfs = AR.contents
if (area_turfs.len) // Check the area is mapped
ghostteleportlocs += AR.name
ghostteleportlocs[AR.name] = AR
if(current_map.use_overmap)
ghostteleportlocs[map_overmap.name] = map_overmap
sortTim(ghostteleportlocs, GLOBAL_PROC_REF(cmp_text_asc))
setupgenetics()
if (config.fastboot)
admin_notice("<span class='notice'><b>Fastboot is enabled; some features may not be available.</b></span>", R_DEBUG)
populate_code_phrases()
// this covers mapped in drone fabs
for(var/atom/thing as anything in SSatoms.late_misc_firers)
thing.do_late_fire()
LAZYREMOVE(SSatoms.late_misc_firers, thing)
if (config.use_forumuser_api)
update_admins_from_api(TRUE)
..(timeofday)
/proc/sorted_add_area(area/A)
all_areas += A
sortTim(all_areas, GLOBAL_PROC_REF(cmp_name_asc))