talking crystal can be heard with ghost ears

Signed-off-by: caelaislinn <cael_aislinn@yahoo.com.au>
This commit is contained in:
caelaislinn
2012-06-24 19:58:21 +10:00
parent 021ddbde38
commit 2237e3f658

View File

@@ -196,7 +196,17 @@
msg+="."
else
msg+="!"
for(var/mob/M in viewers(src))
var/list/listening = viewers(src)
for(var/mob/M in world)
if (!M.client)
continue //skip monkeys and leavers
if (istype(M, /mob/new_player))
continue
if(M.stat == 2 && M.client.ghost_ears)
listening|=M
for(var/mob/M in listening)
M << "<b>The crystal</b> says, \"[msg]\""
lastsaid = world.timeofday + rand(300,800)