From 34f9e11d7644a829d6103e4c8aec1a907e51623b Mon Sep 17 00:00:00 2001 From: PrismaticGynoid Date: Wed, 19 Jul 2017 19:27:07 -0700 Subject: [PATCH] Voice mobs in communicators can now understand speech they hear from mobs that have no default language set - in other words, all silicon mobs - as well as speech not attached to a mob, such as from the Arrivals Announcement Computer. --- code/modules/mob/living/voice/voice.dm | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/code/modules/mob/living/voice/voice.dm b/code/modules/mob/living/voice/voice.dm index 802db9d0997..dbace03e521 100644 --- a/code/modules/mob/living/voice/voice.dm +++ b/code/modules/mob/living/voice/voice.dm @@ -121,6 +121,17 @@ ..(message, speaking, verb, alt_name, whispering) //mob/living/say() can do the actual talking. +/mob/living/voice/say_understands(var/other,var/datum/language/speaking = null) + //These only pertain to common. Languages are handled by mob/say_understands() + if (!speaking) + if (istype(other, /mob/living/carbon)) + return 1 + if (istype(other, /mob/living/silicon)) + return 1 + if (istype(other, /mob/living/carbon/brain)) + return 1 + return ..() + /mob/living/voice/custom_emote(var/m_type=1,var/message = null,var/range=world.view) if(!comm) return ..(m_type,message,comm.video_range)