Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit 641498b

Browse files
committed
Admin side of the faxing
1 parent 36e6af9 commit 641498b

File tree

2 files changed

+17
-13
lines changed

2 files changed

+17
-13
lines changed

code/modules/admin/topic.dm

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1815,7 +1815,7 @@
18151815
if(info)
18161816
info.examine(usr, TRUE)
18171817

1818-
else if(href_list["CentcomFaxReply"])
1818+
else if(href_list["AdminFaxReply"])
18191819
var/obj/machinery/photocopier/faxmachine/F = locate(href_list["originfax"]) in GLOB.allfaxes
18201820
if(!istype(F))
18211821
to_chat(src.owner, span_danger("Unable to locate fax!"))
@@ -1830,20 +1830,21 @@
18301830
send_admin_fax()
18311831

18321832
/client/proc/send_admin_fax(obj/machinery/photocopier/faxmachine/F)
1833-
var/inputsubject = input(src, "Please enter a subject", "Outgoing message from CentCom", "") as text|null
1833+
var/syndicate = istype(F) ? F.obj_flags & EMAGGED : FALSE
1834+
var/inputsubject = input(src, "Please enter a subject", "Outgoing message from [syndicate ? "Syndicate" : "CentCom"]", "") as text|null
18341835
if(!inputsubject)
18351836
return
18361837

1837-
var/inputmessage = input(src, "Please enter the message sent to [istype(F) ? F : "all fax machines"] via secure connection. Supports pen markdown.", "Outgoing message from CentCom", "") as message|null
1838+
var/inputmessage = input(src, "Please enter the message sent to [istype(F) ? F : "all fax machines"] via secure connection. Supports pen markdown.", "Outgoing message from [syndicate ? "Syndicate" : "CentCom"]", "") as message|null
18381839
if(!inputmessage)
18391840
return
18401841

1841-
var/inputsigned = input(src, "Please enter CentCom Official name.", "Outgoing message from CentCom", usr?.client?.holder?.admin_signature || "") as text|null
1842+
var/inputsigned = input(src, "Please enter [syndicate ? "Syndicate" : "CentCom"] Official name.", "Outgoing message from [syndicate ? "Syndicate" : "CentCom"]", usr?.client?.holder?.admin_signature || "") as text|null
18421843
if(!inputsigned)
18431844
return
18441845

18451846
var/customname = input(src, "Pick a title for the report", "Title") as text|null
1846-
var/prefix = "<center><b>Nanotrasen Fax Network</b></center><hr><center>RE: [inputsubject]</center><hr>"
1847+
var/prefix = "<center><b>[syndicate ? "Syndicate" : "Nanotrasen"] Fax Network</b></center><hr><center>RE: [inputsubject]</center><hr>"
18471848
var/suffix = "<hr><b>Signed:</b> <font face=\"[SIGNFONT]\"><i>[inputsigned]</i></font>"
18481849

18491850
inputmessage = parsemarkdown(inputmessage)

code/modules/paperwork/faxmachine.dm

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -174,13 +174,13 @@ GLOBAL_LIST_EMPTY(adminfaxes)
174174
if(C.prefs.chat_toggles & CHAT_PRAYER_N_FAX) //if to be moved elsewhere then we must declutter legacy toggles
175175
if(C.prefs.toggles & SOUND_PRAYER_N_FAX)//if done then delete these comments
176176
SEND_SOUND(sender, sound('sound/effects/admin_fax.ogg'))
177-
send_adminmessage(sender, "CENTCOM FAX", rcvdcopy, "CentcomFaxReply", "#006100")
177+
send_adminmessage(sender, "CENTCOM FAX", rcvdcopy, "AdminFaxReply", "#006100")
178178
if ("Syndicate")
179179
for(var/client/C in GLOB.permissions.admins)
180180
if(C.prefs.chat_toggles & CHAT_PRAYER_N_FAX)
181181
if(C.prefs.toggles & SOUND_PRAYER_N_FAX)
182182
SEND_SOUND(sender, sound('sound/effects/admin_fax.ogg'))
183-
send_adminmessage(sender, "SYNDICATE FAX", rcvdcopy, "SyndicateFaxReply", "crimson") //Same colour used in redphone
183+
send_adminmessage(sender, "SYNDICATE FAX", rcvdcopy, "AdminFaxReply", "crimson") //Same colour used in redphone
184184
sendcooldown = world.time + 1 MINUTES
185185
sleep(5 SECONDS)
186186
visible_message("[src] beeps, \"Message transmitted successfully.\"")
@@ -205,7 +205,8 @@ GLOBAL_LIST_EMPTY(adminfaxes)
205205
// give the sprite some time to flick
206206
spawn(20)
207207
var/obj/item/paper/P = new /obj/item/paper( loc )
208-
P.name = "[command_name()] - [customname]"
208+
var/syndicate = obj_flags & EMAGGED
209+
P.name = syndicate ? "The Syndicate - [customname]" : "[command_name()] - [customname]"
209210

210211
var/list/templist = list() // All the stuff we're adding to $written
211212
for(var/text in T)
@@ -223,18 +224,20 @@ GLOBAL_LIST_EMPTY(adminfaxes)
223224
var/datum/asset/spritesheet/sheet = get_asset_datum(/datum/asset/spritesheet/simple/paper)
224225
if (isnull(P.stamps))
225226
P.stamps = sheet.css_tag()
226-
P.stamps += sheet.icon_tag("stamp-cent")
227-
P.stamps += "<br><i>This paper has been verified by the Central Command Quantum Relay.</i><br>"
228-
var/mutable_appearance/stampoverlay = mutable_appearance('icons/obj/bureaucracy.dmi', "paper_stamp-cent")
227+
P.stamps += syndicate ? sheet.icon_tag("stamp-syndiround") : sheet.icon_tag("stamp-cent")
228+
P.stamps += "<br><i>This paper has [syndicate ? "not" : ""] been verified by the Central Command Quantum Relay.</i><br>"
229+
var/mutable_appearance/stampoverlay = mutable_appearance('icons/obj/bureaucracy.dmi', syndicate ? "paper_stamp-syndiround" : "paper_stamp-cent")
229230
stampoverlay.pixel_x = rand(-2, 2)
230231
stampoverlay.pixel_y = rand(-3, 2)
231232

232-
LAZYADD(P.stamped, "stamp-cent")
233+
LAZYADD(P.stamped, syndicate ? "stamp-syndiround" : "stamp-cent")
233234
P.add_overlay(stampoverlay)
234235

235236
/obj/machinery/photocopier/faxmachine/AltClick(mob/user)
236237
if(IsAdminGhost(user))
237-
send_admin_fax(src)
238+
send_admin_fax(src)
239+
else
240+
message_admins("Not an admin ghost")
238241

239242
/obj/machinery/photocopier/faxmachine/examine(mob/user)
240243
. = ..()

0 commit comments

Comments
 (0)