From 9e70424dc184e46fa34eaf3fc417784f8b8a14e0 Mon Sep 17 00:00:00 2001 From: throwawayuseless Date: Fri, 9 May 2025 13:55:03 -0400 Subject: [PATCH] adds Encoded Audio Language to the robotic voicebox. (#90635) Robotic voiceboxes allow you to speak EAL, and you can understand it as normal for knowing a language when said voicebox is installed. If the Star-Wars and 40k guys can learn to intelligibly interpret robot whirring, I'm sure we can too. --- code/__DEFINES/language.dm | 1 + .../surgery/organs/internal/tongue/_tongue.dm | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/code/__DEFINES/language.dm b/code/__DEFINES/language.dm index f13304f10c2..9189ae20b2e 100644 --- a/code/__DEFINES/language.dm +++ b/code/__DEFINES/language.dm @@ -39,6 +39,7 @@ #define LANGUAGE_RADIOKEY "radiokey" #define LANGUAGE_BABEL "babel" #define LANGUAGE_EMP "emp" +#define LANGUAGE_TONGUE "tongue" // Language flags. Used in granting and removing languages. /// This language can be spoken. diff --git a/code/modules/surgery/organs/internal/tongue/_tongue.dm b/code/modules/surgery/organs/internal/tongue/_tongue.dm index 755f39a026e..51498f79e98 100644 --- a/code/modules/surgery/organs/internal/tongue/_tongue.dm +++ b/code/modules/surgery/organs/internal/tongue/_tongue.dm @@ -579,6 +579,18 @@ /obj/item/organ/tongue/robot/modify_speech(datum/source, list/speech_args) speech_args[SPEECH_SPANS] |= SPAN_ROBOT +/obj/item/organ/tongue/robot/on_mob_insert(mob/living/carbon/receiver) + . = ..() + receiver.grant_language(/datum/language/machine, source = LANGUAGE_TONGUE) + to_chat(receiver, span_boldnotice("You gain a new understanding of [/datum/language/machine::name].")) + +/obj/item/organ/tongue/robot/on_mob_remove(mob/living/carbon/owner) + . = ..() + if(QDELING(owner)) + return + owner.remove_language(/datum/language/machine, source = LANGUAGE_TONGUE) + to_chat(owner, span_boldnotice("You're not really sure what beeps and boops mean anymore.")) + /obj/item/organ/tongue/snail name = "radula" desc = "A minutely toothed, chitinous ribbon, which as a side effect, makes all snails talk IINNCCRREEDDIIBBLLYY SSLLOOWWLLYY."