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

simplify more

parent 013ca2d2
No related branches found
No related tags found
1 merge request!8132Bulk slave work
/** App.Markets.bulkSlaveIntro = function() {
*
* @param {boolean} [generateNeeded=false]
*/
App.Markets.bulkSlaveIntro = function(generateNeeded = false) {
const el = new DocumentFragment(); const el = new DocumentFragment();
const r = []; const r = [];
const discount = getDiscount(); const discount = getDiscount();
...@@ -10,7 +6,7 @@ App.Markets.bulkSlaveIntro = function(generateNeeded = false) { ...@@ -10,7 +6,7 @@ App.Markets.bulkSlaveIntro = function(generateNeeded = false) {
let p; let p;
let spent; let spent;
if (generateNeeded) { if (V.market.newSlaves.length === 0) {
bulkSlaveGenerate(); bulkSlaveGenerate();
} }
......
...@@ -162,7 +162,7 @@ App.UI.buySlaves = function() { ...@@ -162,7 +162,7 @@ App.UI.buySlaves = function() {
V.market.numSlaves = 5; V.market.numSlaves = 5;
}, },
[], [],
`Bulk Slave Generate` `Bulk Slave Intro`
) )
); );
} }
...@@ -177,7 +177,7 @@ App.UI.buySlaves = function() { ...@@ -177,7 +177,7 @@ App.UI.buySlaves = function() {
V.market.numSlaves = 10; V.market.numSlaves = 10;
}, },
[], [],
`Bulk Slave Generate` `Bulk Slave Intro`
) )
); );
} }
......
:: Bulk Slave Generate [nobr]
<<includeDOM App.Markets.bulkSlaveIntro(true)>>
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