diff --git a/src/endWeek/saWorkAGloryHole.js b/src/endWeek/saWorkAGloryHole.js index 19f4e5ee3f4e379df922147cca40adaf799aace1..2a478efce3caf56801400473b2119a53624295d4 100644 --- a/src/endWeek/saWorkAGloryHole.js +++ b/src/endWeek/saWorkAGloryHole.js @@ -43,7 +43,6 @@ window.saWorkAGloryHole = (function saWorkAGloryHole() { /** @param {App.Entity.SlaveState} slave */ function jobPreface(slave) { - r += ` is `; if (slave.fuckdoll === 0) { r += `restrained in a glory hole.`; @@ -78,7 +77,6 @@ window.saWorkAGloryHole = (function saWorkAGloryHole() { /** @param {App.Entity.SlaveState} slave */ function physicalEffects(slave) { - //check usage counts for these — more fucks should be more damaging if (slave.curatives > 0 || slave.inflationType === "curative") { r += ` The drugs ${he}'s `; @@ -92,21 +90,21 @@ window.saWorkAGloryHole = (function saWorkAGloryHole() { r += ` The stress of being used while very ill <span class="red">damaged ${his} health.</span>`; slave.health -= Math.max(Math.trunc((slave.sexAmount - 100) / 25) + jsRandom(-2, 2), 1); } else if (slave.health < -10) { - if (jsRandom(1,100) < 10) { + if (jsRandom(1, 100) < 10) { r += ` The stress of being used while weak has <span class="red">damaged ${his} health.</span>`; slave.health -= Math.max(Math.trunc((slave.sexAmount - 100) / 25) + jsRandom(-2, 2), 1); } } else if (!canDoVaginal(slave) && !canDoAnal(slave)) { - if (jsRandom(1,100) < 75) { + if (jsRandom(1, 100) < 75) { r += ` The stress of being used repeatedly in only one hole has <span class="red">damaged ${his} health.</span>`; slave.health -= Math.max(Math.trunc((slave.sexAmount - 100) / 25) + jsRandom(-2, 2), 1); } } else if (!canDoVaginal(slave)) { - if (jsRandom(1,100) < 50) { + if (jsRandom(1, 100) < 50) { r += ` The stress of being used in only two holes has <span class="red">damaged ${his} health.</span>`; slave.health -= Math.max(Math.trunc((slave.sexAmount - 100) / 25) + jsRandom(-2, 2), 1); } - } else if (jsRandom(1,100) < 25) { + } else if (jsRandom(1, 100) < 25) { r += ` The stress of being used has <span class="red">damaged ${his} health.</span>`; slave.health -= Math.max(Math.trunc((slave.sexAmount - 100) / 25) + jsRandom(-2, 2), 1); } @@ -122,12 +120,12 @@ window.saWorkAGloryHole = (function saWorkAGloryHole() { slave.devotion -= 10; slave.trust -= 10; slave.vagina = 1; - } else if (slave.vagina < 3 && canDoVaginal(slave) && jsRandom(1,100) > ((310 - beauty) + (slave.vagina * 10))) { + } else if (slave.vagina < 3 && canDoVaginal(slave) && jsRandom(1, 100) > ((310 - beauty) + (slave.vagina * 10))) { r += ` <span class="lime">${His} pussy gets stretched out by the use.</span>`; slave.vagina += 1; } - if (slave.anus == 0 && canDoAnal(slave)) { + if (slave.anus === 0 && canDoAnal(slave)) { r += ` ${His} anal virginity goes to a `; if (slave.fuckdoll === 0) { r += `glory hole`; @@ -144,7 +142,7 @@ window.saWorkAGloryHole = (function saWorkAGloryHole() { slave.devotion -= 5; slave.trust -= 5; slave.anus = 1; - } else if (slave.anus < 3 && canDoAnal(slave) && jsRandom(1,100) > ((290 - beauty) + (slave.anus * 10))) { + } else if (slave.anus < 3 && canDoAnal(slave) && jsRandom(1, 100) > ((290 - beauty) + (slave.anus * 10))) { r += ` <span class="lime">${His} asshole sees constant use and loosens.</span>`; slave.anus += 1; } @@ -152,7 +150,6 @@ window.saWorkAGloryHole = (function saWorkAGloryHole() { /** @param {App.Entity.SlaveState} slave */ function mentalEffects(slave) { - if (slave.fetish === "mindbroken") { r += ` ${He} serves ${his} role as a mindless set of holes to perfection.`; } else { @@ -169,7 +166,7 @@ window.saWorkAGloryHole = (function saWorkAGloryHole() { if (slave.sexualFlaw === "self hating") { r += ` ${His} self hatred is so deep that ${he} believes ${he} deserves to serve in a glory hole, and even gets off on the degradation.`; } else if (slave.sentence > 0) { - if (slave.behavioralFlaw !== "odd" && jsRandom(1,100) > (100 + (slave.devotion / 5))) { + if (slave.behavioralFlaw !== "odd" && jsRandom(1, 100) > (100 + (slave.devotion / 5))) { r += ` Constant confinement coupled with brutal use has left ${him} with involuntary nervous tics.`; slave.behavioralFlaw = "odd"; } @@ -187,7 +184,7 @@ window.saWorkAGloryHole = (function saWorkAGloryHole() { slave.devotion -= 5; slave.trust -= 5; } else { - if (slave.behavioralFlaw !== "odd" && jsRandom(1,100) > (70 + (slave.devotion / 5))) { + if (slave.behavioralFlaw !== "odd" && jsRandom(1, 100) > (70 + (slave.devotion / 5))) { r += ` Constant confinement coupled with brutal use has left ${him} with involuntary nervous tics.`; slave.behavioralFlaw = "odd"; } @@ -221,10 +218,9 @@ window.saWorkAGloryHole = (function saWorkAGloryHole() { /** @param {App.Entity.SlaveState} slave */ function applyFSDecoration(slave) { - /* FACILITY DECORATION IMPACTS */ if (slave.assignment === "be confined in the arcade" && V.arcadeDecoration !== "standard") { - let impact = (0.0001 * V.FSSingleSlaveRep * beauty); + const impact = (0.0001 * V.FSSingleSlaveRep * beauty); switch (V.arcadeDecoration) { case "Roman Revivalist": V.arcologies[0].FSRomanRevivalist += impact; @@ -304,7 +300,6 @@ window.saWorkAGloryHole = (function saWorkAGloryHole() { /** @param {App.Entity.SlaveState} slave */ function sexCounts(slave) { - /* SEX ACT COUNTS AND SEXUAL SATISFACTION */ let oralUse = (V.oralUseWeight + (slave.lips / 20)); @@ -323,7 +318,7 @@ window.saWorkAGloryHole = (function saWorkAGloryHole() { } } - let demand = (oralUse + analUse + vaginalUse); + const demand = (oralUse + analUse + vaginalUse); let cervixPump = 0; oralUse = Math.trunc((oralUse / demand) * beauty); @@ -410,7 +405,6 @@ window.saWorkAGloryHole = (function saWorkAGloryHole() { /** @param {App.Entity.SlaveState} slave */ function profitReport(slave) { - if (V.publicFuckdolls === 0) { if (slave.assignment === "work a glory hole") { cashX(Math.trunc(beauty * FResult), "gloryhole", slave); @@ -433,5 +427,4 @@ window.saWorkAGloryHole = (function saWorkAGloryHole() { T.incomeStats.income += Math.trunc(beauty * FResult / 5); } } - })();