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?
This commit is contained in:
LemonInTheDark
2020-09-08 20:16:42 -07:00
committed by GitHub
parent f41196d330
commit 2c20897f00
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
. = ..()