mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2026-08-22 06:06:34 +01:00
- moves stuff to more sane places so modules folder isn't so messy - adds a world system that is the start of being able to data-define world locations and having the game act differently based on which location a map is in there's no ability to separate 'pre-load map' (and a way for persistence to inject this so we can have moving maps yet) but we can add it in later since things are decently abstracted.
14 lines
446 B
Plaintext
14 lines
446 B
Plaintext
/datum/unit_test/inventory_slot_meta_uniqueness/Run()
|
|
var/list/found = list()
|
|
for(var/path in subtypesof(/datum/inventory_slot))
|
|
var/datum/inventory_slot/meta = path
|
|
if(initial(meta.abstract_type) == path)
|
|
continue
|
|
if(initial(meta.inventory_slot_flags) & INV_SLOT_ALLOW_RANDOM_ID)
|
|
continue // power to you i guess :/
|
|
var/id = initial(meta.id)
|
|
if(found[id])
|
|
Fail("duplicate id [id] on [path]")
|
|
continue
|
|
found[id] = TRUE
|