mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-26 21:48:21 +01:00
Refactors Electrocution and Tesla Zapping (#15357)
* Refactors Electrocution and Tesla Zapping---Improves Supermatter and Tesla * forgot this one * fixes and styling * last tidbits hopefully * machine frames * use flags * styling
This commit is contained in:
@@ -88,7 +88,7 @@
|
||||
var/mob/living/current = target
|
||||
if(bounces < 1)
|
||||
if(damaging)
|
||||
current.electrocute_act(bolt_energy, "Lightning Bolt", safety = TRUE)
|
||||
current.electrocute_act(bolt_energy, "Lightning Bolt", flags = SHOCK_NOGLOVES)
|
||||
else
|
||||
current.AdjustJitter(1000) //High numbers for violent convulsions
|
||||
current.do_jitter_animation(current.jitteriness)
|
||||
@@ -99,7 +99,7 @@
|
||||
playsound(get_turf(current), 'sound/magic/lightningshock.ogg', 50, 1, -1)
|
||||
else
|
||||
if(damaging)
|
||||
current.electrocute_act(bolt_energy, "Lightning Bolt", safety = TRUE)
|
||||
current.electrocute_act(bolt_energy, "Lightning Bolt", flags = SHOCK_NOGLOVES)
|
||||
else
|
||||
current.AdjustJitter(1000) //High numbers for violent convulsions
|
||||
current.do_jitter_animation(current.jitteriness)
|
||||
|
||||
Reference in New Issue
Block a user