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
This commit is contained in:
only.lurking@gmail.com
2011-05-30 22:44:26 +00:00
parent e1797fe6e6
commit 296fa21ae6
3 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -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)
+2
View File
@@ -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)