From fe297fbd939def2d877067b5d1bf8068bee1c258 Mon Sep 17 00:00:00 2001 From: TDSSS <32099540+TDSSS@users.noreply.github.com> Date: Mon, 1 Jul 2019 13:07:10 +0200 Subject: [PATCH] incorporated kyet's desired changes --- code/modules/paperwork/faxmachine.dm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/code/modules/paperwork/faxmachine.dm b/code/modules/paperwork/faxmachine.dm index 1d92888800d..f15fcfa9b80 100644 --- a/code/modules/paperwork/faxmachine.dm +++ b/code/modules/paperwork/faxmachine.dm @@ -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