mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-04 14:01:22 +00:00
* 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>
16 lines
570 B
Plaintext
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()
|