From 30971cd9ec85ad5e779834ec9769cd7bdc201b4e Mon Sep 17 00:00:00 2001 From: Geeves Date: Thu, 31 Dec 2020 21:40:11 +0200 Subject: [PATCH] Posibrain Language (#10852) --- code/modules/mob/living/carbon/brain/MMI.dm | 5 +-- code/modules/mob/living/carbon/brain/brain.dm | 34 ++++--------------- html/changelogs/geeves-posibrain_language.yml | 6 ++++ 3 files changed, 15 insertions(+), 30 deletions(-) create mode 100644 html/changelogs/geeves-posibrain_language.yml diff --git a/code/modules/mob/living/carbon/brain/MMI.dm b/code/modules/mob/living/carbon/brain/MMI.dm index 25878efc4d8..50060bed34a 100644 --- a/code/modules/mob/living/carbon/brain/MMI.dm +++ b/code/modules/mob/living/carbon/brain/MMI.dm @@ -1,11 +1,12 @@ //This file was auto-corrected by findeclaration.exe on 25.5.2012 20:42:32 -/obj/item/device/mmi/digital/New() +/obj/item/device/mmi/digital/Initialize(mapload, ...) + . = ..() src.brainmob = new(src) + brainmob.add_language(LANGUAGE_EAL) src.brainmob.stat = CONSCIOUS src.brainmob.container = src src.brainmob.silent = 0 - ..() /obj/item/device/mmi/digital/transfer_identity(var/mob/living/carbon/H) brainmob.dna = H.dna diff --git a/code/modules/mob/living/carbon/brain/brain.dm b/code/modules/mob/living/carbon/brain/brain.dm index f0eb69c307c..a8a5fcbeeaa 100644 --- a/code/modules/mob/living/carbon/brain/brain.dm +++ b/code/modules/mob/living/carbon/brain/brain.dm @@ -8,6 +8,12 @@ use_me = 0 //Can't use the me verb, it's a freaking immobile brain icon = 'icons/obj/surgery.dmi' icon_state = "brain" + accent = ACCENT_TTS + +/mob/living/carbon/brain/Initialize() + . = ..() + add_language(LANGUAGE_TCB) + set_default_language(all_languages[LANGUAGE_TCB]) /mob/living/carbon/brain/Destroy() if(key) //If there is a mob connected to this thing. Have to check key twice to avoid false death reporting. @@ -17,34 +23,6 @@ container = null return ..() -/mob/living/carbon/brain/say_understands(var/other)//Goddamn is this hackish, but this say code is so odd - if (istype(other, /mob/living/silicon/ai)) - if(!(container && istype(container, /obj/item/device/mmi))) - return 0 - else - return 1 - else if (istype(other, /mob/living/silicon/decoy)) - if(!(container && istype(container, /obj/item/device/mmi))) - return 0 - else - return 1 - else if (istype(other, /mob/living/silicon/pai)) - if(!(container && istype(container, /obj/item/device/mmi))) - return 0 - else - return 1 - else if (istype(other, /mob/living/silicon/robot)) - if(!(container && istype(container, /obj/item/device/mmi))) - return 0 - else - return 1 - else if (istype(other, /mob/living/carbon/human)) - return 1 - else if (istype(other, /mob/living/carbon/slime)) - return 1 - - return ..() - /mob/living/carbon/brain/update_canmove() if(istype(loc, /obj/item/device/mmi)) canmove = 1 diff --git a/html/changelogs/geeves-posibrain_language.yml b/html/changelogs/geeves-posibrain_language.yml new file mode 100644 index 00000000000..7a378fbd3f7 --- /dev/null +++ b/html/changelogs/geeves-posibrain_language.yml @@ -0,0 +1,6 @@ +author: Geeves + +delete-after: True + +changes: + - rscadd: "Posibrains and MMI now get Tau Ceti Basic and EAL on spawn, as well as a TTS accent." \ No newline at end of file