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

clean up slavesSeen

parent 3f2c3057
No related branches found
No related tags found
No related merge requests found
......@@ -251,7 +251,7 @@ App.UI.View.mainLinks = function() {
function schoolSale(school) {
const div = document.createElement("div");
div.append(App.UI.DOM.makeElement("span", "For your first purchase, ", "yellow"),
App.UI.DOM.passageLink(school, school, () => { V.slavesSeen += 1; }),
App.UI.DOM.passageLink(school, school),
App.UI.DOM.makeElement("span", " will sell at half price this week.", "yellow"));
fragment.append(div);
}
......
......@@ -44,6 +44,7 @@ App.Markets.purchaseFramework = function(slaveMarket, {numArcology, sTitleSingul
const {him, his} = getPronouns(slave);
const el = document.createElement("p");
let title = {};
V.slavesSeen += 1;
if (sTitleSingular === "prisoner") {
title = {
decline: `Inspect a different prisoner`,
......@@ -68,7 +69,6 @@ App.Markets.purchaseFramework = function(slaveMarket, {numArcology, sTitleSingul
App.UI.DOM.link(
title.decline,
() => {
V.slavesSeen += 1;
jQuery("#slave-markets").empty().append(App.Markets[slaveMarket]);
},
)
......@@ -83,7 +83,6 @@ App.Markets.purchaseFramework = function(slaveMarket, {numArcology, sTitleSingul
cashX(forceNeg(cost), "slaveTransfer", slave);
V.newSlaves.push(slave);
V.introType = "multi";
V.slavesSeen += 1;
student();
jQuery("#slave-markets").empty().append(App.Markets[slaveMarket]);
},
......
......@@ -136,12 +136,8 @@ App.UI.buySlaves = function() {
const linkArray = [];
if (store.marketType === "Custom Slave") { // hardcoding this exception because converting this is going to be a bitch.
linkArray.push(
App.UI.DOM.link(
App.UI.DOM.passageLink(
store.title,
() => {
V.slavesSeen += 1;
},
[],
store.marketType
)
);
......@@ -150,7 +146,6 @@ App.UI.buySlaves = function() {
App.UI.DOM.link(
store.title,
() => {
V.slavesSeen += 1;
App.UI.specificMarket({
market: store.marketType,
slaveMarket: 0,
......
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