diff --git a/src/endWeek/saWhore.js b/src/endWeek/saWhore.js index 6e04abf8685f37a4bb2993ab1ff4a488fd0cb797..e9dc2cb7945e416f984a748dd9f58d4453f6762e 100644 --- a/src/endWeek/saWhore.js +++ b/src/endWeek/saWhore.js @@ -317,7 +317,7 @@ window.saWhore = (function saWhore() { } } if (V.Madam !== 0) { - let madamPronouns = getPronouns(V.Madam); + const madamPronouns = getPronouns(V.Madam); if (V.madamCashBonus > 0) { if (slave.assignment === "whore") { r += ` Working`; @@ -711,7 +711,7 @@ window.saWhore = (function saWhore() { let children = []; children = V.slaves.filter( function(s) { - return ((slave.ID == s.father || slave.ID == s.mother || s.ID == slave.father || s.ID == slave.mother || areSisters(slave, s) > 0) && (s.assignment === slave.assignment)); + return ((slave.ID === s.father || slave.ID === s.mother || s.ID === slave.father || s.ID === slave.mother || areSisters(slave, s) > 0) && (s.assignment === slave.assignment)); } ); if (children.length > 2) { @@ -738,7 +738,7 @@ window.saWhore = (function saWhore() { r += ` Customers are very enthusiastic about being able to participate in incestuous sex.`; } } else if (children.length > 0) { - let relativePronouns = getPronouns(children[0]); + const relativePronouns = getPronouns(children[0]); r += ` Since ${his} relative, ${children[0].slaveName}, is selling ${relativePronouns.objectReflexive} too, ${he} earns extra ¤ by working with ${relativePronouns.object}.`; if (arcology.FSEgyptianRevivalist > 20) { r += ` Customers are very enthusiastic about being able to participate in incestuous sex like the ancient Egyptians.`; @@ -751,7 +751,7 @@ window.saWhore = (function saWhore() { if (slave.relation !== 0) { SWi = V.slaveIndices[slave.relationTarget]; if (SWi !== undefined && slave.assignment === V.slaves[SWi].assignment) { - let relativePronouns = getPronouns(V.slaves[SWi]); + const relativePronouns = getPronouns(V.slaves[SWi]); r += ` Since ${his} ${V.slaves[SWi].relation} ${V.slaves[SWi].slaveName} is selling ${relativePronouns.objectReflexive} too, ${he} earns extra ¤ by working with ${relativePronouns.object}.`; if (arcology.FSEgyptianRevivalist > 20) { r += ` Customers are very enthusiastic about being able to participate in incestuous sex like the ancient Egyptians.`; @@ -1617,8 +1617,7 @@ window.saWhore = (function saWhore() { /** @param {App.Entity.SlaveState} slave */ function assignmentVignette(slave) { - let vignette; - vignette = GetVignette(slave); + const vignette = GetVignette(slave); // I forgot what to do with __X__ r += ` __This week__ ${vignette.text} `; if (vignette.type === "cash") {