From e6ec5b3903e019401dab2756b7992e670ac97092 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Tue, 20 Dec 2022 02:24:43 +0100 Subject: [PATCH] [MIRROR] Replaces the direct central command contact from fax machines with nanotrasen departmental contacts [MDB IGNORE] (#18173) * Replaces the direct central command contact from fax machines with nanotrasen departmental contacts (#72009) ## About The Pull Request Does what it says on the tin, instead of being able to fax central command fax machines are linked to a randomly selected Nanotrasen department. Current options are as follows but more can be added if any creative ideas are provided. - NT HR Department - NT Legal Department - NT Complaint Department - NT Customer Relations - Nanotrasen Tech Support - NT Internal Affairs Dept ## Why It's Good For The Game Re-restricts contacting the top dogs at central command to people with a captain ID. Being able to contact central commands highest ranks from an IC perspective makes sense to be restricted to the captain only through the use of the communications console. The crew can instead contact what is likely an intern working in a specialized department. ## Changelog :cl: spellcheck: Admin fax report names now default to standard report rather than standart. del: Central Command can no longer be faxed directly from fax machines. spellcheck: Replaced the ability to contact central command directly by being able to contact a randomly selected nanotrasen department. /:cl: * Replaces the direct central command contact from fax machines with nanotrasen departmental contacts Co-authored-by: NamelessFairy <40036527+NamelessFairy@users.noreply.github.com> --- code/modules/admin/admin_fax_panel.dm | 2 +- code/modules/paperwork/fax.dm | 12 +++++++++--- tgui/packages/tgui/interfaces/AdminFax.js | 8 ++++---- 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/code/modules/admin/admin_fax_panel.dm b/code/modules/admin/admin_fax_panel.dm index 169a089e519..73c99f84df1 100644 --- a/code/modules/admin/admin_fax_panel.dm +++ b/code/modules/admin/admin_fax_panel.dm @@ -24,7 +24,7 @@ /// Default name of fax. Used when field with fax name not edited. var/sending_fax_name = "Secret" /// Default name of paper. paper - bluh-bluh. Used when field with paper name not edited. - var/default_paper_name = "Standart Report" + var/default_paper_name = "Standard Report" /datum/fax_panel_interface/New() //Get all faxes, and save them to our list. diff --git a/code/modules/paperwork/fax.dm b/code/modules/paperwork/fax.dm index ebd4a2f740f..a8d4a78f7a9 100644 --- a/code/modules/paperwork/fax.dm +++ b/code/modules/paperwork/fax.dm @@ -1,3 +1,5 @@ +GLOBAL_VAR_INIT(nt_fax_department, pick("NT HR Department", "NT Legal Department", "NT Complaint Department", "NT Customer Relations", "Nanotrasen Tech Support", "NT Internal Affairs Dept")) + /obj/machinery/fax name = "Fax Machine" desc = "Bluespace technologies on the application of bureaucracy." @@ -48,8 +50,8 @@ ) /// List with a fake-networks(not a fax actually), for request manager. var/list/special_networks = list( - list(fax_name = "Central Command", fax_id = "central_command", color = "teal", emag_needed = FALSE), - list(fax_name = "Sabotage Department", fax_id = "syndicate", color = "red", emag_needed = TRUE), + nanotrasen = list(fax_name = "NT HR Department", fax_id = "central_command", color = "teal", emag_needed = FALSE), + syndicate = list(fax_name = "Sabotage Department", fax_id = "syndicate", color = "red", emag_needed = TRUE), ) /obj/machinery/fax/Initialize(mapload) @@ -60,6 +62,7 @@ fax_name = "Unregistered fax " + fax_id wires = new /datum/wires/fax(src) register_context() + special_networks["nanotrasen"]["fax_name"] = GLOB.nt_fax_department /obj/machinery/fax/Destroy() QDEL_NULL(loaded_item_ref) @@ -234,7 +237,10 @@ data["syndicate_network"] = (syndicate_network || (obj_flags & EMAGGED)) data["has_paper"] = !!loaded_item_ref?.resolve() data["fax_history"] = fax_history - data["special_faxes"] = special_networks + var/list/special_networks_data = list() + for(var/key in special_networks) + special_networks_data += list(special_networks[key]) + data["special_faxes"] = special_networks_data return data /obj/machinery/fax/ui_act(action, list/params) diff --git a/tgui/packages/tgui/interfaces/AdminFax.js b/tgui/packages/tgui/interfaces/AdminFax.js index a2166fabda0..ea7d410bb11 100644 --- a/tgui/packages/tgui/interfaces/AdminFax.js +++ b/tgui/packages/tgui/interfaces/AdminFax.js @@ -91,8 +91,8 @@ export const FaxMainPanel = (props, context) => { icon="n" mr="7px" width="49%" - onClick={() => setPaperName('Central Command Report')}> - Central Command + onClick={() => setPaperName('Nanotrasen Offical Report')}> + Nanotrasen