if(rods) literally just eats disk space and nothing more
no longer. 300 bytes saved
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user