From 296fa21ae68af611171e8dab38d333e2ab0e6907 Mon Sep 17 00:00:00 2001 From: "only.lurking@gmail.com" Date: Mon, 30 May 2011 22:44:26 +0000 Subject: [PATCH] More pAI fixes. Apparently silicon based mobs automatically get access to Robotic Talk - since pAIs aren't bound by AI laws this could be incredibly game breaking for rogue borgs/AIs. Also changed viewers() to hearers() when checking to see if MMIs/Intelicards/et all can hear something, so they're no longer deaf in the dark. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1638 316c924e-a436-60f5-8080-3fe189b3f50e --- code/defines/mob/living/silicon/pai.dm | 3 +++ code/modules/mob/living/say.dm | 2 +- code/modules/mob/living/silicon/say.dm | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/code/defines/mob/living/silicon/pai.dm b/code/defines/mob/living/silicon/pai.dm index ad7d6a34b9f..f7f3cd9c379 100644 --- a/code/defines/mob/living/silicon/pai.dm +++ b/code/defines/mob/living/silicon/pai.dm @@ -3,6 +3,9 @@ voice_name = "synthesized voice" icon = 'mob.dmi'// icon_state = "shadow" + + robot_talk_understand = 0 + var/network = "SS13" var/obj/machinery/camera/current = null diff --git a/code/modules/mob/living/say.dm b/code/modules/mob/living/say.dm index c89d6e756de..e9bcaa0cb29 100644 --- a/code/modules/mob/living/say.dm +++ b/code/modules/mob/living/say.dm @@ -250,7 +250,7 @@ */ var/turf/T = get_turf(src) listening = hearers(message_range, T) - var/list/V = view(message_range, T) + var/list/V = hearers(message_range, T) //find mobs in lockers, cryo, intellicards, brains, MMIs, and so on. for (var/mob/M in world) if (!M.client) diff --git a/code/modules/mob/living/silicon/say.dm b/code/modules/mob/living/silicon/say.dm index 53980f9c459..135b834152c 100644 --- a/code/modules/mob/living/silicon/say.dm +++ b/code/modules/mob/living/silicon/say.dm @@ -15,6 +15,8 @@ if (length(message) >= 2) if (copytext(message, 1, 3) == ":s") + if(istype(src, /mob/living/silicon/pai)) + return ..(message) message = copytext(message, 3) message = trim(copytext(sanitize(message), 1, MAX_MESSAGE_LEN)) robot_talk(message)