diff --git a/src/markets/buySlaves.js b/src/markets/buySlaves.js index ab0e5af7f0e3c7674bd2a5d154b9bea178d4d816..3bf38883ad3d7deefc0a69b6b9d86ee3834368b4 100644 --- a/src/markets/buySlaves.js +++ b/src/markets/buySlaves.js @@ -160,33 +160,35 @@ App.UI.buySlaves = function() { store.passage ) ); - if (V.cash > (minCost * 5)) { - linkArray.push( - App.UI.DOM.link( - `x5`, - () => { - V.slaveMarket = store.marketType; - V.introType = "bulk"; - V.numSlaves = 5; - }, - [], - `Bulk Slave Generate` - ) - ); - } - if (V.cash > (minCost * 10)) { - linkArray.push( - App.UI.DOM.link( - `x10`, - () => { - V.slaveMarket = store.marketType; - V.introType = "bulk"; - V.numSlaves = 10; - }, - [], - `Bulk Slave Generate` - ) - ); + if (store.bulkAvailable !== false) { + if (V.cash > (minCost * 5)) { + linkArray.push( + App.UI.DOM.link( + `x5`, + () => { + V.slaveMarket = store.marketType; + V.introType = "bulk"; + V.numSlaves = 5; + }, + [], + `Bulk Slave Generate` + ) + ); + } + if (V.cash > (minCost * 10)) { + linkArray.push( + App.UI.DOM.link( + `x10`, + () => { + V.slaveMarket = store.marketType; + V.introType = "bulk"; + V.numSlaves = 10; + }, + [], + `Bulk Slave Generate` + ) + ); + } } el.append(App.UI.DOM.generateLinksStrip(linkArray)); @@ -558,7 +560,7 @@ App.UI.buySlaves = function() { "max", () => { buySomeFuckdolls( - Math.trunc(Math.clamp(V.cash/(menialPrice+_menialBulkPremium), 0, bulkMax)) + Math.trunc(Math.clamp(V.cash / (menialPrice + _menialBulkPremium), 0, bulkMax)) ); }, [], @@ -673,7 +675,7 @@ App.UI.buySlaves = function() { const sellSomeBioreactors = function(number = 1) { V.menials -= number; V.menialDemandFactor -= number; - cashX(forceNeg(menialSlaveCost(number-100) * number), "bioreactorsTransfer"); + cashX(forceNeg(menialSlaveCost(number - 100) * number), "bioreactorsTransfer"); }; linkArray.push( App.UI.DOM.link(