[MIRROR] Add more checks to view sensor code [MDB IGNORE] (#15712)

* Add more checks to view sensor code (#69297)

See title, these checks are based on those used by set_turf_examine_tab for the statpanel.
Fixes #68596 (in the specific case of the plasma image holder in the bug, it has MOUSE_OPACITY_TRANSPARENT)

* Add more checks to view sensor code

Co-authored-by: RandomGamer123 <31096837+RandomGamer123@users.noreply.github.com>
This commit is contained in:
SkyratBot
2022-08-19 08:19:21 -07:00
committed by GitHub
co-authored by RandomGamer123
parent 272b17736d
commit 9a60e7fe18
@@ -53,9 +53,12 @@
var/object_list = list()
for(var/atom/movable/target in view(5, get_turf(parent.shell)))
if(target.mouse_opacity == MOUSE_OPACITY_TRANSPARENT)
continue
if(target.invisibility > see_invisible)
continue
if(target.IsObscured())
continue
object_list += target
result.set_output(object_list)