diff --git a/src/markets/buySlaves.js b/src/markets/buySlaves.js index 8da09d8d53a2adcc012c3722f6e868ea418aec9a..f144319aba742a1c16cda1fa0eda8ef18681327f 100644 --- a/src/markets/buySlaves.js +++ b/src/markets/buySlaves.js @@ -26,25 +26,29 @@ App.UI.buySlaves = function() { App.UI.DOM.appendNewElement("h2", el, "Sex Slave Purchase Options"); + // Cheap el.append(storeBlock(App.Data.Markets.low)); - + // Neighbors App.UI.DOM.appendNewElement("h3", el, "Neighboring Arcologies"); App.UI.DOM.appendNewElement("div", el, "The arcology's prosperity and culture will affect slaves who have lived there.", "note"); App.UI.DOM.appendNewElement("div", el, neighborsBlock()); - App.UI.DOM.appendNewElement("h3", el, "Midrange prices"); + // Midrange + App.UI.DOM.appendNewElement("h3", el, "Midrange"); el.append(storeBlock(App.Data.Markets.intermediate)); + // Schools if (V.rep > 6000) { App.UI.DOM.appendNewElement("h3", el, "Slave Schools"); App.UI.DOM.appendNewElement("div", el, "High prices; will be young and healthy.", "note"); + el.append(storeBlock(App.Data.Markets.schools)); } else { - App.UI.DOM.appendNewElement("div", el, "You are not reputable enough to acquire fresh school slaves.", "note"); + App.UI.DOM.appendNewElement("div", el, "You are not reputable enough to acquire fresh school slaves."); } - el.append(storeBlock(App.Data.Markets.schools)); - App.UI.DOM.appendNewElement("h3", el, "High prices"); + // High end + App.UI.DOM.appendNewElement("h3", el, "Special"); el.append(storeBlock(App.Data.Markets.high)); @@ -132,7 +136,6 @@ App.UI.buySlaves = function() { const linkArray = []; store.passage = store.passage || passage(); - console.log(store.passage); linkArray.push( App.UI.DOM.link( store.title, @@ -178,6 +181,11 @@ App.UI.buySlaves = function() { if (store.note) { App.UI.DOM.appendNewElement("span", el, ` ${store.note}`, "note"); } + if (["GRI", "HA", "NUL", "SCP", "TCR", "TFS", "TGA", "TSS", "LDE", "TUO"].includes(store.marketType)) { + if (V[store.marketType].schoolSale === 1) { + App.UI.DOM.appendNewElement("span", el, `Offering your first purchase at half price this week.`, "yellow"); + } + } return el; } };