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

fix sale

parent cf3b691c
No related branches found
No related tags found
1 merge request!7628Use tw for markets, fixes
......@@ -248,47 +248,57 @@ App.UI.View.mainLinks = function() {
/**
* @param {string} school
*/
function schoolSale(school) {
function schoolSale(school, abbreviation) {
const div = document.createElement("div");
div.append(App.UI.DOM.makeElement("span", "For your first purchase, ", "yellow"),
App.UI.DOM.passageLink(school, school),
App.UI.DOM.passageLink(
school,
"Market",
() => {
V.market = {
market: abbreviation,
slaveMarket: 0,
newSlaves: [],
numArcology: 1
};
}),
App.UI.DOM.makeElement("span", " will sell at half price this week.", "yellow"));
fragment.append(div);
}
if (V.seeDicks !== 100) {
if (V.TSS.schoolSale !== 0) {
schoolSale("The Slavegirl School");
schoolSale("The Slavegirl School", "TSS");
}
if (V.TUO.schoolSale !== 0) {
schoolSale("The Utopian Orphanage");
schoolSale("The Utopian Orphanage", "TUO");
}
if (V.GRI.schoolSale !== 0) {
schoolSale("Growth Research Institute");
schoolSale("Growth Research Institute", "GRI");
}
if (V.SCP.schoolSale !== 0) {
schoolSale("St. Claver Preparatory");
schoolSale("St. Claver Preparatory", "SCP");
}
if (V.TCR.schoolSale !== 0) {
schoolSale("The Cattle Ranch");
schoolSale("The Cattle Ranch", "TCR");
}
if (V.HA.schoolSale !== 0) {
schoolSale("The Hippolyta Academy");
schoolSale("The Hippolyta Academy", "HA");
}
}
if (V.seeDicks !== 0) {
if (V.LDE.schoolSale !== 0) {
schoolSale("L'École des Enculées");
schoolSale("L'École des Enculées", "LDE");
}
if (V.TGA.schoolSale !== 0) {
schoolSale("The Gymnasium-Academy");
schoolSale("The Gymnasium-Academy", "TGA");
}
if (V.TFS.schoolSale !== 0) {
schoolSale("The Futanari Sisters");
schoolSale("The Futanari Sisters", "TFS");
}
}
if (V.NUL.schoolSale !== 0) {
schoolSale("Nueva Universidad de Libertad");
schoolSale("Nueva Universidad de Libertad", "NUL");
}
return fragment;
};
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