From 09d70a8f8f2211b500c70802d9ed22d5c5671e6d Mon Sep 17 00:00:00 2001 From: zxaber <37497534+zxaber@users.noreply.github.com> Date: Thu, 31 Dec 2020 18:18:20 -0800 Subject: [PATCH] Emagging Siliconnect allows for sending messages to borgs without an ID (#55593) SiliConnect (the tablet app for managing borgs) requires an ID to send messages to borgs in order for the user's name to be attached to the message. This change allows anyone with an emag to remove this requirement, and instead send messages without the sender's name attached. The borg will instead see "STDERR:UNDF" as the name. --- .../file_system/programs/borg_monitor.dm | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/code/modules/modular_computers/file_system/programs/borg_monitor.dm b/code/modules/modular_computers/file_system/programs/borg_monitor.dm index 8c6a4d9f21a..0217b1eaaec 100644 --- a/code/modules/modular_computers/file_system/programs/borg_monitor.dm +++ b/code/modules/modular_computers/file_system/programs/borg_monitor.dm @@ -9,6 +9,13 @@ size = 5 tgui_id = "NtosCyborgRemoteMonitor" program_icon = "project-diagram" + var/emagged = FALSE + +/datum/computer_file/program/borg_monitor/run_emag() + if(emagged) + return FALSE + emagged = TRUE + return TRUE /datum/computer_file/program/borg_monitor/ui_data(mob/user) var/list/data = get_header_data() @@ -82,6 +89,8 @@ /datum/computer_file/program/borg_monitor/proc/checkID() var/obj/item/card/id/ID = computer.GetID() if(!ID) + if(emagged) + return "STDERR:UNDF" return FALSE return ID.registered_name @@ -97,6 +106,9 @@ transfer_access = null tgui_id = "NtosCyborgRemoteMonitorSyndicate" +/datum/computer_file/program/borg_monitor/syndicate/run_emag() + return FALSE + /datum/computer_file/program/borg_monitor/syndicate/evaluate_borg(mob/living/silicon/robot/R) if((get_turf(computer)).z != (get_turf(R)).z) return FALSE