Nearsighted Sensors Fix (#16338)

This commit is contained in:
Geeves
2023-05-20 15:34:04 +00:00
committed by GitHub
parent ab76bc19c6
commit 3707118ebc
4 changed files with 12 additions and 1 deletions
@@ -58,6 +58,7 @@ somewhere on that shuttle. Subtypes of these can be then used to perform ship ov
LAZYDISTINCTADD(viewers, WEAKREF(user))
if(linked)
LAZYDISTINCTADD(linked.navigation_viewers, WEAKREF(user))
ADD_TRAIT(user, TRAIT_COMPUTER_VIEW, ref(src))
/obj/machinery/computer/ship/proc/unlook(var/mob/user)
user.reset_view()
@@ -87,6 +88,8 @@ somewhere on that shuttle. Subtypes of these can be then used to perform ship ov
for(var/obj/machinery/computer/ship/sensors/sensor in linked.consoles)
sensor.hide_contacts(user)
REMOVE_TRAIT(user, TRAIT_COMPUTER_VIEW, ref(src))
/obj/machinery/computer/ship/proc/viewing_overmap(mob/user)
return (WEAKREF(user) in viewers) || (linked && (WEAKREF(user) in linked.navigation_viewers))