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.
This commit is contained in:
Leshana
2018-02-19 03:41:45 -05:00
parent ee022c1f79
commit 7688115552
+2 -1
View File
@@ -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