diff --git a/src/interaction/siFinancial.js b/src/interaction/siFinancial.js index 461ac73a68d103ffcae552413ef406a02fd3c9cd..b6f19c6efa20221677a7bddcd16f83f29bcd4839 100644 --- a/src/interaction/siFinancial.js +++ b/src/interaction/siFinancial.js @@ -1,6 +1,6 @@ App.UI.SlaveInteract.financial = function(slave) { const el = new DocumentFragment(); - let r = []; + let r; let linkArray; const { He, His, @@ -9,11 +9,11 @@ App.UI.SlaveInteract.financial = function(slave) { if (V.studio === 1) { App.UI.DOM.appendNewElement("h3", el, "Media"); slave.porn.spending = Math.clamp(Math.ceil(slave.porn.spending / 1000) * 1000, 0, 5000); + if (slave.porn.prestige === 3) { - r.push( - App.UI.DOM.makeElement("div", `${He} is so prestigious in the realm of ${slave.porn.fameType} porn that ${his} fame is self-sustaining.`, "note") - ); + App.UI.DOM.appendNewElement("div", el, `${He} is so prestigious in the realm of ${slave.porn.fameType} porn that ${his} fame is self-sustaining.`, "note") } else if (slave.porn.feed === 0) { + r = []; r.push(`The media hub is not releasing highlights of ${his} sex life.`); r.push( App.UI.DOM.link( @@ -24,7 +24,9 @@ App.UI.SlaveInteract.financial = function(slave) { } ) ); + App.Events.addNode(el, r, "div"); } else { + r = []; r.push(`The media hub is releasing highlights of ${his} sex life`); if (slave.porn.spending < 500) { r.push(`to those who can find it.`); @@ -60,6 +62,7 @@ App.UI.SlaveInteract.financial = function(slave) { ) ); r.push(App.UI.DOM.generateLinksStrip(linkArray)); + App.Events.addNode(el, r, "div"); } else { r.push( App.UI.DOM.makeTextBox( @@ -115,7 +118,6 @@ App.UI.SlaveInteract.financial = function(slave) { App.Events.addNode(el, r, "div"); if (V.PC.career === "escort") { - App.Events.addNode(el, r, "div"); r = []; r.push(`You retain some contacts from your past life in the industry that may be willing to cut you some discounts should you return to it.`); if (V.PCSlutContacts !== 2) { @@ -141,10 +143,10 @@ App.UI.SlaveInteract.financial = function(slave) { ) ); } + App.Events.addNode(el, r, "div"); } } if (V.studioFeed === 1) { - App.Events.addNode(el, r, "div"); r = []; if (slave.porn.viewerCount < 100) { r.push(`${He} lacks the fame in porn needed to discern what ${his} feed is getting tagged as.`); @@ -159,9 +161,9 @@ App.UI.SlaveInteract.financial = function(slave) { } r.push(App.Porn.genreChoiceLinks("Slave Interact", slave)); } + App.Events.addNode(el, r, "div"); } } - App.Events.addNode(el, r, "div"); } App.UI.DOM.appendNewElement("h3", el, "Financial"); App.UI.DOM.appendNewElement("p", el, slaveExpenses(slave)); diff --git a/src/interaction/siWork.js b/src/interaction/siWork.js index 3206f24d318b9c69de7fb94026fc1e69dae24329..699bfa1bf39afc1c4baf91bc2658dd1292e4b254 100644 --- a/src/interaction/siWork.js +++ b/src/interaction/siWork.js @@ -737,6 +737,6 @@ App.UI.SlaveInteract.work = function(slave) { } function refresh() { - jQuery("#si-work").empty().append(App.UI.SlaveInteract.work(slave)); + jQuery("#content-work").empty().append(App.UI.SlaveInteract.work(slave)); } };