lets admins actually debug map weights (#21885)

* fixes debug map weights

* Update mapping.dm
This commit is contained in:
Byemoh
2024-04-16 15:48:39 -05:00
committed by GitHub
parent 4fdc4369e2
commit 55a8cfffff
2 changed files with 7 additions and 3 deletions

View File

@@ -1006,9 +1006,12 @@ GLOBAL_LIST_EMPTY(the_station_areas)
qdel(query_previous_maps)
return previous_maps
/client/proc/DebugMapWeights()
/client/proc/debug_map_weights()
set name = "See Map Weights"
set category = "Misc.Server Debug"
var/weights = SSmapping.get_map_weights()
if(!length(weights))
to_chat(src, "Map Weights list is empty.")
return
for(var/key in weights)
to_chat(src, "[key]: weights[key]")
to_chat(src, "[key]: [weights[key]]")