From d53cf5a5a5854cae56007834cb25bcb033261b88 Mon Sep 17 00:00:00 2001 From: Skriv <skrivelese@gmail.com> Date: Sat, 27 Apr 2019 01:01:02 +0200 Subject: [PATCH] allow two arguments for bulk purchase --- src/js/generateMarketSlave.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js/generateMarketSlave.js b/src/js/generateMarketSlave.js index 78d53be90eb..26d8e5c458b 100644 --- a/src/js/generateMarketSlave.js +++ b/src/js/generateMarketSlave.js @@ -1,5 +1,5 @@ -window.generateMarketSlave = function(market = "kidnappers") { +window.generateMarketSlave = function(market = "kidnappers", numArcology = 0) { const V = State.variables; let r = ""; @@ -429,8 +429,8 @@ window.generateMarketSlave = function(market = "kidnappers") { } break; case "neighbor": - if ((V.numArcology < V.arcologies.length) && (V.numArcology > 0)) { - market = V.numArcology; + if ((numArcology < V.arcologies.length) && (numArcology > 0)) { + market = numArcology; } else { market = 1; } -- GitLab