Skip to content
Snippets Groups Projects
Commit 944ef3b0 authored by lowercasedonkey's avatar lowercasedonkey
Browse files

add wetware

parent 4a584a5d
No related branches found
No related tags found
No related merge requests found
......@@ -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;
};
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