From 79d926ebafeec9c4f3ac2ffcd39c506fa686bc81 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Wed, 15 Feb 2023 21:59:49 +0100 Subject: [PATCH] [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 --- code/modules/mapping/ruins.dm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/code/modules/mapping/ruins.dm b/code/modules/mapping/ruins.dm index dec3516e3da..4dc57701d17 100644 --- a/code/modules/mapping/ruins.dm +++ b/code/modules/mapping/ruins.dm @@ -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)