From 215bdf54de5513563ca8c8a620e51d28b50eb28e Mon Sep 17 00:00:00 2001 From: lowercasedonkey <lowercasedonkey@gmail.com> Date: Mon, 23 Nov 2020 15:16:54 -0500 Subject: [PATCH] more cleanup --- .../specificMarkets/customSlaveMarket.js | 48 +++++++++---------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/src/markets/specificMarkets/customSlaveMarket.js b/src/markets/specificMarkets/customSlaveMarket.js index b934d90c110..16c09e90848 100644 --- a/src/markets/specificMarkets/customSlaveMarket.js +++ b/src/markets/specificMarkets/customSlaveMarket.js @@ -80,7 +80,7 @@ App.Markets["Custom Slave"] = function() { const option = document.createElement("option"); option.text = `${low}-${high}`; option.value = high.toString(); - if (slave.age === option.value) { + if (slave.age === high) { option.selected = true; } select.append(option); @@ -120,7 +120,7 @@ App.Markets["Custom Slave"] = function() { function description() { for (const [value, text] of choices) { - if (slave.health === Number(value)) { + if (slave.health === value) { return `${text}. `; } } @@ -148,7 +148,7 @@ App.Markets["Custom Slave"] = function() { function description() { for (const [value, text] of choices) { - if (slave.muscles >= Number(value)) { + if (slave.muscles >= value) { return `${text}. `; } } @@ -174,8 +174,8 @@ App.Markets["Custom Slave"] = function() { function description() { for (const [value, text] of choices) { - if (slave.lips >= Number(value)) { - if (Number(value) < 100) { + if (slave.lips >= value) { + if (value < 100) { return `Lips are ${text.toLowerCase()}. `; } else { return `Lips are a ${text.toLowerCase()}. `; @@ -203,7 +203,7 @@ App.Markets["Custom Slave"] = function() { function description() { for (const [value, text] of choices) { - if (slave.voice === Number(value)) { + if (slave.voice === value) { if (slave.voice === -1) { return `${text}. `; } else { @@ -261,7 +261,7 @@ App.Markets["Custom Slave"] = function() { function description() { for (const [value, text] of choices) { - if (slave.weight >= Number(value)) { + if (slave.weight >= value) { return `${text} weight. `; } } @@ -286,7 +286,7 @@ App.Markets["Custom Slave"] = function() { function description() { for (const [value, text] of choices) { - if (slave.face >= Number(value)) { + if (slave.face >= value) { return `${text} face. `; } } @@ -408,7 +408,7 @@ App.Markets["Custom Slave"] = function() { function description() { for (const [value, text] of choices) { - if (slave.boobs >= Number(value)) { + if (slave.boobs >= value) { if (slave.boobs <= 200) { return `${text} chest. `; } else { @@ -436,7 +436,7 @@ App.Markets["Custom Slave"] = function() { function description() { for (const [value, text] of choices) { - if (slave.butt >= Number(value)) { + if (slave.butt >= value) { return `${text} buttocks. `; } } @@ -484,7 +484,7 @@ App.Markets["Custom Slave"] = function() { function description() { for (const [value, text] of choices) { - if (slave.virgin === Number(value)) { + if (slave.virgin === value) { return `${text}. `; } } @@ -508,7 +508,7 @@ App.Markets["Custom Slave"] = function() { function description() { for (const [value, text] of choices) { - if (slave.dick >= Number(value)) { + if (slave.dick >= value) { return `${text}. `; } } @@ -532,7 +532,7 @@ App.Markets["Custom Slave"] = function() { function description() { for (const [value, text] of choices) { - if (slave.balls >= Number(value)) { + if (slave.balls >= value) { return `${text}. `; } } @@ -559,7 +559,7 @@ App.Markets["Custom Slave"] = function() { if (slave.clit === 5) { return `Pseudophallus. `; } else { - if (slave.clit >= Number(value)) { + if (slave.clit >= value) { return `${text}. `; } } @@ -584,7 +584,7 @@ App.Markets["Custom Slave"] = function() { function description() { for (const [value, text] of choices) { - if (slave.labia === Number(value)) { + if (slave.labia === value) { return `${text}. `; } } @@ -607,7 +607,7 @@ App.Markets["Custom Slave"] = function() { function description() { for (const [value, text] of choices) { - if (slave.vaginaLube === Number(value)) { + if (slave.vaginaLube === value) { return `${text}. `; } } @@ -629,7 +629,7 @@ App.Markets["Custom Slave"] = function() { function description() { for (const [value, text] of choices) { - if (slave.analVirgin === Number(value)) { + if (slave.analVirgin === value) { return `${text}. `; } } @@ -701,7 +701,7 @@ App.Markets["Custom Slave"] = function() { function description() { for (const [value, text] of choices) { - if (slave.skill.combat >= Number(value)) { + if (slave.skill.combat >= value) { return `${text} at combat. `; } } @@ -728,7 +728,7 @@ App.Markets["Custom Slave"] = function() { function description() { for (const [value, text] of choices) { - if (slave.intelligence === Number(value)) { + if (slave.intelligence === value) { return `${text}. `; } } @@ -751,7 +751,7 @@ App.Markets["Custom Slave"] = function() { function description() { for (const [value, text] of choices) { - if (slave.intelligenceImplant >= Number(value)) { + if (slave.intelligenceImplant >= value) { return `${text}. `; } } @@ -834,7 +834,7 @@ App.Markets["Custom Slave"] = function() { function description() { for (const [value, text] of choices) { - if (slave.hears === Number(value)) { + if (slave.hears === value) { return `${text}. `; } } @@ -857,7 +857,7 @@ App.Markets["Custom Slave"] = function() { function description() { for (const [value, text] of choices) { - if (slave.smells === Number(value)) { + if (slave.smells === value) { return `${text}.`; } } @@ -880,7 +880,7 @@ App.Markets["Custom Slave"] = function() { function description() { for (const [value, text] of choices) { - if (slave.tastes === Number(value)) { + if (slave.tastes === value) { return `${text}.`; } } @@ -1056,7 +1056,7 @@ App.Markets["Custom Slave"] = function() { App.UI.DOM.link( text, () => { - _.set(slave, slaveParam, (Number(value) || value)); + _.set(slave, slaveParam, value); jQuery(`#${(slaveParam).replace(/\./g, "-")}-text`).empty().append(description()); } ) -- GitLab