From 6eceb34342111a6d8d0bc58ac12db45e1245e7ad Mon Sep 17 00:00:00 2001 From: Tim Date: Tue, 14 Feb 2023 03:34:22 -0600 Subject: [PATCH] Add all ruins to unit testing for CI (#73179) --- 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)