From ecd19ee1af80b42c858b7683e5967126250966b3 Mon Sep 17 00:00:00 2001 From: Leshana Date: Sun, 21 May 2017 12:36:34 -0400 Subject: [PATCH] Adds an admin verb to debug the current map datum. Useful for making sure it loaded right. --- code/modules/admin/admin_verbs.dm | 2 ++ code/modules/admin/verbs/debug.dm | 9 +++++++++ html/changelogs/Leshana-mapz.yml | 4 ++++ 3 files changed, 15 insertions(+) create mode 100644 html/changelogs/Leshana-mapz.yml diff --git a/code/modules/admin/admin_verbs.dm b/code/modules/admin/admin_verbs.dm index a4a2197288..62d1399095 100644 --- a/code/modules/admin/admin_verbs.dm +++ b/code/modules/admin/admin_verbs.dm @@ -176,6 +176,7 @@ var/list/admin_verbs_debug = list( /client/proc/debug_controller, /client/proc/debug_antagonist_template, /client/proc/cmd_debug_mob_lists, + /client/proc/cmd_debug_using_map, /client/proc/cmd_admin_delete, /client/proc/cmd_debug_del_all, /client/proc/cmd_debug_tog_aliens, @@ -286,6 +287,7 @@ var/list/admin_verbs_hideable = list( /client/proc/debug_controller, /client/proc/startSinglo, /client/proc/cmd_debug_mob_lists, + /client/proc/cmd_debug_using_map, /client/proc/cmd_debug_del_all, /client/proc/cmd_debug_tog_aliens, /client/proc/air_report, diff --git a/code/modules/admin/verbs/debug.dm b/code/modules/admin/verbs/debug.dm index f06ab9ca33..82206fdc30 100644 --- a/code/modules/admin/verbs/debug.dm +++ b/code/modules/admin/verbs/debug.dm @@ -943,6 +943,15 @@ if("Clients") usr << jointext(clients,",") +/client/proc/cmd_debug_using_map() + set category = "Debug" + set name = "Debug Map Datum" + set desc = "Debug the map metadata about the currently compiled in map." + + if(!check_rights(R_DEBUG)) + return + debug_variables(using_map) + // DNA2 - Admin Hax /client/proc/cmd_admin_toggle_block(var/mob/M,var/block) if(!ticker) diff --git a/html/changelogs/Leshana-mapz.yml b/html/changelogs/Leshana-mapz.yml new file mode 100644 index 0000000000..1b5544383c --- /dev/null +++ b/html/changelogs/Leshana-mapz.yml @@ -0,0 +1,4 @@ +author: Leshana +delete-after: True +changes: +- rscadd: "Added an admin verb to debug the map datum."