Phase fixes (#7484)

This commit is contained in:
Guti
2023-12-31 20:13:13 -05:00
committed by GitHub
parent a79e1ba798
commit f32a21f36b
20 changed files with 54 additions and 17 deletions
+14
View File
@@ -0,0 +1,14 @@
/atom/proc/living_mobs_in_view(var/range = world.view, var/count_held = FALSE)
var/list/viewers = oviewers(src, range)
if(count_held)
viewers = viewers(src,range)
var/list/living = list()
for(var/mob/living/L in viewers)
if(L.is_incorporeal())
continue
living += L
if(count_held)
for(var/obj/item/weapon/holder/H in L.contents)
if(istype(H.held_mob, /mob/living))
living += H.held_mob
return living