diff --git a/src/endWeek/saNanny.js b/src/endWeek/saNanny.js index 23e9d1a181c8b1c0b52fb2e9a5dda05acefe59bc..bc9e6f6f5ac7df36a401950a2a85b0f477a9accc 100644 --- a/src/endWeek/saNanny.js +++ b/src/endWeek/saNanny.js @@ -4,16 +4,22 @@ window.saNanny = /** @param {App.Entity.SlaveState} slave */ function saNanny(sl "use strict"; const V = State.variables; const arcology = V.arcologies[0]; - var pronouns = getPronouns(slave); - var he = pronouns.pronoun, him = pronouns.object, his = pronouns.possessive, hers = pronouns.possessivePronoun, himself = pronouns.objectReflexive, boy = pronouns.noun; - var He = capFirstChar(he), His = capFirstChar(his); - var incomeStats = getSlaveStatisticData(slave, V.facility.nursery); // TODO: likely won't need this + const pronouns = getPronouns(slave); + const he = pronouns.pronoun; + const him = pronouns.object; + const his = pronouns.possessive; + const hers = pronouns.possessivePronoun; + const himself = pronouns.objectReflexive; + const boy = pronouns.noun; + const He = capFirstChar(he); + const His = capFirstChar(his); + const incomeStats = getSlaveStatisticData(slave, V.facility.nursery); // TODO: likely won't need this - var t = `works as a nanny this week. `; + let t = `works as a nanny this week. `; if (V.Matron) { t += `effects here`; } return t; -} \ No newline at end of file +} diff --git a/src/js/assayJS.js b/src/js/assayJS.js index 2f0bb113e8119a659e2e8e6f1024074cfa2ecad2..cb39697b400b65af7f7d113c23b9aeb79739c6db 100644 --- a/src/js/assayJS.js +++ b/src/js/assayJS.js @@ -1209,7 +1209,7 @@ window.SlaveTitle = /** @param {App.Entity.SlaveState} slave */ function SlaveTi if (slave.indenture > -1) { r = `indentured ${ r}`; } - if (slave.actualAge > 3) { /**TODO: this might need some tweaking */ + if (slave.actualAge > 3) { /* TODO: this might need some tweaking */ if (slave.preg > slave.pregData.normalBirth/4 && slave.pregKnown === 1) { r = "pregnant " + r; } else if (slave.bellyFluid >= 5000) { @@ -1217,7 +1217,7 @@ window.SlaveTitle = /** @param {App.Entity.SlaveState} slave */ function SlaveTi } else if (slave.belly >= 5000) { r = "gravid " + r; } - + } if (slave.preg > slave.pregData.normalBirth/4 && slave.pregKnown === 1) { r = `pregnant ${ r}`; } else if (slave.bellyFluid >= 5000) {