From 459bbec6bbda1e08d73e67798b9a466a7fcf3e37 Mon Sep 17 00:00:00 2001 From: Runa Dacino Date: Fri, 29 Mar 2024 20:56:53 +0100 Subject: [PATCH] tweak(recolor_toggle): Makes it available for all staff (#15866) - Changes verb obtaining proc to be all staff - Changes check_rights for R_EVENT Force pushed: - adds verb to event_manager verblist as well - Makes it work with ANY of R_ADMIN|R_EVENT|R_FUN --- code/modules/admin/admin_verb_lists_vr.dm | 9 +++++---- code/modules/admin/admin_verbs_vr.dm | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/code/modules/admin/admin_verb_lists_vr.dm b/code/modules/admin/admin_verb_lists_vr.dm index 92e6620411..0b12f29aa5 100644 --- a/code/modules/admin/admin_verb_lists_vr.dm +++ b/code/modules/admin/admin_verb_lists_vr.dm @@ -130,7 +130,8 @@ var/list/admin_verbs_admin = list( /client/proc/make_mentor, /client/proc/unmake_mentor, /client/proc/removetickets, - /client/proc/delbook + /client/proc/delbook, + /client/proc/toggle_spawning_with_recolour ) var/list/admin_verbs_ban = list( @@ -222,8 +223,7 @@ var/list/admin_verbs_server = list( /client/proc/recipe_dump, /client/proc/panicbunker, /client/proc/paranoia_logging, - /client/proc/ip_reputation, - /client/proc/toggle_spawning_with_recolour + /client/proc/ip_reputation ) var/list/admin_verbs_debug = list( @@ -561,7 +561,8 @@ var/list/admin_verbs_event_manager = list( /client/proc/cmd_admin_delete, //delete an instance/object/mob/etc, /client/proc/cmd_debug_del_all, /client/proc/toggle_random_events, - /client/proc/modify_server_news + /client/proc/modify_server_news, + /client/proc/toggle_spawning_with_recolour ) diff --git a/code/modules/admin/admin_verbs_vr.dm b/code/modules/admin/admin_verbs_vr.dm index 7b6bf90c52..8f46703edb 100644 --- a/code/modules/admin/admin_verbs_vr.dm +++ b/code/modules/admin/admin_verbs_vr.dm @@ -126,7 +126,7 @@ set desc = "Makes it so new robots/simple_mobs spawn with a verb to recolour themselves for this round. You must set them separately." set category = "Server" - if(!check_rights(R_SERVER)) + if(!check_rights(R_ADMIN|R_EVENT|R_FUN)) return var/which = tgui_alert(usr, "Which do you want to toggle?", "Choose Recolour Toggle", list("Robot", "Simple Mob"))