Lets CC relay link to tcomns cores without password (#16386)

This commit is contained in:
Qwertytoforty
2021-07-26 18:07:20 +01:00
committed by GitHub
parent 9fee857b80
commit 8267ff7991
2 changed files with 7 additions and 0 deletions
+1
View File
@@ -29,4 +29,5 @@
network_id = "CENTCOMM-RELAY"
autolink_id = "STATION-CORE"
hidden_link = TRUE
password_bypass = TRUE
+6
View File
@@ -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, "<span class='notice'>Successfully linked to <b>[C.network_id]</b>.</span>")
return
var/user_pass = input(usr, "Please enter core password","Password Entry")
// Check the password
if(user_pass == C.link_password)