incorporated kyet's desired changes

This commit is contained in:
TDSSS
2019-07-01 13:07:10 +02:00
parent 9e3030a740
commit fe297fbd93
+9
View File
@@ -11,6 +11,7 @@ var/global/list/fax_blacklist = list()
icon_state = "fax"
insert_anim = "faxsend"
var/fax_network = "Local Fax Network"
var/syndie_restricted = FALSE //is it a syndicate base fax restricted from contacting NT assets?
var/long_range_enabled = 0 // Can we send messages off the station?
req_one_access = list(access_lawyer, access_heads, access_armory)
@@ -47,6 +48,7 @@ var/global/list/fax_blacklist = list()
/obj/machinery/photocopier/faxmachine/longrange/syndie
name = "syndicate long range fax machine"
emagged = TRUE
syndie_restricted = TRUE
req_one_access = list(access_syndicate)
//No point setting fax network, being emagged overrides that anyway.
@@ -168,6 +170,13 @@ var/global/list/fax_blacklist = list()
combineddepartments += hidden_admin_departments.Copy()
combineddepartments += hidden_departments.Copy()
if(syndie_restricted)
combineddepartments = hidden_admin_departments.Copy()
combineddepartments += hidden_departments.Copy()
for(var/obj/machinery/photocopier/faxmachine/F in allfaxes)
if(F.emagged)//we can contact emagged faxes on the station
combineddepartments |= F.department
destination = input(usr, "To which department?", "Choose a department", "") as null|anything in combineddepartments
if(!destination)
destination = lastdestination