[MIRROR] Fix display ordering bug with spawn ruins debug verb [MDB IGNORE] (#13096)

* Fix display ordering bug with spawn ruins debug verb (#66461)

* Fix display ordering bug with spawn ruins debug verb

Co-authored-by: RandomGamer123 <31096837+RandomGamer123@users.noreply.github.com>
This commit is contained in:
SkyratBot
2022-04-25 15:29:14 +02:00
committed by GitHub
parent a0fa5ba3ce
commit 92b0a5fb26
+5 -3
View File
@@ -629,14 +629,16 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that
exists[L.ruin_template] = landmark
var/list/names = list()
var/list/themed_names
for (var/theme in SSmapping.themed_ruins)
names += "---- [theme] ----"
themed_names = list()
for (var/name in SSmapping.themed_ruins[theme])
var/datum/map_template/ruin/ruin = SSmapping.themed_ruins[theme][name]
names[name] = list(ruin, theme, list(ruin.default_area))
themed_names[name] = list(ruin, theme, list(ruin.default_area))
names += sort_list(themed_names)
var/ruinname = input("Select ruin", "Spawn Ruin") as null|anything in sort_list(names)
var/ruinname = input("Select ruin", "Spawn Ruin") as null|anything in names
var/data = names[ruinname]
if (!data)
return