From 55901e24697f5118becd7d724a9711eeba7a15d6 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Thu, 19 Oct 2023 03:30:31 +0200 Subject: [PATCH] [MIRROR] Clicking a bitrunning pod orbits its avatar [MDB IGNORE] (#24417) * Clicking a bitrunning pod orbits its avatar (#79053) * Clicking a bitrunning pod orbits its avatar --------- Co-authored-by: Rhials <28870487+Rhials@users.noreply.github.com> --- code/modules/bitrunning/objects/netpod.dm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/modules/bitrunning/objects/netpod.dm b/code/modules/bitrunning/objects/netpod.dm index d92da961b86..25719d7b259 100644 --- a/code/modules/bitrunning/objects/netpod.dm +++ b/code/modules/bitrunning/objects/netpod.dm @@ -227,6 +227,11 @@ return FALSE +/obj/machinery/netpod/attack_ghost(mob/dead/observer/our_observer) + var/our_target = avatar_ref?.resolve() + if(isnull(our_target) || !our_observer.orbit(our_target)) + return ..() + /// Disconnects the occupant after a certain time so they aren't just hibernating in netpod stasis. A balance change /obj/machinery/netpod/proc/auto_disconnect() if(isnull(occupant) || state_open || connected)