Skip to content

Commit

Permalink
ingame sending
Browse files Browse the repository at this point in the history
  • Loading branch information
realforest2001 committed Nov 14, 2023
1 parent 29acd0d commit e380a21
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion code/game/machinery/fax_machine.dm
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ var/list/alldepartments = list()
#define DEPARTMENT_CMB "CMB Incident Command Center, Local Operations"
#define DEPARTMENT_PROVOST "USCM Provost Office"
#define DEPARTMENT_PRESS "Various Press Organizations"
#define HIGHCOM_DEPARTMENTS list(DEPARTMENT_WY, DEPARTMENT_HC, DEPARTMENT_CMB, DEPARTMENT_PROVOST, DEPARTMENT_PRESS)

/obj/structure/machinery/faxmachine // why not fax_machine?
name = "\improper General Purpose Fax Machine"
Expand Down Expand Up @@ -319,10 +320,14 @@ var/list/alldepartments = list()

GLOB.fax_contents += faxcontents

var/scan_department = target_department
if(department in HIGHCOM_DEPARTMENTS)
scan_department = department

var/msg_admin = SPAN_STAFF_IC("<b><font color='#006100'>[target_department]: </font>[key_name(user, 1)] ")
msg_admin += "[CC_MARK(user)] [ADMIN_PP(user)] [ADMIN_VV(user)] [ADMIN_SM(user)] [ADMIN_JMP_USER(user)] "

switch(target_department)
switch(scan_department)
if(DEPARTMENT_HC)
GLOB.USCMFaxes.Add("<a href='?FaxView=\ref[faxcontents]'>\['[original_fax.name]' from [key_name(usr)], [scan] at [time2text(world.timeofday, "hh:mm:ss")]\]</a> <a href='?_src_=admin_holder;[HrefToken(forceGlobal = TRUE)];USCMFaxReply=\ref[user];originfax=\ref[src]'>REPLY</a>")
msg_admin += "(<a href='?_src_=admin_holder;[HrefToken(forceGlobal = TRUE)];USCMFaxReply=\ref[user];originfax=\ref[src]'>RPLY</a>)</b>: "
Expand Down

0 comments on commit e380a21

Please sign in to comment.