tesla can now be contained

for whatever reason, the contained variable was unused for teslas, but now it is
unintentional side-effect may be that grounding rods for tesla containments with a larger than 1x1 tile space might get eaten (untested but assumed)
This commit is contained in:
raspy-on-osu
2020-08-25 00:46:04 -04:00
parent 1a5248359c
commit 46bec76f41
+3
View File
@@ -91,6 +91,7 @@
/obj/singularity/energy_ball/proc/move_the_basket_ball(var/move_amount)
//we face the last thing we zapped, so this lets us favor that direction a bit
contained=0
var/move_bias = pick(GLOB.alldirs)
var/move_dir
for(var/rod in GLOB.grounding_rods) // grounding rods pull the tesla ball, picks the nearest one
@@ -110,6 +111,8 @@
setDir(move_dir)
for(var/mob/living/carbon/C in loc)
dust_mobs(C)
else
contained=1
/obj/singularity/energy_ball/proc/handle_energy()