From 8267ff799123ba74e823e8afec6bf87fb99d516a Mon Sep 17 00:00:00 2001 From: Qwertytoforty <52090703+Qwertytoforty@users.noreply.github.com> Date: Mon, 26 Jul 2021 13:07:20 -0400 Subject: [PATCH] Lets CC relay link to tcomns cores without password (#16386) --- code/game/machinery/tcomms/presets.dm | 1 + code/game/machinery/tcomms/relay.dm | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/code/game/machinery/tcomms/presets.dm b/code/game/machinery/tcomms/presets.dm index efc98866f62..580bf080116 100644 --- a/code/game/machinery/tcomms/presets.dm +++ b/code/game/machinery/tcomms/presets.dm @@ -29,4 +29,5 @@ network_id = "CENTCOMM-RELAY" autolink_id = "STATION-CORE" hidden_link = TRUE + password_bypass = TRUE diff --git a/code/game/machinery/tcomms/relay.dm b/code/game/machinery/tcomms/relay.dm index 77f93e7e471..809fbe57106 100644 --- a/code/game/machinery/tcomms/relay.dm +++ b/code/game/machinery/tcomms/relay.dm @@ -19,6 +19,8 @@ var/linked = FALSE /// Is this link invisible on the hub? var/hidden_link = FALSE + /// Does this relay need a password to connect to hubs? + var/password_bypass = FALSE /** * Initializer for the relay. @@ -210,6 +212,10 @@ return var/obj/machinery/tcomms/core/C = locate(params["addr"]) if(istype(C, /obj/machinery/tcomms/core)) + if(password_bypass) + AddLink(C) + to_chat(usr, "Successfully linked to [C.network_id].") + return var/user_pass = input(usr, "Please enter core password","Password Entry") // Check the password if(user_pass == C.link_password)