[MIRROR] EMP & Wires refactor (#12658)

Co-authored-by: Guti <32563288+TheCaramelion@users.noreply.github.com>
Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2026-04-11 13:14:18 -07:00
committed by GitHub
parent 494fc9bea9
commit b116cc450d
148 changed files with 665 additions and 384 deletions
@@ -40,6 +40,9 @@
// EMPs are similar to explosions, but don't cause physical damage to the casing. Instead they screw up the components
/obj/item/modular_computer/emp_act(severity, recursive)
. = ..()
if (. & EMP_PROTECT_SELF)
return
take_damage(rand(100,200) / severity, 50 / severity, 0)
// "Stun" weapons can cause minor damage to components (short-circuits?)