Files
siliconsandGitHub 9d6a141e5b mc update: init stages, better subsystem init tracking, etc (#6857)
modifies the hollow metrics API; that'll probably be implemented soon
adds init stages
changes SSatoms to not abuse its `initialized` variable

closes #6858
2024-11-15 14:41:25 -07:00

17 lines
565 B
Plaintext

SUBSYSTEM_DEF(legacy_lore)
name = "Loremaster (Legacy)"
init_order = INIT_ORDER_LEGACY_LORE
subsystem_flags = SS_NO_FIRE
var/list/organizations = list()
/datum/controller/subsystem/legacy_lore/Initialize()
var/list/paths = subtypesof(/datum/lore/organization)
for(var/path in paths)
// Some intermediate paths are not real organizations (ex. /datum/lore/organization/mil). Only do ones with names
var/datum/lore/organization/instance = path
if(initial(instance.name))
instance = new path()
organizations[path] = instance
return SS_INIT_SUCCESS