diff --git a/src/markets/specificMarkets/customSlaveMarket.js b/src/markets/specificMarkets/customSlaveMarket.js index 31dc104cb3509eeab07bbf56a6aab3fb3a61087b..ac452be5b1428cdd73fd64148a3d6c8ff4bd51cd 100644 --- a/src/markets/specificMarkets/customSlaveMarket.js +++ b/src/markets/specificMarkets/customSlaveMarket.js @@ -7,6 +7,8 @@ App.Markets["Custom Slave"] = function() { el.append(health()); el.append(muscles()); el.append(lips()); + el.append(voice()); + // can't we just iterate these in an array? return el; @@ -149,6 +151,35 @@ App.Markets["Custom Slave"] = function() { return el; } + function voice() { + const el = document.createElement("div"); + const slaveProperty = "lips"; + const choices = new Map([ + ["3", "High, girly"], + ["2", "Feminine"], + ["1", "Deep"], + ["0", "Mute"], + ["-1", "Voice is unimportant"], + ]); + + createDescription(el, description, slaveProperty); + el.append(choicesMaker(slaveProperty, choices, description)); + + function description() { + for (const [value, text] of choices) { + if (slave.voice === Number(value)) { + if (slave.voice === -1) { + return `${text}.`; + } else { + return `${text} voice.`; + } + } + } + } + + return el; + } + /** *