Checks equipped glasses or headgear instead of just contents

This commit is contained in:
Vi3trice
2021-09-13 10:50:10 -04:00
parent 839d3e3777
commit 4722b80300
@@ -1679,9 +1679,14 @@ Eyes need to have significantly high darksight to shine unless the mob has the X
return
return md5(dna.uni_identity)
/mob/living/carbon/human/can_see_reagents()
for(var/obj/item/clothing/C in src) //If they have some clothing equipped that lets them see reagents, they can see reagents
if(C.scan_reagents)
/mob/living/carbon/human/can_see_reagents() //If they have some glases or helmet equipped that lets them see reagents, they can see reagents
if(istype(head, /obj/item/clothing/head))
var/obj/item/clothing/head/hat = head
if(hat.scan_reagents)
return 1
if(istype(glasses, /obj/item/clothing/glasses))
var/obj/item/clothing/rscan = glasses
if(rscan.scan_reagents)
return 1
/mob/living/carbon/human/can_eat(flags = 255)