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

muscles

parent 912262dd
No related branches found
No related tags found
1 merge request!8026Custom slave to js
...@@ -108,9 +108,10 @@ App.Markets["Custom Slave"] = function() { ...@@ -108,9 +108,10 @@ App.Markets["Custom Slave"] = function() {
function description() { function description() {
const keys = Object.keys(choices); const keys = Object.keys(choices);
for (const choice in choices) { for (let i = keys.length; i > 0; i--) {
if (slave.muscles < Number(choice)) { console.log(choices[keys[i]]);
return `${choices[choice]}.`; if (slave.muscles > Number(keys[i])) {
return `${choices[keys[i]]}.`;
} }
} }
} }
......
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