From f0405c4d83b26b3d056b1d73830c9321e476a2f4 Mon Sep 17 00:00:00 2001 From: lowercasedonkey <lowercasedonkey@gmail.com> Date: Wed, 9 Sep 2020 23:26:35 -0400 Subject: [PATCH] eye shape and color to data --- js/003-data/slaveMods.js | 34 ++++++++++++++++++++++++++++++++++ src/js/salon.js | 9 +++------ 2 files changed, 37 insertions(+), 6 deletions(-) diff --git a/js/003-data/slaveMods.js b/js/003-data/slaveMods.js index e8289339101..b707d058727 100644 --- a/js/003-data/slaveMods.js +++ b/js/003-data/slaveMods.js @@ -398,3 +398,37 @@ App.Medicine.Modification.hairStyles = { }, ] }; + +App.Medicine.Modification.eyeColor = [ + {value: "amber"}, + {value: "black"}, + {value: "blue"}, + {value: "brown"}, + {value: "green"}, + {value: "hazel"}, + {value: "orange"}, + {value: "pale-grey"}, + {value: "pink"}, + {value: "red"}, + {value: "sky-blue"}, + {value: "turquoise"}, + {value: "white"}, + {value: "yellow"} +]; + +App.Medicine.Modification.eyeShape = [ + {value: "circular"}, + {value: "almond-shaped"}, + {value: "bright"}, + {value: "catlike"}, + {value: "demonic"}, + {value: "devilish"}, + {value: "goat-like"}, + {value: "heart-shaped"}, + {value: "hypnotic"}, + {value: "serpent-like"}, + {value: "star-shaped"}, + {value: "teary"}, + {value: "vacant"}, + {value: "wide-eyed" +]; diff --git a/src/js/salon.js b/src/js/salon.js index 5d01883a4e7..e1a2e9a9ad7 100644 --- a/src/js/salon.js +++ b/src/js/salon.js @@ -29,12 +29,9 @@ App.Medicine.Modification.eyeSelector = function(entity, player = false) { function assembleLinks() { const sides = ["left", "right", "both"]; - const irisColors = ["amber", "black", "blue", "brown", "green", "hazel", "orange", "pale-grey", "pink", "red", - "sky-blue", "turquoise", "white", "yellow"]; - const pupilShapes = ["none", "circular", "almond-shaped", "bright", "catlike", "demonic", "devilish", - "goat-like", "heart-shaped", "hypnotic", "serpent-like", "star-shaped", "teary", "vacant", "wide-eyed"]; - const scleraColors = ["none", "white", "amber", "black", "blue", "brown", "green", "hazel", "orange", - "pale-grey", "pink", "red", "sky-blue", "turquoise", "yellow"]; + const irisColors = App.Medicine.Modification.eyeColor.map(color => color.value); + const pupilShapes = ["none"].concat(App.Medicine.Modification.eyeShape.map(shape => shape.value)); + const scleraColors = ["none"].concat(App.Medicine.Modification.eyeColor.map(color => color.value)); const div = document.createDocumentFragment(); div.append( assembleList("Side: ", sides, value => selectedSide = value, selectedIris), -- GitLab