EMP & Wires refactor (#19401)

* EMP Refactor

* EVERYBODY gets wires

* Shield gen

* fix

* Fix those

* Changes

* ,

* kill

---------

Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
Guti
2026-04-11 15:05:41 -04:00
committed by GitHub
co-authored by Cameron Lennox
parent 31e417e772
commit 8e357dd556
146 changed files with 658 additions and 379 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()