EMP Refactor & Multi Z-level EMPs (#17781)

* sdfasf

* sdfas

* dsf
This commit is contained in:
Fluffy
2023-12-04 19:37:49 +00:00
committed by GitHub
parent 8f1a282756
commit d8d063edc6
143 changed files with 744 additions and 272 deletions
@@ -10,8 +10,11 @@
health = 200
/obj/structure/closet/emp_act(severity)
. = ..()
if(!secure)
return
for(var/obj/O in src)
O.emp_act(severity)
if(!broken)
@@ -24,7 +27,6 @@
else
req_access = list()
req_access += pick(get_all_station_access())
..()
/obj/structure/closet/proc/togglelock(mob/user as mob, silent)
if(use_check_and_message(user))
@@ -258,7 +258,8 @@
ripped = TRUE
if(rip_linked)
var/obj/item/stack/material/cloth/C = new(src.loc, flag_size ? 2 : 1)
user.put_in_hands(C)
if(user)
user.put_in_hands(C)
if(rip_linked && linked_flag)
linked_flag.rip(user, FALSE) // Prevents an infinite ripping loop.