mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-25 22:28:44 +01:00
[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:
co-authored by
Guti
Cameron Lennox
parent
494fc9bea9
commit
b116cc450d
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user