Skip to content
Snippets Groups Projects
Commit 60ec9948 authored by lowercasedonkey's avatar lowercasedonkey
Browse files

lips

parent d9dbe5e4
No related branches found
No related tags found
1 merge request!8026Custom slave to js
...@@ -6,6 +6,7 @@ App.Markets["Custom Slave"] = function() { ...@@ -6,6 +6,7 @@ App.Markets["Custom Slave"] = function() {
el.append(age()); el.append(age());
el.append(health()); el.append(health());
el.append(muscles()); el.append(muscles());
el.append(lips());
return el; return el;
...@@ -131,28 +132,23 @@ App.Markets["Custom Slave"] = function() { ...@@ -131,28 +132,23 @@ App.Markets["Custom Slave"] = function() {
const el = document.createElement("div"); const el = document.createElement("div");
const slaveProperty = "lips"; const slaveProperty = "lips";
const choices = new Map([ const choices = new Map([
["5", "Thin"],
["15", "Normal"],
["35", "Plush built"],
["65", "Big"],
["85", "Enormous"],
["100", "Facepussy"], ["100", "Facepussy"],
["85", "Enormous"],
["65", "Big"],
["35", "Plush"],
["15", "Normal"],
["5", "Thin"],
]); ]);
createDescription(el, description, slaveProperty); createDescription(el, description, slaveProperty);
el.append(choicesMaker(slaveProperty, choices, description)); el.append(choicesMaker(slaveProperty, choices, description));
function description() { function description() {
// Obnoxiously, the old check is reversed, so I'm working around it by reporting the previous value to the one that hits.
let savedText = "frail";
for (const [value, text] of choices) { for (const [value, text] of choices) {
if (slave.muscles < Number(value)) { if (slave.lips >= Number(value)) {
return `${savedText}.`; return `${text}.`;
} else {
savedText = text;
} }
} }
return "Ripped.";
} }
return el; return el;
...@@ -185,7 +181,7 @@ App.Markets["Custom Slave"] = function() { ...@@ -185,7 +181,7 @@ App.Markets["Custom Slave"] = function() {
App.UI.DOM.link( App.UI.DOM.link(
text, text,
() => { () => {
_.set(slave, slaveParam, (Number(value) || value)); slave[slaveParam] = (Number(value) || value);
jQuery(`#${slaveParam}-text`).empty().append(description()); jQuery(`#${slaveParam}-text`).empty().append(description());
} }
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment