mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-18 21:15:21 +00:00
## About The Pull Request stop forgetting to include mapload, if you don't include it then every single subtype past it by default doesn't include it for example, `obj/item` didn't include mapload so every single item by default didn't fill in mapload  ## Regex used: procs without args, not even regex `/Initialize()` procs with args `\/Initialize\((?!mapload)((.)*\w)?` cleanup of things i didn't want to mapload: `\/datum\/(.)*\/Initialize\(mapload`
21 lines
477 B
Plaintext
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)
|