diff --git a/src/markets/marketUI.js b/src/markets/marketUI.js index b22ccd36a6564a5e9b6a946bb58c5702ac938461..7389a7d539996c4f2bfe3bcb20b5d82e5e9da010 100644 --- a/src/markets/marketUI.js +++ b/src/markets/marketUI.js @@ -26,11 +26,16 @@ App.Markets.purchaseFramework = function(slaveMarket, {sTitleSingular = "slave", return el; function getCost() { - let cost = (slaveCost(slave, false, !App.Data.misc.lawlessMarkets.includes(slaveMarket)) * costMod); + let cost = slaveCost(slave, false, !App.Data.misc.lawlessMarkets.includes(slaveMarket)); if (V.slavesSeen > V.slaveMarketLimit) { cost += cost * ((V.slavesSeen - V.slaveMarketLimit) * 0.1); } - + if (costMod > 0 && costMod <= 1) { + cost = cost * costMod; + } else { + cost = cost + costMod; + } + console.log("CostMod: ", costMod); cost = 500 * Math.trunc(cost / 500); return cost; }