From afa5569af996d8b9788ceb524614abd03b72bb92 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Wed, 18 Jan 2023 14:32:24 +0100 Subject: [PATCH] [MIRROR] Log status display changes [MDB IGNORE] (#18800) * Log status display changes (#72762) ## About The Pull Request Changing the status displays creates an entry in game.log of who did it, and from where. ## Why It's Good For The Game Seeing "LOL PENIS" on the status displays with no way to track it gets old after a while. ## Changelog :cl: LT3 admin: Changing the station status displays now generates a log entry /:cl: * Log status display changes Co-authored-by: lessthanthree <83487515+lessthnthree@users.noreply.github.com> --- code/game/machinery/computer/communications.dm | 4 ++++ .../modular_computers/file_system/programs/statusdisplay.dm | 3 +++ 2 files changed, 7 insertions(+) diff --git a/code/game/machinery/computer/communications.dm b/code/game/machinery/computer/communications.dm index f30d811d081..81fdb4292db 100755 --- a/code/game/machinery/computer/communications.dm +++ b/code/game/machinery/computer/communications.dm @@ -817,8 +817,12 @@ GLOBAL_VAR_INIT(cops_arrived, FALSE) if("message") status_signal.data["top_text"] = data1 status_signal.data["bottom_text"] = data2 + log_game("[key_name(usr)] has changed the station status display message to \"[data1] [data2]\" [loc_name(usr)]") + if("alert") status_signal.data["picture_state"] = data1 + log_game("[key_name(usr)] has changed the station status display message to \"[data1]\" [loc_name(usr)]") + frequency.post_signal(src, status_signal) diff --git a/code/modules/modular_computers/file_system/programs/statusdisplay.dm b/code/modules/modular_computers/file_system/programs/statusdisplay.dm index 07a8e411dc1..34911e93a16 100644 --- a/code/modules/modular_computers/file_system/programs/statusdisplay.dm +++ b/code/modules/modular_computers/file_system/programs/statusdisplay.dm @@ -45,6 +45,7 @@ */ /datum/computer_file/program/status/proc/post_message(upper, lower) post_status("message", upper, lower) + log_game("[key_name(usr)] has changed the station status display message to \"[upper] [lower]\" [loc_name(usr)]") /** * Post a picture to status displays @@ -59,6 +60,8 @@ else post_status("alert", picture) + log_game("[key_name(usr)] has changed the station status display message to \"[picture]\" [loc_name(usr)]") + /datum/computer_file/program/status/ui_act(action, list/params, datum/tgui/ui) . = ..() if(.)