diff --git a/src/endWeek/saServant.js b/src/endWeek/saServant.js index e58b06959ed64569e1f8c67e1142404148e72c71..74fb208236a74ad06557123e7b6f06256b3d86de 100644 --- a/src/endWeek/saServant.js +++ b/src/endWeek/saServant.js @@ -1,13 +1,16 @@ -/* eslint-disable no-unused-vars */ -/* eslint-disable no-undef */ window.saServant = /** @param {App.Entity.SlaveState} slave */ function saServant(slave) { + const V = State.variables; + 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); - 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 V = State.variables; - - var t = `works as a servant. ${He} performs the lowest jobs in your penthouse, cleaning up after your other slaves, bathing them, helping them dress, and giving them sexual relief.`; + let t = `works as a servant. ${He} performs the lowest jobs in your penthouse, cleaning up after your other slaves, bathing them, helping them dress, and giving them sexual relief.`; if (V.servantsQuarters > 0) { if ((V.universalRulesFacilityWork === 1 && slave.assignment === "be a servant" && V.servantsQuartersSpots > 0) || (slave.assignment === "work as a servant")) { @@ -61,7 +64,7 @@ window.saServant = /** @param {App.Entity.SlaveState} slave */ function saServan } if (slave.releaseRules !== "chastity") { - let _oral = jsRandom(5,10); + const _oral = jsRandom(5, 10); slave.oralCount += _oral; V.oralTotal += _oral; } @@ -77,7 +80,7 @@ window.saServant = /** @param {App.Entity.SlaveState} slave */ function saServan } else if (slave.skillS >= V.masteredXP) { t += ` ${He} has experience with house keeping from working for you, making ${him} more effective.`; } else { - slave.skillS += jsRandom(1,Math.ceil((slave.intelligence+slave.intelligenceImplant)/15) + 8); + slave.skillS += jsRandom(1, Math.ceil((slave.intelligence+slave.intelligenceImplant)/15) + 8); } if (slave.fetishStrength > 60) { @@ -114,7 +117,7 @@ window.saServant = /** @param {App.Entity.SlaveState} slave */ function saServan } if (V.showVignettes === 1 && (slave.assignment === Job.SERVANT || slave.assignment === Job.SERVER)) { - var _vignette = GetVignette(slave); + const _vignette = GetVignette(slave); t += ` __This week__ ${_vignette.text} `; if (_vignette.type === "cash") { if (_vignette.effect > 0) {