[MIRROR] Fixes invisible markings (#10979)

Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-05-31 18:01:28 -07:00
committed by GitHub
parent cfeab936b9
commit f7f88e74fa

View File

@@ -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
@@ -1483,6 +1485,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