[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 16:14:18 -04:00
committed by GitHub
co-authored by Guti Cameron Lennox
parent 494fc9bea9
commit b116cc450d
148 changed files with 665 additions and 384 deletions
@@ -20,6 +20,9 @@
return ..()
/obj/structure/closet/secure_closet/emp_act(severity, recursive)
. = ..()
if (. & EMP_PROTECT_SELF)
return
if(!broken)
if(prob(50/severity))
locked = !locked
@@ -30,7 +33,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"