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

simplify schools

parent 5a953886
No related branches found
No related tags found
1 merge request!8133simplify schools
......@@ -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;
}
}
......
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