diff --git a/src/markets/marketUI.js b/src/markets/marketUI.js index af2110b9a0396fd42795de6a77f0ac25b4c6c4d3..3646424fa74ad966fcd6bb8b3f126608403ef9b6 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.`; + } } };