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
+9 -4
View File
@@ -95,10 +95,13 @@
return
/obj/machinery/shield/emp_act(severity)
. = ..()
switch(severity)
if(1)
if(EMP_HEAVY)
qdel(src)
if(2)
if(EMP_LIGHT)
if(prob(50))
qdel(src)
@@ -256,12 +259,14 @@
return
/obj/machinery/shieldgen/emp_act(severity)
. = ..()
switch(severity)
if(1)
if(EMP_HEAVY)
src.health /= 2 //cut health in half
malfunction = TRUE
locked = pick(0,1)
if(2)
if(EMP_LIGHT)
if(prob(50))
src.health *= 0.3 //chop off a third of the health
malfunction = TRUE