From 364c0253dc85aa4689fab2f7a66e90d1fe6404c3 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 ++- html/changelogs/Leshana - tesla-grounding.yml | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 html/changelogs/Leshana - tesla-grounding.yml diff --git a/code/modules/power/tesla/energy_ball.dm b/code/modules/power/tesla/energy_ball.dm index 4327bbf42d..3e921d78a9 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 diff --git a/html/changelogs/Leshana - tesla-grounding.yml b/html/changelogs/Leshana - tesla-grounding.yml new file mode 100644 index 0000000000..ee246f5f27 --- /dev/null +++ b/html/changelogs/Leshana - tesla-grounding.yml @@ -0,0 +1,4 @@ +author: Leshana +delete-after: True +changes: + - tweak: "Grounding rods act intuitively, only having an expanded lighting catch area when anchored."