Adjust ghosts hearing whispers/subtles

This commit is contained in:
Aronai Sieyes
2020-04-17 17:11:24 -04:00
parent 429d33fc29
commit de41cd1fd1
2 changed files with 13 additions and 2 deletions
+6
View File
@@ -363,6 +363,12 @@ proc/get_radio_key_from_channel(var/channel)
spawn(0) //Using spawns to queue all the messages for AFTER this proc is done, and stop runtimes
if(M && src) //If we still exist, when the spawn processes
//VOREStation Add - Ghosts don't hear whispers
if(whispering && isobserver(M) && !M.client?.holder)
M.show_message("<span class='game say'><span class='name'>[src.name]</span> [w_not_heard].</span>", 2)
return
//VOREStation Add End
var/dst = get_dist(get_turf(M),get_turf(src))
if(dst <= message_range || (M.stat == DEAD && !forbid_seeing_deadchat)) //Inside normal message range, or dead with ears (handled in the view proc)
+7 -2
View File
@@ -42,6 +42,7 @@
return
if (message)
var/undisplayed_message = "<span class='emote'><B>[src]</B> <I>does something too subtle for you to see.</I></span>"
message = encode_html_emphasis(message)
var/list/vis = get_mobs_and_objs_in_view_fast(get_turf(src),1,2) //Turf, Range, and type 2 is emote
@@ -50,8 +51,12 @@
for(var/vismob in vis_mobs)
var/mob/M = vismob
spawn(0)
M.show_message(message, 2)
if(isobserver(M) && !M.client?.holder)
spawn(0)
M.show_message(undisplayed_message, 2)
else
spawn(0)
M.show_message(message, 2)
for(var/visobj in vis_objs)
var/obj/O = visobj