mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 03:57:13 +01:00
Lets CC relay link to tcomns cores without password (#16386)
This commit is contained in:
@@ -29,4 +29,5 @@
|
||||
network_id = "CENTCOMM-RELAY"
|
||||
autolink_id = "STATION-CORE"
|
||||
hidden_link = TRUE
|
||||
password_bypass = TRUE
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user