Adds RSG immune back to MODsuits that lost it (#25669)

* Adds RSG immune to Dsquad MODsuits

* Updates string

* Adds trait to Gamma MODsuits for Sec and Medical
This commit is contained in:
DGamerL
2024-05-30 17:26:19 +02:00
committed by GitHub
parent 5a2fd048b1
commit 8440ba64f1
6 changed files with 23 additions and 7 deletions
@@ -823,6 +823,9 @@
if(HAS_TRAIT(src, TRAIT_PIERCEIMMUNE))
. = FALSE
if(wear_suit && HAS_TRAIT(wear_suit, TRAIT_RSG_IMMUNE))
return FALSE
var/obj/item/organ/external/affecting = get_organ(target_zone)
var/fail_msg
if(!affecting)
@@ -831,8 +834,10 @@
else if(affecting.is_robotic())
. = FALSE
fail_msg = "That limb is robotic."
if(wear_suit && !HAS_TRAIT(wear_suit, TRAIT_PUNCTURE_IMMUNE) && piercing)
if(piercing)
return TRUE
if(target_zone == "head")
if((head?.flags & THICKMATERIAL) && !penetrate_thick)
. = FALSE