mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2026-07-22 13:02:49 +01:00
1270722e8d
- 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.
13 lines
492 B
Plaintext
13 lines
492 B
Plaintext
/datum/unit_test/component_duping/Run()
|
|
var/list/bad_dms = list()
|
|
var/list/bad_dts = list()
|
|
for(var/t in typesof(/datum/component))
|
|
var/datum/component/comp = t
|
|
if(!isnum(initial(comp.dupe_mode)))
|
|
bad_dms += t
|
|
var/dupe_type = initial(comp.dupe_type)
|
|
if(dupe_type && !ispath(dupe_type))
|
|
bad_dts += t
|
|
TEST_ASSERT(!length(bad_dms) && !length(bad_dts),
|
|
"Components with invalid dupe modes: ([bad_dms.Join(",")]) ||| Components with invalid dupe types: ([bad_dts.Join(",")])")
|