Merge pull request #7080 from VOREStation/pol-uavs

Add UAVs
This commit is contained in:
Atermonera
2020-05-13 21:33:15 -07:00
committed by GitHub
17 changed files with 761 additions and 30 deletions
+4 -4
View File
@@ -272,17 +272,17 @@
var/list/hearturfs = list()
for(var/thing in hear)
if(istype(thing,/obj))
if(istype(thing, /obj)) //Can't use isobj() because /atom/movable returns true in that, and so lighting overlays would be included
objs += thing
hearturfs |= get_turf(thing)
else if(istype(thing,/mob))
if(ismob(thing))
mobs += thing
hearturfs |= get_turf(thing)
//A list of every mob with a client
for(var/mob in player_list)
if(!istype(mob, /mob))
crash_with("There is a null or non-mob reference inside player_list.")
if(!ismob(mob))
player_list -= mob
continue
if(get_turf(mob) in hearturfs)
mobs |= mob