From 7840205d4eb9b7ac4b0a157bf4f834320cfaa3df Mon Sep 17 00:00:00 2001 From: raspy-on-osu Date: Wed, 26 Aug 2020 23:59:15 -0400 Subject: [PATCH] shuffle containment checking for optimization now it should be checking less (tested, functionally identical to before) --- code/modules/power/tesla/energy_ball.dm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/code/modules/power/tesla/energy_ball.dm b/code/modules/power/tesla/energy_ball.dm index ea50015663..f28eadd297 100644 --- a/code/modules/power/tesla/energy_ball.dm +++ b/code/modules/power/tesla/energy_ball.dm @@ -62,11 +62,12 @@ ..() -/obj/singularity/energy_ball/process() - determine_containment() +/obj/singularity/energy_ball/process() if(!orbiting) handle_energy() + determine_containment() + move_the_basket_ball(4 + orbiting_balls.len * 1.5) playsound(src.loc, 'sound/magic/lightningbolt.ogg', 100, TRUE, extrarange = 30)