diff --git a/code/modules/mob/living/carbon/carbon_defense.dm b/code/modules/mob/living/carbon/carbon_defense.dm index 7108e654ff0..7a4c39190e3 100644 --- a/code/modules/mob/living/carbon/carbon_defense.dm +++ b/code/modules/mob/living/carbon/carbon_defense.dm @@ -47,6 +47,9 @@ return null /mob/living/carbon/is_pepper_proof(check_flags = ALL) + var/obj/item/organ/internal/eyes/eyes = getorgan(/obj/item/organ/internal/eyes) + if(eyes && eyes.pepperspray_protect) + return eyes if((check_flags & ITEM_SLOT_HEAD) && head && (head.flags_cover & PEPPERPROOF)) return head if((check_flags & ITEM_SLOT_MASK) && wear_mask && (wear_mask.flags_cover & PEPPERPROOF)) diff --git a/code/modules/mob/living/carbon/human/species_types/shadowpeople.dm b/code/modules/mob/living/carbon/human/species_types/shadowpeople.dm index 882e0da8ee3..862dd6aa38a 100644 --- a/code/modules/mob/living/carbon/human/species_types/shadowpeople.dm +++ b/code/modules/mob/living/carbon/human/species_types/shadowpeople.dm @@ -109,3 +109,4 @@ name = "burning red eyes" desc = "Even without their shadowy owner, looking at these eyes gives you a sense of dread." icon = 'icons/obj/medical/organs/shadow_organs.dmi' + pepperspray_protect = TRUE diff --git a/code/modules/surgery/organs/eyes.dm b/code/modules/surgery/organs/eyes.dm index f67ae77d1e5..2646c75f92a 100644 --- a/code/modules/surgery/organs/eyes.dm +++ b/code/modules/surgery/organs/eyes.dm @@ -32,6 +32,8 @@ var/flash_protect = FLASH_PROTECTION_NONE /// What level of invisibility these eyes can see var/see_invisible = SEE_INVISIBLE_LIVING + /// Are these eyes immune to pepperspray? + var/pepperspray_protect = FALSE /// How much alpha lighting has (basically, night vision) var/lighting_alpha