[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
@@ -235,7 +235,8 @@
change_power_consumption(1500 * (range**2), USE_POWER_IDLE) //Exponential increase, also affects speed of overheating
/obj/machinery/shipsensors/emp_act(severity, recursive)
if(!use_power)
. = ..()
if (. & EMP_PROTECT_SELF || !use_power)
return
take_damage(20/severity)
toggle()