From 730a7a4000b2362edd36c1c0a28d4f741e9a8ca6 Mon Sep 17 00:00:00 2001 From: Cameron Lennox Date: Fri, 30 May 2025 16:16:43 -0400 Subject: [PATCH] No more invisible man (#17769) --- code/modules/organs/organ_external.dm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/modules/organs/organ_external.dm b/code/modules/organs/organ_external.dm index 40638b21153..0a7b461360b 100644 --- a/code/modules/organs/organ_external.dm +++ b/code/modules/organs/organ_external.dm @@ -216,6 +216,8 @@ //new function to check for markings /obj/item/organ/external/proc/is_hidden_by_markings() for(var/M in markings) + if(!markings[M]["on"]) //If the marking is off, the organ isn't hidden by it. + continue var/datum/sprite_accessory/marking/mark_style = markings[M]["datum"] if(istype(mark_style,/datum/sprite_accessory/marking) && (organ_tag in mark_style.hide_body_parts)) return 1 @@ -1477,6 +1479,8 @@ Note that amputating the affected organ does in fact remove the infection from t return 1 if(clothing_only && markings.len) for(var/M in markings) + if(!markings[M]["on"]) //If the marking is off, the organ isn't hidden by it. + continue var/datum/sprite_accessory/marking/mark = markings[M]["datum"] if(mark.hide_body_parts && (organ_tag in mark.hide_body_parts)) return 1