Multi-Z level away site support, real-time map template loading. (#15460)

This commit is contained in:
Matt Atlas
2023-01-05 23:02:20 +01:00
committed by GitHub
parent b1869884c1
commit 718cc78817
53 changed files with 269 additions and 85 deletions
+5 -3
View File
@@ -12,7 +12,7 @@
var/list/sectors = list() //This ruin can only spawn in the sectors in this list.
var/prefix = null
var/suffix = null
var/list/suffixes = null
template_flags = TEMPLATE_FLAG_NO_RUINS // Don't let ruins spawn on top of ruins
// !! Currently only implemented for away sites
@@ -21,7 +21,9 @@
var/list/ban_ruins // Listed ruins are removed from the set of available spawns. Beats allowed.
/datum/map_template/ruin/New()
if (suffix)
mappath += (prefix + suffix)
if (suffixes)
mappaths = list()
for (var/suffix in suffixes)
mappaths += (prefix + suffix)
..()