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

strip trunc

parent 38eeab65
No related branches found
No related tags found
1 merge request!7611Markets to JS
...@@ -25,7 +25,7 @@ App.Markets.purchaseFramework = function(slaveMarket, {numArcology, sTitleSingul ...@@ -25,7 +25,7 @@ App.Markets.purchaseFramework = function(slaveMarket, {numArcology, sTitleSingul
function getCost() { 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)) * costMod);
if (V.slavesSeen > V.slaveMarketLimit) { if (V.slavesSeen > V.slaveMarketLimit) {
cost += Math.trunc(cost * ((V.slavesSeen - V.slaveMarketLimit) * 0.1)); cost += cost * ((V.slavesSeen - V.slaveMarketLimit) * 0.1);
} }
cost = 500 * Math.trunc(cost / 500); cost = 500 * Math.trunc(cost / 500);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment