[MIRROR] Readds the tesla, reworks it a bit (#719)

* Readds the tesla, reworks it a bit (#53072)

* Makes tesla movement nicer, fixes some atmos concerns, changes how energy is handled, and readds the tesla

* readds delam and desc

* I fucked it

* flags

* holy fuck

* Constricts the zaps that can generate power from a tesla coil

* *kick?

* Readds the tesla, reworks it a bit

Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com>
This commit is contained in:
SkyratBot
2020-09-09 08:30:41 +02:00
committed by GitHub
co-authored by LemonInTheDark
parent ffd21a9d50
commit 66a1e12afb
9 changed files with 205 additions and 15 deletions
+7 -1
View File
@@ -131,4 +131,10 @@
return "<span class='warning'>It's falling apart!</span>"
/obj/structure/rust_heretic_act()
take_damage(500, BRUTE, MELEE, 1)
take_damage(500, BRUTE, "melee", 1)
/obj/structure/zap_act(power, zap_flags)
if(zap_flags & ZAP_OBJ_DAMAGE)
take_damage(power/8000, BURN, "energy")
power -= power/2000 //walls take a lot out of ya
. = ..()