From 94ea00b5a7b5acbc8b4d327ce68950c162569873 Mon Sep 17 00:00:00 2001 From: "sieve32@gmail.com" Date: Sat, 18 Aug 2012 03:11:45 +0000 Subject: [PATCH] Clearing out a bad leftover that prevented MMI's from understanding AIs/borgs git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4487 316c924e-a436-60f5-8080-3fe189b3f50e --- code/modules/mob/living/carbon/brain/brain.dm | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/code/modules/mob/living/carbon/brain/brain.dm b/code/modules/mob/living/carbon/brain/brain.dm index c4e1427d6b9..0a917a0158f 100644 --- a/code/modules/mob/living/carbon/brain/brain.dm +++ b/code/modules/mob/living/carbon/brain/brain.dm @@ -20,8 +20,11 @@ ..() say_understands(var/other)//Goddamn is this hackish, but this say code is so odd - if (istype(other, /mob/living/silicon/ai))//No eavesdropping on the AI - return 0 + if (istype(other, /mob/living/silicon/ai)) + if(!(container && istype(container, /obj/item/device/mmi))) + return 0 + else + return 1 if (istype(other, /mob/living/silicon/decoy)) if(!(container && istype(container, /obj/item/device/mmi))) return 0 @@ -32,8 +35,11 @@ return 0 else return 1 - if (istype(other, /mob/living/silicon/robot))//Or borgs - return 0 + if (istype(other, /mob/living/silicon/robot)) + if(!(container && istype(container, /obj/item/device/mmi))) + return 0 + else + return 1 if (istype(other, /mob/living/carbon/human)) return 1 if (istype(other, /mob/living/carbon/metroid))