mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-26 13:39:16 +01:00
No more invisible man (#17769)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user