mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-14 20:23:26 +00:00
Merge pull request #6322 from VOREStation/upstream-merge-6567
[MIRROR] EPv2 x Communicator fix.
This commit is contained in:
@@ -63,6 +63,11 @@
|
|||||||
if(ghost.exonet)
|
if(ghost.exonet)
|
||||||
im_contacts_ui[++im_contacts_ui.len] = list("name" = sanitize(ghost.name), "address" = ghost.exonet.address, "ref" = "\ref[ghost]")
|
im_contacts_ui[++im_contacts_ui.len] = list("name" = sanitize(ghost.name), "address" = ghost.exonet.address, "ref" = "\ref[ghost]")
|
||||||
|
|
||||||
|
for(var/obj/item/integrated_circuit/input/EPv2/CIRC in im_contacts)
|
||||||
|
if(CIRC.exonet && CIRC.assembly)
|
||||||
|
im_contacts_ui[++im_contacts_ui.len] = list("name" = sanitize(CIRC.assembly.name), "address" = CIRC.exonet.address, "ref" = "\ref[CIRC]")
|
||||||
|
|
||||||
|
|
||||||
//Actual messages.
|
//Actual messages.
|
||||||
for(var/I in im_list)
|
for(var/I in im_list)
|
||||||
im_list_ui[++im_list_ui.len] = list("address" = I["address"], "to_address" = I["to_address"], "im" = I["im"])
|
im_list_ui[++im_list_ui.len] = list("address" = I["address"], "to_address" = I["to_address"], "im" = I["im"])
|
||||||
|
|||||||
@@ -64,6 +64,10 @@
|
|||||||
who = comm.owner
|
who = comm.owner
|
||||||
comm.im_contacts |= src
|
comm.im_contacts |= src
|
||||||
im_list += list(list("address" = origin_address, "to_address" = exonet.address, "im" = text))
|
im_list += list(list("address" = origin_address, "to_address" = exonet.address, "im" = text))
|
||||||
|
else if(istype(candidate, /obj/item/integrated_circuit))
|
||||||
|
var/obj/item/integrated_circuit/CIRC = candidate
|
||||||
|
who = CIRC
|
||||||
|
im_list += list(list("address" = origin_address, "to_address" = exonet.address, "im" = text))
|
||||||
else return
|
else return
|
||||||
|
|
||||||
im_contacts |= candidate
|
im_contacts |= candidate
|
||||||
|
|||||||
@@ -423,7 +423,9 @@
|
|||||||
desc = "Enables the sending and receiving of messages on the Exonet with the EPv2 protocol."
|
desc = "Enables the sending and receiving of messages on the Exonet with the EPv2 protocol."
|
||||||
extended_desc = "An EPv2 address is a string with the format of XXXX:XXXX:XXXX:XXXX. Data can be send or received using the \
|
extended_desc = "An EPv2 address is a string with the format of XXXX:XXXX:XXXX:XXXX. Data can be send or received using the \
|
||||||
second pin on each side, with additonal data reserved for the third pin. When a message is received, the second activaiton pin \
|
second pin on each side, with additonal data reserved for the third pin. When a message is received, the second activaiton pin \
|
||||||
will pulse whatever's connected to it. Pulsing the first activation pin will send a message."
|
will pulse whatever's connected to it. Pulsing the first activation pin will send a message.\
|
||||||
|
\
|
||||||
|
When messaging Communicators, you must set data to send to the string `text` to avoid errors in reception."
|
||||||
icon_state = "signal"
|
icon_state = "signal"
|
||||||
complexity = 4
|
complexity = 4
|
||||||
inputs = list(
|
inputs = list(
|
||||||
|
|||||||
Reference in New Issue
Block a user