diff --git a/src/markets/bulkSlave/bulkSlaveIntro.js b/src/markets/bulkSlave/bulkSlaveIntro.js index 478010e09e481ba5e3028b709a452c5e52429f81..42a55744c012b0f668ff3ba792a65fded625032c 100644 --- a/src/markets/bulkSlave/bulkSlaveIntro.js +++ b/src/markets/bulkSlave/bulkSlaveIntro.js @@ -177,37 +177,8 @@ App.Markets.bulkSlaveIntro = function() { } /* increment Slave school purchase counts if needed */ - switch (V.market.slaveMarket) { - case "TSS": - V.TSS.studentsBought += V.market.newSlaves.length; - break; - case "TUO": - V.TUO.studentsBought += V.market.newSlaves.length; - break; - case "GRI": - V.GRI.studentsBought += V.market.newSlaves.length; - break; - case "SCP": - V.SCP.studentsBought += V.market.newSlaves.length; - break; - case "LDE": - V.LDE.studentsBought += V.market.newSlaves.length; - break; - case "TGA": - V.TGA.studentsBought += V.market.newSlaves.length; - break; - case "HA": - V.HA.studentsBought += V.market.newSlaves.length; - break; - case "TCR": - V.TCR.studentsBought += V.market.newSlaves.length; - break; - case "TFS": - V.TFS.studentsBought += V.market.newSlaves.length; - break; - case "NUL": - V.NUL.studentsBought += V.market.newSlaves.length; - break; + if (App.Data.misc.schools.includes(V.market.slaveMarket)) { + V[V.market.slaveMarket].studentsBought += V.market.newSlaves.length; } }