Ruin placement will try very hard to place any ruins with negative costs before attempting any other ruins (#28973)

* Ruin placement will try very hard to place all 0-cost ruins before placing any ruins with actual costs

* comment

* account for ruin variants properly please

* cost has a cost of 5

* tweak
This commit is contained in:
Joan Lung
2017-07-02 22:57:32 -04:00
committed by Jordan Brown
parent 240efb4309
commit 407e0e77e4
5 changed files with 23 additions and 6 deletions
+1 -1
View File
@@ -210,7 +210,7 @@ SUBSYSTEM_DEF(mapping)
var/list/banned = generateMapList("config/lavaruinblacklist.txt")
banned += generateMapList("config/spaceruinblacklist.txt")
for(var/item in subtypesof(/datum/map_template/ruin))
for(var/item in sortList(subtypesof(/datum/map_template/ruin), /proc/cmp_ruincost_priority))
var/datum/map_template/ruin/ruin_type = item
// screen out the abstract subtypes
if(!initial(ruin_type.id))