mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2026-08-21 16:27:04 +01:00
modifies the hollow metrics API; that'll probably be implemented soon adds init stages changes SSatoms to not abuse its `initialized` variable closes #6858
17 lines
565 B
Plaintext
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
|