mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-20 14:45:05 +00:00
* 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>
15 lines
564 B
Plaintext
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)
|