tesla_act refactors and balancing (#37369)

experimental: Tesla damage has been reworked to structures and objects have been worked with a linear scaling.

experimental: All tesla weapons now no longer need to hit a mob to arc lightning; however, they will no longer stun, and only hit each target once.

tesla_zap vars are now a single bitfield.
This commit is contained in:
Nich
2018-05-24 12:28:16 +02:00
parent ba3f449da1
commit d0ad31fac1
17 changed files with 96 additions and 69 deletions

View File

@@ -360,7 +360,7 @@
var/tesla_power = 20000
var/tesla_range = 15
var/tesla_boom = FALSE
var/tesla_flags = TESLA_MOB_DAMAGE | TESLA_MOB_STUN | TESLA_OBJ_DAMAGE
var/chain
var/mob/living/caster
@@ -377,7 +377,7 @@
visible_message("<span class='warning'>[src] fizzles on contact with [target]!</span>")
qdel(src)
return
tesla_zap(src, tesla_range, tesla_power, tesla_boom)
tesla_zap(src, tesla_range, tesla_power, tesla_flags)
qdel(src)
/obj/item/projectile/magic/aoe/lightning/Destroy()