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
@@ -19,6 +19,9 @@
return ..()
/obj/structure/closet/secure_closet/emp_act(severity, recursive)
. = ..()
if (. & EMP_PROTECT_SELF)
return
if(!broken)
if(prob(50/severity))
locked = !locked
@@ -29,7 +32,6 @@
else
req_access = list()
req_access += pick(SSaccess.get_all_station_access())
..()
/obj/structure/closet/secure_closet/proc/togglelock(mob/user as mob)
if(opened)
@@ -224,6 +224,9 @@
return 1
/obj/structure/closet/crate/secure/emp_act(severity, recursive)
. = ..()
if (. & EMP_PROTECT_SELF)
return
if(!broken && !opened && prob(50/severity))
if(!locked)
locked = TRUE
@@ -237,7 +240,6 @@
req_access = list()
req_access += pick(SSaccess.get_all_station_access())
update_icon()
..()
/obj/structure/closet/crate/plastic
name = "plastic crate"