[MIRROR] Fixes monitorhead monitorface (#6862)

Co-authored-by: Casey <a.roaming.shadow@gmail.com>
Co-authored-by: CHOMPStation2 <chompsation2@gmail.com>
This commit is contained in:
CHOMPStation2
2023-08-23 06:23:04 -07:00
committed by GitHub
parent f9ee75697f
commit e8fd8b3012
3 changed files with 3 additions and 1 deletions

View File

@@ -375,5 +375,6 @@
if(choice)
E.eye_icon_location = robohead.monitor_icon
E.eye_icon = states[choice]
E.eye_icon_override = TRUE
to_chat(src,"<span class='warning'>You set your monitor to display [choice]!</span>")
update_icons_body()

View File

@@ -277,7 +277,7 @@ var/global/list/damage_icon_parts = list() //see UpdateDamageIcon()
if (species.selects_bodytype != SELECTS_BODYTYPE_FALSE)
var/headtype = GLOB.all_species[species.base_species]?.has_limbs[BP_HEAD]
var/obj/item/organ/external/head/headtypepath = headtype["path"]
if (headtypepath)
if (headtypepath && !head.eye_icon_override)
head.eye_icon = initial(headtypepath.eye_icon)
head.eye_icon_location = initial(headtypepath.eye_icon_location)
icon_key += "[head.eye_icon]"

View File

@@ -277,6 +277,7 @@
var/head_offset = 0
var/eye_icon = "eyes_s"
var/eye_icon_location = 'icons/mob/human_face.dmi'
var/eye_icon_override = FALSE // if true, we dont reset our icon back to default
force = 3
throwforce = 7
var/eyes_over_markings = FALSE //VOREStation edit