From 944ef3b05cd8865121ff93bfdc9ecf280c22aee3 Mon Sep 17 00:00:00 2001 From: lowercasedonkey <lowercasedonkey@gmail.com> Date: Sun, 30 Aug 2020 23:45:13 -0400 Subject: [PATCH] add wetware --- src/markets/specificMarkets/slaveMarkets.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/markets/specificMarkets/slaveMarkets.js b/src/markets/specificMarkets/slaveMarkets.js index 2e2a3293173..a56152f5cd6 100644 --- a/src/markets/specificMarkets/slaveMarkets.js +++ b/src/markets/specificMarkets/slaveMarkets.js @@ -241,6 +241,15 @@ App.Markets.trainers = function() { el.append(App.Markets.generic("trainers")); return el; }; + +App.Markets.wetware = function() { + const el = new DocumentFragment(); + App.UI.DOM.appendNewElement("p", el, `Wetware CPUs offer highly trained slaves with useful career experience at a discount; That is, at the cost of the physical health of the merchandise.`, "scene-intro"); + + el.append(App.Markets.generic("wetware")); + return el; +}; + /** * * @param {*} slaveMarket @@ -249,7 +258,7 @@ App.Markets.trainers = function() { * @param {string} [param1.sTitleSingular] * @param {string} [param1.sTitlePlural] */ -App.Markets.generic = function(slaveMarket, {numArcology, sTitleSingular = "slave", sTitlePlural = "slaves"}) { +App.Markets.generic = function(slaveMarket, {numArcology, sTitleSingular = "slave", sTitlePlural = "slaves"} = {}) { const el = new DocumentFragment(); const marketResult = generateMarketSlave(slaveMarket, (numArcology || 1)); const slave = marketResult.slave; @@ -275,7 +284,7 @@ App.Markets.generic = function(slaveMarket, {numArcology, sTitleSingular = "slav ); el.append( - App.UI.buyingFromMarketControls(slave, _slaveCost, sTitleSingular, sTitlePlural) + App.UI.buyingFromMarketControls(slave, _slaveCost, slaveMarket, sTitleSingular, sTitlePlural) ); return el; }; -- GitLab