Files
Bubberstation/code/modules/client/preferences/heterochromatic.dm
SkyratBot 1bc09326d0 [MIRROR] Splits eye color into two vars | Heterochromia Quirk [MDB IGNORE] (#13390)
* Splits eye color into two vars | Heterochromia Quirk

* yesyes

* eeee

Co-authored-by: Zephyr <12817816+ZephyrTFA@users.noreply.github.com>
Co-authored-by: Gandalf <9026500+Gandalf2k15@users.noreply.github.com>
2022-05-09 01:00:12 +01:00

16 lines
570 B
Plaintext

/datum/preference/color/heterochromatic
category = PREFERENCE_CATEGORY_SECONDARY_FEATURES
savefile_key = "heterochromatic"
savefile_identifier = PREFERENCE_CHARACTER
/datum/preference/color/heterochromatic/is_accessible(datum/preferences/preferences)
if (!..(preferences))
return FALSE
return "Heterochromatic" in preferences.all_quirks
/datum/preference/color/heterochromatic/apply_to_human(mob/living/carbon/human/target, value)
for(var/datum/quirk/heterochromatic/hetero_quirk in target.quirks)
hetero_quirk.color = value
hetero_quirk.link_to_holder()