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.
14 lines
575 B
Plaintext
14 lines
575 B
Plaintext
/datum/unit_test/map_template_paths/Run()
|
|
for(var/path in subtypesof(/datum/map_template))
|
|
var/datum/map_template/M = path
|
|
if(initial(M.abstract_type) == path)
|
|
continue
|
|
var/map_path = initial(M.map_path)
|
|
var/using_prefixes = FALSE
|
|
if(isnull(map_path))
|
|
map_path = "[initial(M.prefix)][initial(M.suffix)]"
|
|
using_prefixes = TRUE
|
|
if(!fexists("[map_path]"))
|
|
var/reason = using_prefixes? "prefix+suffix ([initial(M.prefix)] / [initial(M.suffix)])" : "map_path ([initial(M.map_path)])"
|
|
TEST_FAIL("Failed to resolve [path]'s initial [reason] to a file.")
|