Files
Aurora.3/code/datums/ruins.dm
DreamySkrell b3d49c48ae a (#16420)
Co-authored-by: DreamySkrell <>
2023-05-31 14:43:29 +00:00

30 lines
1.1 KiB
Plaintext

/datum/map_template/ruin
//name = "A Chest of Doubloons"
name = null
var/description = "In the middle of a clearing in the rockface, there's a chest filled with gold coins with Spanish engravings. \
How is there a wooden container filled with 18th century coinage in the middle of a lavawracked hellscape? \
It is clearly a mystery."
var/spawn_weight = 1
var/spawn_cost = 0
var/player_cost = 0
var/ship_cost = 0
var/list/sectors = list() //This ruin can only spawn in the sectors in this list.
var/prefix = 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
var/list/force_ruins // Listed ruins are always spawned unless disallowed by flags.
var/list/allow_ruins // Listed ruins are added to the set of available spawns.
var/list/ban_ruins // Listed ruins are removed from the set of available spawns. Beats allowed.
/datum/map_template/ruin/New()
if (suffixes)
mappaths = list()
for (var/suffix in suffixes)
mappaths += (prefix + suffix)
sectors = flatten_list(sectors)
..()