From fe396a40c9783c033ed56c45397c7ae786de2540 Mon Sep 17 00:00:00 2001 From: Tayyyyyyy Date: Tue, 3 Mar 2020 08:07:08 -0800 Subject: [PATCH] Announce to command when ERT request transmitted (#13059) * Announce to command when ERT request transmitted * Improve announcement w/ reason and name of device --- code/modules/security_levels/keycard authentication.dm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/code/modules/security_levels/keycard authentication.dm b/code/modules/security_levels/keycard authentication.dm index e1e3104e643..71a77d83655 100644 --- a/code/modules/security_levels/keycard authentication.dm +++ b/code/modules/security_levels/keycard authentication.dm @@ -99,7 +99,7 @@ if(href_list["reset"]) reset() if(href_list["ert"]) - ert_reason = input(usr, "Reason for ERT Call:", "", "") + ert_reason = stripped_input(usr, "Reason for ERT Call:", "", "") SSnanoui.update_uis(src) add_fingerprint(usr) @@ -165,9 +165,10 @@ feedback_inc("alert_keycard_auth_stationRevoke",1) if("Emergency Response Team") if(is_ert_blocked()) - to_chat(usr, "All Emergency Response Teams are dispatched and can not be called at this time.") + atom_say("All Emergency Response Teams are dispatched and can not be called at this time.") return - to_chat(usr, "ERT request transmitted.") + atom_say("ERT request transmitted!") + command_announcer.autosay("ERT request transmitted. Reason: [ert_reason]", name) print_centcom_report(ert_reason, station_time_timestamp() + " ERT Request") var/fullmin_count = 0 @@ -221,4 +222,4 @@ var/global/station_all_access = 0 D.emergency = 0 D.update_icon(0) minor_announcement.Announce("Access restrictions on all station airlocks have been re-added. Seek station AI or a colleague's assistance if you are stuck.") - station_all_access = 0 \ No newline at end of file + station_all_access = 0