From 27dd23847823d9110b9c4d8ea9a424eb35bedcdc Mon Sep 17 00:00:00 2001
From: lowercasedonkey <lowercasedonkey@gmail.com>
Date: Mon, 31 Aug 2020 00:33:29 -0400
Subject: [PATCH] change function name

---
 src/markets/marketUI.js                       |  2 +-
 .../specificMarkets/criminalMarkets.js        |  8 ++++----
 src/markets/specificMarkets/schoolFutanari.js |  2 +-
 src/markets/specificMarkets/schools.js        | 18 ++++++++---------
 src/markets/specificMarkets/slaveMarkets.js   | 20 +++++++++----------
 5 files changed, 25 insertions(+), 25 deletions(-)

diff --git a/src/markets/marketUI.js b/src/markets/marketUI.js
index b70bd4c7d38..3fcf2b2d442 100644
--- a/src/markets/marketUI.js
+++ b/src/markets/marketUI.js
@@ -7,7 +7,7 @@
  * @param {string} [param1.sTitlePlural]
  * @param {number} [param1.costMod]
  */
-App.Markets.generic = 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 marketResult = generateMarketSlave(slaveMarket, (numArcology || 1));
 	const slave = marketResult.slave;
diff --git a/src/markets/specificMarkets/criminalMarkets.js b/src/markets/specificMarkets/criminalMarkets.js
index 379c1b773a2..48103646d37 100644
--- a/src/markets/specificMarkets/criminalMarkets.js
+++ b/src/markets/specificMarkets/criminalMarkets.js
@@ -10,7 +10,7 @@ App.Markets["low tier criminals"] = function() {
 	}
 	r.push(` wants to take a look, so be on your best behavior!" the head calls out, bringing one of the criminals close enough to be inspected.`);
 	el.append(r.join(" "));
-	el.append(App.Markets.generic("low tier criminals", {sTitleSingular: "prisoner", sTitlePlural: "prisoners"}));
+	el.append(App.Markets.purchaseFramework("low tier criminals", {sTitleSingular: "prisoner", sTitlePlural: "prisoners"}));
 	return el;
 };
 
@@ -39,7 +39,7 @@ App.Markets["gangs and smugglers"] = function() {
 	r.push(`${V.PC.slaveSurname}, I never thought my prison could have turned to a trade such as this, but times are hard." He beckons you to the seat opposite him, "but I'm not one to complain when an opportunity such as this comes my way." He motions to his guards to bring in a select stock for your perusal. "We house some tough nuts in this establishment, but if you believe you can capitalize on these criminals, we'll be happy to have you take them off our hands." The guard returns with a convict ready to be sold.`);
 
 	el.append(r.join(" "));
-	el.append(App.Markets.generic("gangs and smugglers", {sTitleSingular: "prisoner", sTitlePlural: "prisoners"}));
+	el.append(App.Markets.purchaseFramework("gangs and smugglers", {sTitleSingular: "prisoner", sTitlePlural: "prisoners"}));
 	return el;
 };
 
@@ -50,7 +50,7 @@ App.Markets["white collar"] = function() {
 	App.UI.DOM.appendNewElement("p", el, `You nod at the prompt and enter further into the luxurious building to find a formally dressed guide and what appears to be the holding area of the prison. The cells, if you can call them that, are large and cozy, each with their own computer and television. The air is also conditioned for their comfort and old world classical music is playing to provide further ambiance. Walking through, you see the prisoners themselves, lazing about in their beds, sitting at their computers, or just talking to each other. If there was ever a prison you'd rather end up in, this would be it.`);
 	App.UI.DOM.appendNewElement("p", el, `You enter the warden's office and are greeted with all due formalities. "Glad to see you at our establishment. When I heard that someone as renowned as yourself was coming over, I made the appropriate preparations." You are served a cup of tea as she brings in the chosen stock for you to observe at your leisure.`);
 
-	el.append(App.Markets.generic("white collar", {sTitleSingular: "prisoner", sTitlePlural: "prisoners"}));
+	el.append(App.Markets.purchaseFramework("white collar", {sTitleSingular: "prisoner", sTitlePlural: "prisoners"}));
 	return el;
 };
 
@@ -69,6 +69,6 @@ App.Markets["military prison"] = function() {
 	App.UI.DOM.appendNewElement("p", el, `Entering the warden's quarters, you take a seat across from him as he takes the initiative. "Ah, fancy meeting one such as yourself here. Though we house some of the hardiest criminals you can find, I'm sure one such as yourself could find great use for them." He smirks. "... or perhaps great entertainment through the pits," he says as he beckons to his staff as they bring in the selected stock.`);
 
 	el.append(r.join(" "));
-	el.append(App.Markets.generic("military prison", {sTitleSingular: "prisoner", sTitlePlural: "prisoners"}));
+	el.append(App.Markets.purchaseFramework("military prison", {sTitleSingular: "prisoner", sTitlePlural: "prisoners"}));
 	return el;
 };
diff --git a/src/markets/specificMarkets/schoolFutanari.js b/src/markets/specificMarkets/schoolFutanari.js
index 579e5cfc487..11517493f27 100644
--- a/src/markets/specificMarkets/schoolFutanari.js
+++ b/src/markets/specificMarkets/schoolFutanari.js
@@ -167,7 +167,7 @@ App.Markets.TFS = function() {
 		costMod = costMod * 0.8;
 	}
 	el.append(
-		App.UI.generic("TFS", {costMod:costMod})
+		App.Markets.purchaseFramework("TFS", {costMod:costMod})
 	);
 
 	return el;
diff --git a/src/markets/specificMarkets/schools.js b/src/markets/specificMarkets/schools.js
index bc03e7e627d..88173292d9f 100644
--- a/src/markets/specificMarkets/schools.js
+++ b/src/markets/specificMarkets/schools.js
@@ -25,7 +25,7 @@ App.Markets.GRI = function() {
 		costMod = 0.8;
 	}
 	el.append(
-		App.UI.generic("GRI", {costMod:costMod})
+		App.Markets.purchaseFramework("GRI", {costMod:costMod})
 	);
 
 	return el;
@@ -62,7 +62,7 @@ App.Markets.LDE = function() {
 		costMod = 0.8;
 	}
 	el.append(
-		App.UI.generic("LDE", {costMod:costMod})
+		App.Markets.purchaseFramework("LDE", {costMod:costMod})
 	);
 
 	return el;
@@ -93,7 +93,7 @@ App.Markets.NUL = function() {
 		costMod = 0.8;
 	}
 	el.append(
-		App.UI.generic("NUL", {costMod:costMod})
+		App.Markets.purchaseFramework("NUL", {costMod:costMod})
 	);
 
 	return el;
@@ -130,7 +130,7 @@ App.Markets.SCP = function() {
 		costMod = 0.8;
 	}
 	el.append(
-		App.UI.generic("SCP", {costMod:costMod})
+		App.Markets.purchaseFramework("SCP", {costMod:costMod})
 	);
 
 	return el;
@@ -170,7 +170,7 @@ App.Markets.TCR = function() {
 		costMod = 0.8;
 	}
 	el.append(
-		App.UI.generic("TCR", {costMod:costMod}, "cow", "cattle")
+		App.Markets.purchaseFramework("TCR", {costMod:costMod}, "cow", "cattle")
 	);
 
 	return el;
@@ -206,7 +206,7 @@ App.Markets.TGA = function() {
 		costMod = 0.8;
 	}
 	el.append(
-		App.UI.generic("TGA", {costMod:costMod})
+		App.Markets.purchaseFramework("TGA", {costMod:costMod})
 	);
 
 	return el;
@@ -234,7 +234,7 @@ App.Markets.HA = function() {
 		costMod = 1.2;
 	}
 	el.append(
-		App.UI.generic("HA", {costMod:costMod})
+		App.Markets.purchaseFramework("HA", {costMod:costMod})
 	);
 
 	return el;
@@ -270,7 +270,7 @@ App.Markets.TSS = function() {
 		costMod = 0.8;
 	}
 	el.append(
-		App.UI.generic("TSS", {costMod:costMod})
+		App.Markets.purchaseFramework("TSS", {costMod:costMod})
 	);
 
 	return el;
@@ -288,7 +288,7 @@ App.Markets.TUO = function() {
 		costMod = 1.2;
 	}
 	el.append(
-		App.UI.generic("TUO", {costMod:costMod})
+		App.Markets.purchaseFramework("TUO", {costMod:costMod})
 	);
 
 	return el;
diff --git a/src/markets/specificMarkets/slaveMarkets.js b/src/markets/specificMarkets/slaveMarkets.js
index bee3f5054b4..0e9a1f5bbe0 100644
--- a/src/markets/specificMarkets/slaveMarkets.js
+++ b/src/markets/specificMarkets/slaveMarkets.js
@@ -16,7 +16,7 @@ App.Markets.heap = function() {
 		r.push(`"If you are looking for a body to do unmentionable things to, you came to the right place! Though these in particular just barely fall under slave laws."`);
 	}
 	el.append(r.join(" "));
-	el.append(App.Markets.generic("heap"));
+	el.append(App.Markets.purchaseFramework("heap"));
 	return el;
 };
 
@@ -45,7 +45,7 @@ App.Markets.wetware = function() {
 		r.push(`Curious, you ask a technician why it's necessary for the merchandise to be so badly treated. He replies "Forcing stimulus on the hardware takes an enormous toll on their nervous and circulatory system. The nonfunctional components are disabled and removed as necessary to ensure optimal response to the imprinting process."`);
 	}
 	el.append(r.join(" "));
-	el.append(App.Markets.generic("wetware"));
+	el.append(App.Markets.purchaseFramework("wetware"));
 	return el;
 };
 
@@ -76,7 +76,7 @@ App.Markets.kidnappers = function() {
 	}
 
 	el.append(r.join(" "));
-	el.append(App.Markets.generic("kidnappers"));
+	el.append(App.Markets.purchaseFramework("kidnappers"));
 	return el;
 };
 
@@ -103,7 +103,7 @@ App.Markets.indentures = function() {
 	}
 
 	el.append(r.join(" "));
-	el.append(App.Markets.generic("indentures"));
+	el.append(App.Markets.purchaseFramework("indentures"));
 	return el;
 };
 
@@ -134,7 +134,7 @@ App.Markets.hunters = function() {
 	}
 
 	el.append(r.join(" "));
-	el.append(App.Markets.generic("hunters"));
+	el.append(App.Markets.purchaseFramework("hunters"));
 	return el;
 };
 
@@ -164,7 +164,7 @@ App.Markets["underage raiders"] = function() {
 	}
 
 	el.append(r.join(" "));
-	el.append(App.Markets.generic("underage raiders"));
+	el.append(App.Markets.purchaseFramework("underage raiders"));
 	return el;
 };
 App.Markets.raiders = function() {
@@ -193,7 +193,7 @@ App.Markets.raiders = function() {
 	}
 
 	el.append(r.join(" "));
-	el.append(App.Markets.generic("raiders"));
+	el.append(App.Markets.purchaseFramework("raiders"));
 	return el;
 };
 
@@ -211,7 +211,7 @@ App.Markets.neighbor = function(numArcology) {
 	}
 
 	el.append(r.join(" "));
-	el.append(App.Markets.generic("neighbor", {numArcology:numArcology}));
+	el.append(App.Markets.purchaseFramework("neighbor", {numArcology:numArcology}));
 	return el;
 };
 
@@ -238,7 +238,7 @@ App.Markets.trainers = function() {
 	}
 
 	el.append(r.join(" "));
-	el.append(App.Markets.generic("trainers"));
+	el.append(App.Markets.purchaseFramework("trainers"));
 	return el;
 };
 
@@ -246,7 +246,7 @@ 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"));
+	el.append(App.Markets.purchaseFramework("wetware"));
 	return el;
 };
 
-- 
GitLab