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.
This commit is contained in:
throwawayuseless
2025-05-09 13:55:03 -04:00
committed by Roxy
parent f79d16b8f1
commit 9e70424dc1
2 changed files with 13 additions and 0 deletions

View File

@@ -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.

View File

@@ -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."