From 603ad19634b38abbb2bcec9636dc192d7c7aded1 Mon Sep 17 00:00:00 2001 From: S34NW <12197162+S34NW@users.noreply.github.com> Date: Tue, 24 Aug 2021 22:29:07 +0100 Subject: [PATCH] Groups and makes admin verbs easier to read --- code/datums/datumvars.dm | 2 +- code/modules/admin/admin.dm | 4 ++-- code/modules/admin/admin_verbs.dm | 8 ++++---- code/modules/admin/machine_upgrade.dm | 2 +- code/modules/admin/verbs/adminjump.dm | 6 +++--- code/modules/admin/verbs/adminpm.dm | 2 +- code/modules/admin/verbs/debug.dm | 4 ++-- code/modules/admin/verbs/freeze.dm | 2 +- code/modules/admin/verbs/possess.dm | 4 ++-- code/modules/admin/verbs/randomverbs.dm | 14 +++++++------- 10 files changed, 24 insertions(+), 24 deletions(-) diff --git a/code/datums/datumvars.dm b/code/datums/datumvars.dm index 503389eb769..75f03f3c3d8 100644 --- a/code/datums/datumvars.dm +++ b/code/datums/datumvars.dm @@ -78,7 +78,7 @@ /client/proc/debug_variables(datum/D in world) set category = "Debug" - set name = "View Variables" + set name = "\[Admin\] View Variables" var/static/cookieoffset = rand(1, 9999) //to force cookies to reset after the round. diff --git a/code/modules/admin/admin.dm b/code/modules/admin/admin.dm index 20db0335102..85d4be92516 100644 --- a/code/modules/admin/admin.dm +++ b/code/modules/admin/admin.dm @@ -72,7 +72,7 @@ GLOBAL_VAR_INIT(nologevent, 0) /datum/admins/proc/show_player_panel(mob/M in GLOB.mob_list) set category = null - set name = "Show Player Panel" + set name = "\[Admin\] Show Player Panel" set desc="Edit player (respawn, ban, heal, etc)" if(!M) @@ -766,7 +766,7 @@ GLOBAL_VAR_INIT(nologevent, 0) message_admins("[key_name_admin(usr)] checked the AI laws") /client/proc/update_mob_sprite(mob/living/carbon/human/H as mob) - set name = "Update Mob Sprite" + set name = "\[Admin\] Update Mob Sprite" set desc = "Should fix any mob sprite update errors." set category = null diff --git a/code/modules/admin/admin_verbs.dm b/code/modules/admin/admin_verbs.dm index 598705668ae..57851fe7fd9 100644 --- a/code/modules/admin/admin_verbs.dm +++ b/code/modules/admin/admin_verbs.dm @@ -611,7 +611,7 @@ GLOBAL_LIST_INIT(admin_verbs_ticket, list( /client/proc/make_sound(obj/O in view()) // -- TLE set category = "Event" - set name = "Make Sound" + set name = "\[Admin\] Make Sound" set desc = "Display a message to everyone who can hear the target" if(!check_rights(R_EVENT)) @@ -797,7 +797,7 @@ GLOBAL_LIST_INIT(admin_verbs_ticket, list( SSblackbox.record_feedback("tally", "admin_verb", 1, "Manage Silicon Laws") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! /client/proc/change_human_appearance_admin(mob/living/carbon/human/H in GLOB.mob_list) - set name = "C.M.A. - Admin" + set name = "\[Admin\] C.M.A. - Admin" set desc = "Allows you to change the mob appearance" set category = null @@ -823,7 +823,7 @@ GLOBAL_LIST_INIT(admin_verbs_ticket, list( SSblackbox.record_feedback("tally", "admin_verb", 1, "CMA - Admin") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! /client/proc/change_human_appearance_self(mob/living/carbon/human/H in GLOB.mob_list) - set name = "C.M.A. - Self" + set name = "\[Admin\] C.M.A. - Self" set desc = "Allows the mob to change its appearance" set category = null @@ -963,7 +963,7 @@ GLOBAL_LIST_INIT(admin_verbs_ticket, list( /client/proc/man_up(mob/T as mob in GLOB.player_list) set category = null - set name = "Man Up" + set name = "\[Admin\] Man Up" set desc = "Tells mob to man up and deal with it." if(!check_rights(R_ADMIN)) diff --git a/code/modules/admin/machine_upgrade.dm b/code/modules/admin/machine_upgrade.dm index c3b27406858..f85c4426481 100644 --- a/code/modules/admin/machine_upgrade.dm +++ b/code/modules/admin/machine_upgrade.dm @@ -1,5 +1,5 @@ /proc/machine_upgrade(obj/machinery/M in world) - set name = "Tweak Component Ratings" + set name = "\[Admin\] Tweak Component Ratings" set category = null if(!check_rights(R_DEBUG)) diff --git a/code/modules/admin/verbs/adminjump.dm b/code/modules/admin/verbs/adminjump.dm index ed2aff985f1..70463a2a5ec 100644 --- a/code/modules/admin/verbs/adminjump.dm +++ b/code/modules/admin/verbs/adminjump.dm @@ -66,7 +66,7 @@ SSblackbox.record_feedback("tally", "admin_verb", 1, "Jump To Area") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! /client/proc/jumptoturf(turf/T in world) - set name = "Jump to Turf" + set name = "\[Admin\] Jump to Turf" set category = null if(!check_rights(R_ADMIN)) @@ -135,7 +135,7 @@ /client/proc/Getmob(mob/M in GLOB.mob_list) set category = null - set name = "Get Mob" + set name = "\[Admin\] Get Mob" set desc = "Mob to teleport" if(!check_rights(R_ADMIN)) @@ -152,7 +152,7 @@ /client/proc/Getkey() set category = null - set name = "Get Key" + set name = "\[Admin\] Get Key" set desc = "Key to teleport" if(!check_rights(R_ADMIN)) diff --git a/code/modules/admin/verbs/adminpm.dm b/code/modules/admin/verbs/adminpm.dm index d03344da2a1..7186406e7fa 100644 --- a/code/modules/admin/verbs/adminpm.dm +++ b/code/modules/admin/verbs/adminpm.dm @@ -1,7 +1,7 @@ //allows right clicking mobs to send an admin PM to their client, forwards the selected mob's client to cmd_admin_pm /client/proc/cmd_admin_pm_context(mob/M as mob in GLOB.mob_list) set category = null - set name = "Admin PM Mob" + set name = "\[Admin\] Admin PM Mob" if(!check_rights(R_ADMIN|R_MENTOR)) return if(!ismob(M) || !M.client) diff --git a/code/modules/admin/verbs/debug.dm b/code/modules/admin/verbs/debug.dm index 8ff8739d3b9..fd8a7eaa00e 100644 --- a/code/modules/admin/verbs/debug.dm +++ b/code/modules/admin/verbs/debug.dm @@ -173,7 +173,7 @@ GLOBAL_PROTECT(AdminProcCallSpamPrevention) /client/proc/callproc_datum(A as null|area|mob|obj|turf) set category = null - set name = "Atom ProcCall" + set name = "\[Admin\] Atom ProcCall" if(!check_rights(R_PROCCALL)) return @@ -630,7 +630,7 @@ GLOBAL_PROTECT(AdminProcCallSpamPrevention) /client/proc/cmd_admin_dress(mob/living/carbon/human/M in GLOB.human_list) set category = "Event" - set name = "Select equipment" + set name = "\[Admin\] Select equipment" if(!check_rights(R_EVENT)) return diff --git a/code/modules/admin/verbs/freeze.dm b/code/modules/admin/verbs/freeze.dm index 0f52680acea..9d7bc424f38 100644 --- a/code/modules/admin/verbs/freeze.dm +++ b/code/modules/admin/verbs/freeze.dm @@ -9,7 +9,7 @@ GLOBAL_LIST_EMPTY(frozen_atom_list) // A list of admin-frozen atoms. /client/proc/freeze(atom/movable/M) - set name = "Freeze" + set name = "\[Admin\] Freeze" set category = null if(!check_rights(R_ADMIN)) diff --git a/code/modules/admin/verbs/possess.dm b/code/modules/admin/verbs/possess.dm index 45e93ce8c47..b0c246bb027 100644 --- a/code/modules/admin/verbs/possess.dm +++ b/code/modules/admin/verbs/possess.dm @@ -1,5 +1,5 @@ /proc/possess(obj/O as obj in world) - set name = "Possess Obj" + set name = "\[Admin\] Possess Obj" set category = null if(!check_rights(R_POSSESS)) @@ -34,7 +34,7 @@ SSblackbox.record_feedback("tally", "admin_verb", 1, "Possess Object") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! /proc/release(obj/O as obj in world) - set name = "Release Obj" + set name = "\[Admin\] Release Obj" set category = null //usr.loc = get_turf(usr) diff --git a/code/modules/admin/verbs/randomverbs.dm b/code/modules/admin/verbs/randomverbs.dm index 53615c3d2f7..81be8843152 100644 --- a/code/modules/admin/verbs/randomverbs.dm +++ b/code/modules/admin/verbs/randomverbs.dm @@ -1,6 +1,6 @@ /client/proc/cmd_admin_drop_everything(mob/M as mob in GLOB.mob_list) set category = null - set name = "Drop Everything" + set name = "\[Admin\] Drop Everything" if(!check_rights(R_DEBUG|R_ADMIN)) return @@ -46,7 +46,7 @@ /client/proc/cmd_admin_subtle_message(mob/M as mob in GLOB.mob_list) set category = "Event" - set name = "Subtle Message" + set name = "\[Admin\] Subtle Message" if(!ismob(M)) return @@ -124,7 +124,7 @@ /client/proc/cmd_admin_direct_narrate(mob/M) // Targetted narrate -- TLE set category = null - set name = "Direct Narrate" + set name = "\[Admin\] Direct Narrate" if(!check_rights(R_SERVER|R_EVENT)) return @@ -151,7 +151,7 @@ /client/proc/cmd_admin_headset_message(mob/M in GLOB.mob_list) set category = "Event" - set name = "Headset Message" + set name = "\[Admin\] Headset Message" admin_headset_message(M) @@ -575,7 +575,7 @@ Traitors and the like can also be revived with the previous role mostly intact. /client/proc/cmd_admin_rejuvenate(mob/living/M as mob in GLOB.mob_list) set category = null - set name = "Rejuvenate" + set name = "\[Admin\] Rejuvenate" if(!check_rights(R_REJUVINATE)) return @@ -641,7 +641,7 @@ Traitors and the like can also be revived with the previous role mostly intact. /client/proc/cmd_admin_delete(atom/A as obj|mob|turf in view()) set category = null - set name = "Delete" + set name = "\[Admin\] Delete" if(!check_rights(R_ADMIN)) return @@ -780,7 +780,7 @@ Traitors and the like can also be revived with the previous role mostly intact. SSblackbox.record_feedback("tally", "admin_verb", 1, "Gibself") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! /client/proc/cmd_admin_check_contents(mob/living/M as mob in GLOB.mob_list) - set name = "Check Contents" + set name = "\[Admin\] Check Contents" set category = null if(!check_rights(R_ADMIN))