mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 02:09:41 +00:00
[MIRROR] Fixes invisible markings (#10979)
Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
committed by
GitHub
parent
cfeab936b9
commit
f7f88e74fa
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user