mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-12 08:27:13 +01:00
Posibrain Language (#10852)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user