Adds "Eye-Glow" for Humanoids w/ High Darksight or XRAY Vision

This commit is contained in:
KasparoVy
2018-02-09 20:12:30 -05:00
parent bd50420a50
commit 5053b2aa74
4 changed files with 16 additions and 1 deletions
+1 -1
View File
@@ -109,7 +109,7 @@ var/global/list/limb_icon_cache = list()
if(eye_implant) // Eye implants override native DNA eye color
eyes_icon.Blend(eye_implant.eye_colour, ICON_ADD)
else if(eyes)
eyes_icon.Blend(eyes.eye_colour, ICON_ADD)
eyes_icon = eyes.generate_icon()
else
eyes_icon.Blend("#800000", ICON_ADD)
mob_icon.Blend(eyes_icon, ICON_OVERLAY)
@@ -305,6 +305,13 @@
/obj/item/organ/internal/eyes/proc/update_colour()
dna.write_eyes_attributes(src)
/obj/item/organ/internal/eyes/proc/generate_icon(var/mob/living/carbon/human/H)
var/mob/living/carbon/human/G = H ? H : owner
if(istype(G))
var/icon/eyes_icon = new/icon('icons/mob/human_face.dmi', G.species.eyes)
eyes_icon.Blend(eye_colour, ICON_ADD)
return(eyes_icon)
/obj/item/organ/internal/eyes/proc/get_colourmatrix() //Returns a special colour matrix if the eyes are organic and the mob is colourblind, otherwise it uses the current one.
if(!robotic && owner.disabilities & COLOURBLIND)
return colourblind_matrix