Skip to content

Commit

Permalink
whoops
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerev4r committed Sep 22, 2024
1 parent 5381f7c commit fea053b
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions code/modules/surgery/organs/internal/eyes/_eyes.dm
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,18 @@
//var/obj/item/bodypart/head/my_head = parent.get_bodypart(BODY_ZONE_HEAD) /// DOPPLER SHIFT REMOVAL
if(my_head)
if(my_head.head_flags & HEAD_EYECOLOR)
eye_right.color = eye_color_right
eye_left.color = eye_color_left
if(IS_ROBOTIC_ORGAN(src) || !my_head.draw_color || (parent.appears_alive() && !HAS_TRAIT(parent, TRAIT_KNOCKEDOUT)))
// show the eyes as open
eye_right.color = eye_color_right
eye_left.color = eye_color_left
else
// show the eyes as closed, and as such color them like eyelids wound be colored
var/list/base_color = rgb2num(my_head.draw_color, COLORSPACE_HSL)
base_color[2] *= 0.85
base_color[3] *= 0.85
var/eyelid_color = rgb(base_color[1], base_color[2], base_color[3], (length(base_color) >= 4 ? base_color[4] : null), COLORSPACE_HSL)
eye_right.color = eyelid_color
eye_left.color = eyelid_color
if(my_head.worn_face_offset)
my_head.worn_face_offset.apply_offset(eye_left)
my_head.worn_face_offset.apply_offset(eye_right)
Expand Down

0 comments on commit fea053b

Please sign in to comment.