Files
Bubberstation/code/modules/wiremod/preset/speech_relay.dm
SkyratBot c23bd1cb8c [MIRROR] every case of initialize that should have mapload, does (#8374)
* every case of initialize that should have mapload, does

* E

Co-authored-by: tralezab <40974010+tralezab@users.noreply.github.com>
Co-authored-by: Gandalf <jzo123@hotmail.com>
2021-09-24 23:07:53 +01:00

21 lines
477 B
Plaintext

/**
* # Speech Relay preset
*
* Acts like poly. Says whatever it hears.
*/
/obj/item/integrated_circuit/loaded/speech_relay
/obj/item/integrated_circuit/loaded/speech_relay/Initialize(mapload)
. = ..()
var/obj/item/circuit_component/hear/hear = new()
add_component(hear)
hear.rel_x = 100
hear.rel_y = 200
var/obj/item/circuit_component/speech/speech = new()
add_component(speech)
speech.rel_x = 400
speech.rel_y = 200
speech.message.connect(hear.message_port)