Changes how fingerprints are applied to objects through gloves. (#65674)

This commit is contained in:
Wallem
2022-03-28 10:22:33 -07:00
committed by GitHub
parent ea1a8fb557
commit 9458d3a801
9 changed files with 12 additions and 16 deletions
+3 -3
View File
@@ -84,9 +84,9 @@
if(ishuman(M))
var/mob/living/carbon/human/H = M
add_fibers(H)
if(H.gloves) //Check if the gloves (if any) hide fingerprints
var/obj/item/clothing/gloves/G = H.gloves
if(G.transfer_prints)
var/obj/item/gloves = H.gloves
if(gloves) //Check if the gloves (if any) hide fingerprints
if(!(gloves.body_parts_covered & HANDS) || HAS_TRAIT(gloves, TRAIT_FINGERPRINT_PASSTHROUGH) || HAS_TRAIT(H, TRAIT_FINGERPRINT_PASSTHROUGH))
ignoregloves = TRUE
if(!ignoregloves)
H.gloves.add_fingerprint(H, TRUE) //ignoregloves = 1 to avoid infinite loop.