diff --git a/src/markets/marketUI.js b/src/markets/marketUI.js index a349c8e922fdab111045d31aceff9d8c3a5f2219..301a9b3509dbed1d1c6728ce6f29f3bf14b36dcc 100644 --- a/src/markets/marketUI.js +++ b/src/markets/marketUI.js @@ -73,14 +73,14 @@ App.Markets.purchaseFramework = function(slaveMarket, {numArcology, sTitleSingul title.buyAndKeepShopping, () => { cashX(forceNeg(cost), "slaveTransfer", slave); - V.newSlaves.push(slave); + V.market.newSlaves.push(slave); V.introType = "multi"; student(); jQuery("#slave-markets").empty().append(App.Markets[slaveMarket]); }, ) ); - if (V.newSlaves.length === 0) { + if (V.market.newSlaves.length === 0) { App.UI.DOM.appendNewElement( "div", el, @@ -88,7 +88,7 @@ App.Markets.purchaseFramework = function(slaveMarket, {numArcology, sTitleSingul title.buyJustHer, () => { cashX(forceNeg(cost), "slaveTransfer", slave); - V.newSlaves.push(slave); + V.market.newSlaves.push(slave); V.nextButton = "Continue"; V.returnTo = "Main"; student(); @@ -106,7 +106,7 @@ App.Markets.purchaseFramework = function(slaveMarket, {numArcology, sTitleSingul () => { student(); cashX(forceNeg(cost), "slaveTransfer", slave); - V.newSlaves.push(slave); + V.market.newSlaves.push(slave); }, [], "Bulk Slave Intro" @@ -116,7 +116,7 @@ App.Markets.purchaseFramework = function(slaveMarket, {numArcology, sTitleSingul } else { App.UI.DOM.appendNewElement("span", el, `You lack the necessary funds to buy this slave.`, "note"); } - if (V.newSlaves.length > 0) { + if (V.market.newSlaves.length > 0) { App.UI.DOM.appendNewElement( "div", el, diff --git a/src/markets/theMarket/buySlaves.js b/src/markets/theMarket/buySlaves.js index da88b1c770d69153727d4104f69836a109daca75..da6ecf056e3aeeae2b345d21f37422bc0127cc87 100644 --- a/src/markets/theMarket/buySlaves.js +++ b/src/markets/theMarket/buySlaves.js @@ -217,7 +217,7 @@ App.UI.buySlaves = function() { V.returnTo = "Buy Slaves"; V.encyclopedia = "Kidnapped Slaves"; // Multi-Purchase Support - if (V.newSlaves.length > 0) { + if (V.market.newSlaves.length > 0) { V.nextButton = "Continue"; V.nextLink = "Bulk Slave Intro"; V.returnTo = "Main";