Posibrain Language (#10852)

This commit is contained in:
Geeves
2020-12-31 21:40:11 +02:00
committed by GitHub
parent 008f2153fe
commit 30971cd9ec
3 changed files with 15 additions and 30 deletions
+3 -2
View File
@@ -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
+6 -28
View File
@@ -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