From 26c2d46fbdc743f4f22a491ad53e1d85ba5e2321 Mon Sep 17 00:00:00 2001 From: KomradeSpecte Date: Thu, 7 Dec 2017 10:52:15 -0500 Subject: [PATCH 1/2] Adds AI Vox Sound Output Circuit --- .../integrated_electronics/subtypes/output.dm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/code/modules/integrated_electronics/subtypes/output.dm b/code/modules/integrated_electronics/subtypes/output.dm index 96838963c9c..d21f007d722 100644 --- a/code/modules/integrated_electronics/subtypes/output.dm +++ b/code/modules/integrated_electronics/subtypes/output.dm @@ -204,6 +204,20 @@ ) spawn_flags = IC_SPAWN_RESEARCH +/obj/item/integrated_circuit/output/sound/vox + name = "ai vox sound circuit" + desc = "Takes a sound name as an input, and will play said sound when pulsed. This circuit is often found in AI announcement systems." + spawn_flags = IC_SPAWN_RESEARCH + +/obj/item/integrated_circuit/output/sound/vox/Initialize() + sounds = GLOB.vox_sounds + .= ..() + extended_desc = list() + extended_desc += "The first input pin determines which sound is used. It uses the AI Vox Broadcast word list" + extended_desc += ". So either experiment to find words that work, or ask the AI to help in figuring them out" + extended_desc += ". The second pin determines the volume of sound that is played" + extended_desc += ", and the third determines if the frequency of the sound will vary with each activation." + extended_desc = jointext(extended_desc, null) /obj/item/integrated_circuit/output/text_to_speech name = "text-to-speech circuit" From 08fcf7846c19832a6e289e1347702c7c996f67cd Mon Sep 17 00:00:00 2001 From: KomradeSpecte Date: Thu, 7 Dec 2017 11:22:37 -0500 Subject: [PATCH 2/2] fixes redundant code formatting, and one placement error --- code/modules/integrated_electronics/subtypes/output.dm | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/code/modules/integrated_electronics/subtypes/output.dm b/code/modules/integrated_electronics/subtypes/output.dm index d21f007d722..ef6cc644d89 100644 --- a/code/modules/integrated_electronics/subtypes/output.dm +++ b/code/modules/integrated_electronics/subtypes/output.dm @@ -210,14 +210,9 @@ spawn_flags = IC_SPAWN_RESEARCH /obj/item/integrated_circuit/output/sound/vox/Initialize() - sounds = GLOB.vox_sounds .= ..() - extended_desc = list() - extended_desc += "The first input pin determines which sound is used. It uses the AI Vox Broadcast word list" - extended_desc += ". So either experiment to find words that work, or ask the AI to help in figuring them out" - extended_desc += ". The second pin determines the volume of sound that is played" - extended_desc += ", and the third determines if the frequency of the sound will vary with each activation." - extended_desc = jointext(extended_desc, null) + sounds = GLOB.vox_sounds + extended_desc = "The first input pin determines which sound is used. It uses the AI Vox Broadcast word list. So either experiment to find words that work, or ask the AI to help in figuring them out. The second pin determines the volume of sound that is played, and the third determines if the frequency of the sound will vary with each activation." /obj/item/integrated_circuit/output/text_to_speech name = "text-to-speech circuit"