Files
explosivekittyandGitHub 1024048095 Quad eyes and triple eyes for your characters (#5461)
## About The Pull Request
Adds triple eyeballs to markings/organs under the eyes tab. (They don't
show in the editor BUT they work in game)

Makes quad eyes work again! also fixes them because they had issue where
you could see your eyes under any headgear so they are layered correctly
now. Additionally you further customize how far away they are from your
real eyes
## Why It's Good For The Game
They aren't working, and before that they were working but the layering
was bugged. now you can have multiple eyeballs
## Proof Of Testing
<details>
<summary>Screenshots/Videos</summary>
<img width="356" height="89" alt="image"
src="https://github.com/user-attachments/assets/6f96b5a4-91e5-491a-b0a2-dcdf82d866ba"
/>
<img width="218" height="120" alt="image2"
src="https://github.com/user-attachments/assets/7ea0ad67-9214-440c-9c02-df4aab62153f"
/>
<img width="118" height="63" alt="trieyes"
src="https://github.com/user-attachments/assets/b2e26af2-8378-464d-8846-a0c711c02736"
/>

</details>

## Changelog
🆑
add: Slime triple eyes are now selectable in markings/organs under eyes
tab
add: Width customization for quad eyes
fix: fixes quad eyes to work
fix: quad eyes are now layered correctly
/🆑
2026-04-25 02:27:58 +02:00

51 lines
1.8 KiB
Plaintext

/datum/preference/toggle/quad_eyes
category = PREFERENCE_CATEGORY_SECONDARY_FEATURES
savefile_key = "quad_eyes"
savefile_identifier = PREFERENCE_CHARACTER
priority = PREFERENCE_PRIORITY_BODYPARTS + 0.1
default_value = FALSE
/datum/preference/toggle/quad_eyes/is_accessible(datum/preferences/preferences)
if(!..(preferences))
return FALSE
return TRUE
/datum/preference/toggle/quad_eyes/apply_to_human(mob/living/carbon/human/target, value, datum/preferences/preferences)
if(!value)
return
ADD_TRAIT(target, TRAIT_QUAD_EYES, TRAIT_GENERIC)
/datum/preference/numeric/quad_eyes_offset
category = PREFERENCE_CATEGORY_SECONDARY_FEATURES
savefile_key = "quad_eyes_offset"
savefile_identifier = PREFERENCE_CHARACTER
maximum = 2 // Any value higher than this and the eyes don't appear after the character is spawned in.
minimum = -2
/datum/preference/numeric/quad_eyes_offset/is_accessible(datum/preferences/preferences)
if(!..(preferences))
return FALSE
return (preferences.read_preference(/datum/preference/toggle/quad_eyes))
/datum/preference/numeric/quad_eyes_offset/apply_to_human(mob/living/carbon/human/target, value, datum/preferences/preferences)
if(!value)
return
target.quad_eyes_offset = value
/datum/preference/numeric/quad_eyes_offset_width
category = PREFERENCE_CATEGORY_SECONDARY_FEATURES
savefile_key = "quad_eyes_offset_width"
savefile_identifier = PREFERENCE_CHARACTER
maximum = 2
minimum = -2
/datum/preference/numeric/quad_eyes_offset_width/is_accessible(datum/preferences/preferences)
if(!..(preferences))
return FALSE
return (preferences.read_preference(/datum/preference/toggle/quad_eyes))
/datum/preference/numeric/quad_eyes_offset_width/apply_to_human(mob/living/carbon/human/target, value, datum/preferences/preferences)
if(!value)
return
target.quad_eyes_offset_width = value