mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 03:27:05 +01:00
Adds "Eye-Glow" for Humanoids w/ High Darksight or XRAY Vision
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user