Add all ruins to unit testing for CI (#73179)

This commit is contained in:
Tim
2023-02-14 03:34:22 -06:00
committed by GitHub
parent 9c00ed685f
commit 6eceb34342
+9
View File
@@ -81,9 +81,18 @@
var/list/forced_ruins = list() //These go first on the z level associated (same random one by default) or if the assoc value is a turf to the specified turf.
var/list/ruins_available = list() //we can try these in the current pass
if(PERFORM_ALL_TESTS(log_mapping))
log_mapping("All ruins being loaded for map testing.")
//Set up the starting ruin list
for(var/key in ruins)
var/datum/map_template/ruin/R = ruins[key]
if(PERFORM_ALL_TESTS(log_mapping))
R.cost = 0
R.allow_duplicates = FALSE // no multiples for testing
R.always_place = !R.unpickable // unpickable ruin means it spawns as a set with another ruin
if(R.cost > budget) //Why would you do that
continue
if(R.always_place)