From a5e2dc5abc936baca852702b40db8c01fbfc4a15 Mon Sep 17 00:00:00 2001 From: Iajret Creature <122297233+AnArgonianLizardThatStealsPRs@users.noreply.github.com> Date: Thu, 19 Oct 2023 11:29:52 +0300 Subject: [PATCH] [MIRROR] Clicking a bitrunning pod orbits its avatar [MDB IGNORE] (#138) * Clicking a bitrunning pod orbits its avatar --------- Co-authored-by: SkyratBot <59378654+SkyratBot@users.noreply.github.com> 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)