From c2998d79c73a48413f3c220984087afb73b473d4 Mon Sep 17 00:00:00 2001 From: lowercasedonkey <lowercasedonkey@gmail.com> Date: Wed, 9 Sep 2020 16:04:12 -0400 Subject: [PATCH] more RA to use data for hair --- src/js/rulesAssistantOptions.js | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/src/js/rulesAssistantOptions.js b/src/js/rulesAssistantOptions.js index 5492bc3082d..cf8038dccfa 100644 --- a/src/js/rulesAssistantOptions.js +++ b/src/js/rulesAssistantOptions.js @@ -3151,27 +3151,7 @@ globalThis.rulesAssistantOptions = (function() { class HairStyleList extends ListSelector { constructor() { - const pairs = [ - ["neat"], - ["shaved"], - ["trimmed"], - ["buzzcut"], - ["up"], - ["ponytail"], - ["bun"], - ["messy bun"], - ["messy"], - ["curled"], - ["permed"], - ["luxurious"], - ["dreadlocks"], - ["cornrows"], - ["braided"], - ["tails"], - ["eary"], - ["afro"], - ["strip"] - ]; + const pairs = App.Medicine.Modification.hairStyles.Normal.map(c => [c.title, c.value]).concat(App.Medicine.Modification.hairStyles.Cut.map(c => [c.title, c.value])); super("Hair style", pairs); this.setValue(current_rule.set.hStyle); this.onchange = (value) => current_rule.set.hStyle = value; -- GitLab