From 769ffadce4a64c0f2a2a564bfa38127e5a38e05a Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Sat, 3 Jul 2021 23:23:22 +0200 Subject: [PATCH] [MIRROR] Hookup Change Command Name to Create Command Report (#6674) * Hookup Change Command Name to Create Command Report (#59941) Adds and defaults the contents of command_name() to the list of names in the Create Command Report tgui presets if changed from Central Command. * Hookup Change Command Name to Create Command Report Co-authored-by: Wayland-Smithy <64715958+Wayland-Smithy@users.noreply.github.com> --- code/modules/admin/verbs/commandreport.dm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/modules/admin/verbs/commandreport.dm b/code/modules/admin/verbs/commandreport.dm index ade61479b9b..c80c1900d4e 100644 --- a/code/modules/admin/verbs/commandreport.dm +++ b/code/modules/admin/verbs/commandreport.dm @@ -49,10 +49,13 @@ /// The sound that's going to accompany our message. var/played_sound = DEFAULT_ANNOUNCEMENT_SOUND /// A static list of preset names that can be chosen. - var/static/list/preset_names = list(CENTCOM_PRESET, SYNDICATE_PRESET, WIZARD_PRESET, CUSTOM_PRESET) + var/list/preset_names = list(CENTCOM_PRESET, SYNDICATE_PRESET, WIZARD_PRESET, CUSTOM_PRESET) /datum/command_report_menu/New(mob/user) ui_user = user + if(command_name() != CENTCOM_PRESET) + command_name = command_name() + preset_names.Insert(1, command_name()) /datum/command_report_menu/ui_state(mob/user) return GLOB.admin_state