Merge pull request #9101 from Sishen1542/stealthy-surgery

obfuscates specific surgeries, gives generalized areas to anybody in viewing range
This commit is contained in:
kevinz000
2019-08-11 09:59:29 -07:00
committed by GitHub
27 changed files with 346 additions and 289 deletions
+4 -2
View File
@@ -116,17 +116,19 @@
// vision_distance (optional) define how many tiles away the message can be seen.
// ignored_mob (optional) doesn't show any message to a given mob if TRUE.
/atom/proc/visible_message(message, self_message, blind_message, vision_distance, ignored_mob, no_ghosts = FALSE)
/atom/proc/visible_message(message, self_message, blind_message, vision_distance, list/ignored_mobs, no_ghosts = FALSE)
var/turf/T = get_turf(src)
if(!T)
return
if(!islist(ignored_mobs))
ignored_mobs = list(ignored_mobs)
var/range = 7
if(vision_distance)
range = vision_distance
for(var/mob/M in get_hearers_in_view(range, src))
if(!M.client)
continue
if(M == ignored_mob)
if(M in ignored_mobs)
continue
var/msg = message
if(isobserver(M) && no_ghosts)