[MIRROR] Add all ruins to unit testing for CI [MDB IGNORE] (#19345)

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

* Add all ruins to unit testing for CI

---------

Co-authored-by: Tim <timothymtorres@gmail.com>
This commit is contained in:
SkyratBot
2023-02-15 21:59:49 +01:00
committed by GitHub
parent 7742415009
commit 79d926ebaf
+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)