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-22 15:32:31 -05:00
parent a47ce58f0a
commit 364c0253dc
2 changed files with 6 additions and 1 deletions
+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