Files
Bubberstation/code/modules/client/preferences/heterochromatic.dm
SkyratBot 08e45df749 [MIRROR] Quirks are passed an incoming client when applied, allowing quirks to read preferences in add and add_unique. Renders visual quirks on the preference menu dummy. [MDB IGNORE] (#18311)
* Quirks are passed an incoming client when applied, allowing quirks to read preferences in `add` and `add_unique`. Renders visual quirks on the preference menu dummy.

* fixes quirk order to match upstream

* Modular quirk updates

Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com>
Co-authored-by: tastyfish <crazychris32@gmail.com>
2023-01-09 04:58:33 -05:00

15 lines
564 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)
var/datum/quirk/heterochromatic/hetero_quirk = locate() in target.quirks
hetero_quirk?.apply_heterochromatic_eyes(value)