From 768811555211d98bafe05f2fad8cb7a8e720a329 Mon Sep 17 00:00:00 2001 From: Leshana Date: Mon, 19 Feb 2018 03:41:18 -0500 Subject: [PATCH] Tweak Tesla Grounding Rods Grounding rods that are anchored can be struck two turfs farther away than unanchored. This makes it possible to leapfrog towards a tesla because an unanchored one can be protected in the "shadow" of the anchored one. --- code/modules/power/tesla/energy_ball.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/modules/power/tesla/energy_ball.dm b/code/modules/power/tesla/energy_ball.dm index 4152b5e3620..d37eec4b5dc 100644 --- a/code/modules/power/tesla/energy_ball.dm +++ b/code/modules/power/tesla/energy_ball.dm @@ -218,7 +218,8 @@ continue //no need checking these other things else if(istype(A, /obj/machinery/power/grounding_rod)) - var/dist = get_dist(source, A)-2 + var/obj/machinery/power/grounding_rod/G = A + var/dist = get_dist(source, A) - (G.anchored ? 2 : 0) if(dist <= zap_range && (dist < closest_dist || !closest_grounding_rod)) closest_grounding_rod = A closest_atom = A