diff --git a/src/events/scheduled/seRaiding.js b/src/events/scheduled/seRaiding.js index 807b8e10025226f2721507463ade937ce4d14120..a886c959483bf52abd94e9ee23dea0841adf4460 100644 --- a/src/events/scheduled/seRaiding.js +++ b/src/events/scheduled/seRaiding.js @@ -588,7 +588,7 @@ App.Events.SERaiding = class SERaiding extends App.Events.BaseEvent { slave = GenerateNewSlave("XX", {maxAge: 20, disableDisability: 1}); slave.career = "a classical dancer"; slave.prestige = 1; - slave.prestigeDesc = "${He} was the pride of renowned dance troupe."; + slave.prestigeDesc = "$He was the pride of renowned dance troupe."; slave.face = random(-20, 40); slave.anus = 0; slave.vagina = 1; @@ -638,7 +638,7 @@ App.Events.SERaiding = class SERaiding extends App.Events.BaseEvent { slave = GenerateNewSlave("XX", {maxAge: 43, disableDisability: 1, ageOverridesPedoMode: 1}); slave.career = "a classical musician"; slave.prestige = 1; - slave.prestigeDesc = "${He} was the pride of a renowned orchestra."; + slave.prestigeDesc = "$He was the pride of a renowned orchestra."; slave.face = random(-20, 0); slave.anus = 0; slave.skill.vaginal = 0; @@ -672,8 +672,7 @@ App.Events.SERaiding = class SERaiding extends App.Events.BaseEvent { }); slave.career = "a politician"; slave.prestige = 2; - // FIXME: interpolation doesn't work in these strings - slave.prestigeDesc = "${He} was a widely known politician in ${his} former life. ${His} face has graced many campaign posters."; + slave.prestigeDesc = "$He was a widely known politician in $his former life. $His face has graced many campaign posters."; slave.face = random(15, 100); slave.vagina = 1; slave.skill.oral = 35; @@ -730,7 +729,7 @@ App.Events.SERaiding = class SERaiding extends App.Events.BaseEvent { }); slave.career = "an investor"; slave.prestige = 1; - slave.prestigeDesc = "${He} is a reputable investor from a bygone age."; + slave.prestigeDesc = "$He is a reputable investor from a bygone age."; slave.face = random(15, 100); slave.vagina = 1; slave.skill.oral = 35; diff --git a/src/js/slaveExpenses.js b/src/js/slaveExpenses.js index 08b42f93fee35e8b2aceec78560d6239cf822abc..66a8d67c06676662a6867f8e179c94172494d695 100644 --- a/src/js/slaveExpenses.js +++ b/src/js/slaveExpenses.js @@ -110,9 +110,9 @@ globalThis.slaveImpactLongTerm = function(slave) { text += `time`; } text += ` with you, ${he} has cost `; - div.append(text); - div.append(App.UI.DOM.cashFormat(slave.lifetimeCashExpenses)); - App.UI.DOM.appendNewElement("span", div, `.`, "red"); + const cash = (App.UI.DOM.cashFormat(slave.lifetimeCashExpenses)); + cash.textContent += `.`; + div.append(text, cash); _Expense = slave.lifetimeCashExpenses; } else { div.append(`You have no record of ${him} costing you any ¤.`); @@ -136,9 +136,9 @@ globalThis.slaveImpactLongTerm = function(slave) { text += `time`; } text += ` with you, ${he} has earned `; - div.append(text); - div.append(App.UI.DOM.cashFormat(slave.lifetimeCashIncome)); - App.UI.DOM.appendNewElement("span", div, `.`, "cash"); + const cash = App.UI.DOM.cashFormat(slave.lifetimeCashIncome); + cash.textContent += `.`; + div.append(text, cash); _Income = slave.lifetimeCashIncome; } else { div.append(`You have no record of ${him} making you any ¤.`); @@ -158,8 +158,9 @@ globalThis.slaveImpactLongTerm = function(slave) { div.append(`${he} is even in cost and income.`); } else { div.append(`${he} has cost you `); - div.append(App.UI.DOM.cashFormat(_Income + _Cost + _Expense)); - App.UI.DOM.appendNewElement("span", div, `.`, "red"); + const cash = App.UI.DOM.cashFormat(_Income + _Cost + _Expense); + cash.textContent += `.`; + div.append(cash); } frag.append(div);