Skip to content
Snippets Groups Projects
Commit 3f2c3057 authored by lowercasedonkey's avatar lowercasedonkey
Browse files

fixes

parent 0afdcc78
No related branches found
No related tags found
1 merge request!7611Markets to JS
...@@ -9,11 +9,10 @@ ...@@ -9,11 +9,10 @@
*/ */
App.Markets.purchaseFramework = function(slaveMarket, {numArcology, sTitleSingular = "slave", sTitlePlural = "slaves", costMod = 1} = {}) { App.Markets.purchaseFramework = function(slaveMarket, {numArcology, sTitleSingular = "slave", sTitlePlural = "slaves", costMod = 1} = {}) {
const el = new DocumentFragment(); const el = new DocumentFragment();
const marketResult = generateMarketSlave(slaveMarket, (numArcology || 1)); const {slave, text} = generateMarketSlave(slaveMarket, (numArcology || 1));
const slave = marketResult.slave;
const cost = getCost(); const cost = getCost();
el.append(marketResult.text); el.append(text);
App.UI.DOM.appendNewElement("p", App.UI.DOM.appendNewElement("p",
el, el,
...@@ -28,9 +27,6 @@ App.Markets.purchaseFramework = function(slaveMarket, {numArcology, sTitleSingul ...@@ -28,9 +27,6 @@ App.Markets.purchaseFramework = function(slaveMarket, {numArcology, sTitleSingul
if (V.slavesSeen > V.slaveMarketLimit) { if (V.slavesSeen > V.slaveMarketLimit) {
cost += Math.trunc(cost * ((V.slavesSeen - V.slaveMarketLimit) * 0.1)); cost += Math.trunc(cost * ((V.slavesSeen - V.slaveMarketLimit) * 0.1));
} }
if (V.slavesSeen > V.slaveMarketLimit) {
cost += cost * ((V.slavesSeen - V.slaveMarketLimit) * 0.1);
}
// Tweak for neighbor // Tweak for neighbor
if (slaveMarket === "neighbor") { if (slaveMarket === "neighbor") {
......
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