Add two new IPC implants, an EMP resist and a Defensive implant (#30911)

* add two new IPC implants

* make EMP resisted IPCs take less body damage but more organ damage

* oops
This commit is contained in:
Pooble
2025-12-03 12:38:26 -05:00
committed by GitHub
parent 101af16180
commit 2ac3fb2b3e
8 changed files with 54 additions and 4 deletions
@@ -1049,7 +1049,7 @@ GLOBAL_LIST_INIT(ventcrawl_machinery, list(/obj/machinery/atmospherics/unary/ven
if(HAS_TRAIT(src, TRAIT_EMP_IMMUNE))
return
if(HAS_TRAIT(src, TRAIT_EMP_RESIST))
severity = clamp(severity, EMP_LIGHT, EMP_WEAKENED)
severity = clamp(severity, EMP_RESIST_ORGAN, EMP_WEAKENED)
for(var/X in internal_organs)
var/obj/item/organ/internal/O = X
O.emp_act(severity)
@@ -273,7 +273,7 @@ emp_act
if(HAS_TRAIT(src, TRAIT_EMP_IMMUNE))
return
if(HAS_TRAIT(src, TRAIT_EMP_RESIST))
severity = clamp(severity, EMP_LIGHT, EMP_WEAKENED)
severity = clamp(severity, EMP_RESIST_BODY, EMP_WEAKENED)
for(var/X in bodyparts)
var/obj/item/organ/external/L = X
L.emp_act(severity)