Skip to content

Commit

Permalink
lets admins actually debug map weights (#21885)
Browse files Browse the repository at this point in the history
* fixes debug map weights

* Update mapping.dm
  • Loading branch information
ToasterBiome authored Apr 16, 2024
1 parent 4fdc436 commit 55a8cff
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 5 additions & 2 deletions code/controllers/subsystem/mapping.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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]]")
3 changes: 2 additions & 1 deletion code/modules/admin/verbs/mapping.dm
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ GLOBAL_LIST_INIT(admin_verbs_debug_all, list(
/datum/admins/proc/create_or_modify_area,
/client/proc/debug_typeof, // Yogs -- Adds a debug verb for getting the subtypes of something
/client/proc/toggle_cdn,
/client/proc/debug_mail_loot
/client/proc/debug_mail_loot,
/client/proc/debug_map_weights
))
GLOBAL_PROTECT(admin_verbs_debug_all)

Expand Down

0 comments on commit 55a8cff

Please sign in to comment.