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

fix price

parent 03fe50b2
No related branches found
No related tags found
1 merge request!7687Fix neighbor market
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment