mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
lets admins actually debug map weights (#21885)
* fixes debug map weights * Update mapping.dm
This commit is contained in:
@@ -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]]")
|
||||
|
||||
Reference in New Issue
Block a user