mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-30 20:22:32 +00:00
* Handlers converted, now to fix 3532 compile errors * 3532 compile fixes later, got runtimes on startup * Well the server loads now atleast * Take 2 * Oops
16 lines
547 B
Plaintext
16 lines
547 B
Plaintext
//I AM THE LOREMASTER, ARE YOU THE GATEKEEPER?
|
|
GLOBAL_DATUM_INIT(loremaster, /datum/lore/loremaster, new)
|
|
|
|
/datum/lore/loremaster
|
|
var/list/organizations = list()
|
|
|
|
/datum/lore/loremaster/New()
|
|
|
|
var/list/paths = typesof(/datum/lore/organization) - /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
|