From 81dd59bc553905c0eac95ce6a06d6d0ef910ba5e Mon Sep 17 00:00:00 2001
From: lowercasedonkey <lowercasedonkey@gmail.com>
Date: Thu, 22 Oct 2020 22:33:58 -0400
Subject: [PATCH] another check

---
 src/markets/marketUI.js | 80 +++++++++++++++++------------------------
 1 file changed, 32 insertions(+), 48 deletions(-)

diff --git a/src/markets/marketUI.js b/src/markets/marketUI.js
index af2110b9a03..3646424fa74 100644
--- a/src/markets/marketUI.js
+++ b/src/markets/marketUI.js
@@ -177,53 +177,37 @@ App.Markets.GlobalVariable = function() {
  * @param {*} arcIndex
  */
 App.Markets.marketName = function(market = "kidnappers", arcIndex = 1) {
-	switch (market) {
-		case "corporate":
-			return `your corporation`;
-		case "neighbor":
-			return `${V.arcologies[arcIndex].name}`;
-		case "kidnappers":
-			return `the Kidnappers' Market`;
-		case "indentures":
-			return `the Indentures Market`;
-		case "hunters":
-			return `the Runaway Hunters' Market`;
-		case "raiders":
-			return `the Raiders' Market`;
-		case "underage raiders":
-			return `the Raiders' Black Market`;
-		case "heap":
-			return `the Flesh Heap as alive as when you purchased them.`;
-		case "wetware":
-			return `the Wetware CPU market`;
-		case "trainers":
-			return `the Trainers' Market`;
-		case "TSS":
-			return `The Slavegirl School`;
-		case "TUO":
-			return `The Utopian Orphanage`;
-		case "GRI":
-			return `Growth Research Institute`;
-		case "SCP":
-			return `St. Claver Preparatory`;
-		case "LDE":
-			return `L'école des Enculées`;
-		case "TGA":
-			return `The Gymnasium-Academy`;
-		case "TCR":
-			return `The Cattle Ranch`;
-		case "TFS":
-			return `The Futanari Sisters`;
-		case "HA":
-			return `The Hippolyta Academy`;
-		case "NUL":
-			return `Nueva Universidad de Libertad`;
-		case "low tier criminals":
-		case "gangs and smugglers":
-		case "white collar":
-		case "military prison":
-			return `the prisoner sale`;
-		default:
-			return `Someone messed up. ${market} is not known.`;
+	if (App.Data.misc.schools.has(market)) {
+		return App.Data.misc.schools.get(market).title;
+	} else {
+		switch (market) {
+			case "corporate":
+				return `your corporation`;
+			case "neighbor":
+				return `${V.arcologies[arcIndex].name}`;
+			case "kidnappers":
+				return `the Kidnappers' Market`;
+			case "indentures":
+				return `the Indentures Market`;
+			case "hunters":
+				return `the Runaway Hunters' Market`;
+			case "raiders":
+				return `the Raiders' Market`;
+			case "underage raiders":
+				return `the Raiders' Black Market`;
+			case "heap":
+				return `the Flesh Heap as alive as when you purchased them.`;
+			case "wetware":
+				return `the Wetware CPU market`;
+			case "trainers":
+				return `the Trainers' Market`;
+			case "low tier criminals":
+			case "gangs and smugglers":
+			case "white collar":
+			case "military prison":
+				return `the prisoner sale`;
+			default:
+				return `Someone messed up. ${market} is not known.`;
+		}
 	}
 };
-- 
GitLab