if(rods) literally just eats disk space and nothing more

no longer. 300 bytes saved
This commit is contained in:
raspy-on-osu
2020-08-24 23:46:38 -04:00
parent 2e5517b9f3
commit 1a5248359c
+3 -5
View File
@@ -93,11 +93,9 @@
//we face the last thing we zapped, so this lets us favor that direction a bit
var/move_bias = pick(GLOB.alldirs)
var/move_dir
var/rods = GLOB.grounding_rods
if(rods) // grounding rods pull the tesla ball, picks the nearest one
for(var/rod in rods)
if(!rodtarget || get_dist(src,rod)<get_dist(src,rodtarget))
rodtarget=rod
for(var/rod in GLOB.grounding_rods) // grounding rods pull the tesla ball, picks the nearest one
if(!rodtarget || get_dist(src,rod)<get_dist(src,rodtarget))
rodtarget=rod
for(var/i in 0 to move_amount)
if(rodtarget)