mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-31 09:08:30 +01:00
[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>
This commit is contained in:
co-authored by
MrMelbert
tastyfish
parent
2e6a3193b5
commit
08e45df749
@@ -10,6 +10,5 @@
|
||||
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()
|
||||
var/datum/quirk/heterochromatic/hetero_quirk = locate() in target.quirks
|
||||
hetero_quirk?.apply_heterochromatic_eyes(value)
|
||||
|
||||
Reference in New Issue
Block a user