Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 27 additions & 2 deletions code/game/machinery/telecomms/machine_interactions.dm
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@
dat += "<br>[temp]<br>"
dat += "<br>Power Status: <a href='?src=[REF(src)];input=toggle'>[toggled ? "On" : "Off"]</a>"
if(on && toggled)
if(id != "" && id)
if(obj_flags & EMAGGED)
dat += "<br><font color = #AA0000>[Gibberish("Identification String: NULL",100)]</font>"
else if(id != "" && id)
dat += "<br>Identification String: <a href='?src=[REF(src)];input=id'>[id]</a>"
else
dat += "<br>Identification String: <a href='?src=[REF(src)];input=id'>NULL</a>"
Expand All @@ -53,6 +55,8 @@
dat += Options_Menu()

dat += "<br>Linked Network Entities: <ol>"
if(obj_flags & EMAGGED)
dat += "<li><font color = #000AA0>[Gibberish("NULL NULL (NULL)",100)]</font></li>"

var/i = 0
for(var/obj/machinery/telecomms/T in links)
Expand All @@ -64,6 +68,9 @@

dat += "<br>Filtering Frequencies: "

if(obj_flags & EMAGGED)
dat += "<li><font color = #357353>[Gibberish("357353 GHz",100)]</font></li>"

i = 0
if(length(freq_listening))
for(var/x in freq_listening)
Expand All @@ -80,6 +87,8 @@

if(P)
var/obj/machinery/telecomms/T = P.buffer
if(obj_flags & EMAGGED)
dat += "<br><font color = #3C438B>[Gibberish("MULTITOOL BUFFER: NULL (NULL)",100)]</font>"
if(istype(T))
dat += "<br><br>MULTITOOL BUFFER: [T] ([T.id]) <a href='?src=[REF(src)];link=1'>\[Link\]</a> <a href='?src=[REF(src)];flush=1'>\[Flush\]"
else
Expand Down Expand Up @@ -157,6 +166,22 @@
change_frequency = 0
temp = "<font color = #666633>-% Frequency changing deactivated %-</font>"

/obj/machinery/telecomms/processor/Options_Menu()
var/dat = ""
if(obj_flags & EMAGGED)
dat = "<br>Compressing signa;: <A href='?src=[REF(src)];proc_mode=0'>[process_mode ? "YES" : "NO"]</a>"
return dat

/obj/machinery/telecomms/processor/Options_Topic(href, href_list)
if(obj_flags & EMAGGED)
if(href_list["proc_mode"])
if(canAccess(usr))
if(process_mode == 1)
process_mode = 0
temp = "<font color = #666633>-% Compressing Signal activated %-</font>"
else
process_mode = 1
temp = "<font color = #666633>-% Signal Compression halted %-</font>"

/obj/machinery/telecomms/Topic(href, href_list)
if(..())
Expand All @@ -174,7 +199,7 @@
if("toggle")

toggled = !toggled
temp = "<font color = #666633>-% [src] has been [toggled ? "activated" : "deactivated"].</font>"
temp = "<font color = #666633> [src] has been [toggled ? "activated" : "deactivated"].</font>"
update_power()


Expand Down
2 changes: 1 addition & 1 deletion code/game/machinery/telecomms/machines/server.dm
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

// If the signal is still compressed, make the log entry gibberish
var/compression = signal.data["compression"]
if(compression > 0)
if(compression > 0 || (obj_flags & EMAGGED))
log.input_type = "Corrupt File"
log.parameters["name"] = Gibberish(signal.data["name"], compression + 50)
log.parameters["job"] = Gibberish(signal.data["job"], compression + 50)
Expand Down
7 changes: 6 additions & 1 deletion code/game/machinery/telecomms/telecomunications.dm
Original file line number Diff line number Diff line change
Expand Up @@ -184,4 +184,9 @@ GLOBAL_LIST_EMPTY(telecomms_list)
addtimer(CALLBACK(src, .proc/de_emp), rand(duration - 20, duration + 20))

/obj/machinery/telecomms/proc/de_emp()
stat &= ~EMPED
stat &= ~EMPED

/obj/machinery/telecomms/emag_act()
obj_flags |= EMAGGED
visible_message("<span class='notice'>Sparks fly out of the[src]!</span>")
traffic += 50