diff --git a/src/endWeek/reports/dairyReport.js b/src/endWeek/reports/dairyReport.js index 2859e65d670430f8f03104f5f94b3ac7a5353565..1dc680988d1e8a8b0db6473a81908a348b58d0ca 100644 --- a/src/endWeek/reports/dairyReport.js +++ b/src/endWeek/reports/dairyReport.js @@ -1,3 +1,6 @@ +/** + * @returns {DocumentFragment} + */ globalThis.dairyReport = function() { const el = new DocumentFragment(); let r = []; @@ -111,8 +114,7 @@ globalThis.dairyReport = function() { if (slave.belly >= 5000) { _MMWorkout += 2; } - } else if (!canWalk(slave)) { - r.push(` /* smaller bonus if they are fat as cows and need assistance with moving */`); + } else if (!canWalk(slave)) { // smaller bonus if they are fat as cows and need assistance with moving if (slave.weight >= 70) { _MMWorkout += 1; } @@ -152,7 +154,7 @@ globalThis.dairyReport = function() { S.Milkmaid.trust += 5; } if (S.Milkmaid.skill.oral > 0) { - V.milkmaidDevotionBonus += Math.trunc(S.Milkmaid.skill.oral/30); + V.milkmaidDevotionBonus += Math.trunc(S.Milkmaid.skill.oral / 30); } if (S.Milkmaid.health.condition >= 80) { V.milkmaidHealthBonus++; @@ -232,7 +234,7 @@ globalThis.dairyReport = function() { S.Milkmaid.devotion++; } else if ((S.Milkmaid.fetish === "pregnancy" && S.Milkmaid.fetishKnown === 1)) { r.push(`${He} has a pregnancy fetish, so ${he} finds ${his} job <span class="hotpink">quite enjoyable,</span> especially when ${he} gets to watch the cows swell with ${his} children.`); - S.Milkmaid.devotion += Math.ceil(S.Milkmaid.fetishStrength/25); + S.Milkmaid.devotion += Math.ceil(S.Milkmaid.fetishStrength / 25); S.Milkmaid.fetishStrength += 2; } const _Tmult = (_milkmaidImpregnated * 10); @@ -257,7 +259,7 @@ globalThis.dairyReport = function() { V.milkmaidHealthBonus++; r.push(`${His} muscles help ${him} handle the fattest or most reluctant cow.`); } - if ((_MMWorkout > random(1, 30-S.Milkmaid.geneticQuirks.mLoss+S.Milkmaid.geneticQuirks.mGain)) && S.Milkmaid.muscles < 60) { + if ((_MMWorkout > random(1, 30 - S.Milkmaid.geneticQuirks.mLoss + S.Milkmaid.geneticQuirks.mGain)) && S.Milkmaid.muscles < 60) { r.push(`Constantly having to wrestle unruly or aiding heavy cows into their stalls forces ${him} to <span class="lime">build muscle.</span>`); S.Milkmaid.muscles++; } @@ -282,14 +284,14 @@ globalThis.dairyReport = function() { V.milkmaidHealthBonus++; r.push(`${He} has experience harvesting slave products from working for you.`); } else { - S.Milkmaid.skill.milkmaid += random(1, Math.ceil((S.Milkmaid.intelligence+S.Milkmaid.intelligenceImplant)/15) + 8); + S.Milkmaid.skill.milkmaid += random(1, Math.ceil((S.Milkmaid.intelligence + S.Milkmaid.intelligenceImplant) / 15) + 8); } if (_prostateStim === 1) { r.push(`${He} uses ${his} turgid cock to give prostate stimulation to slaves that need help ejaculating.`); S.Milkmaid.need -= 50; } - V.milkmaidDevotionThreshold += (5*V.milkmaidDevotionBonus); - V.milkmaidTrustThreshold += (5*V.milkmaidTrustBonus); + V.milkmaidDevotionThreshold += (5 * V.milkmaidDevotionBonus); + V.milkmaidTrustThreshold += (5 * V.milkmaidTrustBonus); for (const i in _slaves) { const slave = _slaves[i]; V.i = V.slaveIndices[slave.ID]; @@ -315,38 +317,32 @@ globalThis.dairyReport = function() { ({ he2, his2 } = getPronouns(slave).appendSuffix("2")); - r.push(`${He} pays special attention to ${his} ${relativeTerm(S.Milkmaid, slave)},${slave.slaveName}, making sure ${he2} is well kept and happy.`); + r.push(`${He} pays special attention to ${his} ${relativeTerm(S.Milkmaid, slave)}, ${slave.slaveName}, making sure ${he2} is well kept and happy.`); slave.trust++; } if (slave.prestigeDesc === "$He is remembered for winning best in show as a dairy cow.") { - if ((slave.lactation > 0) && ((slave.boobs-slave.boobsImplant) > 6000)) { - r.push(`${He} spends extra time with${slave.slaveName}, the well-known cow. ${He} is fascinated by ${slave.slaveName}'s massive ${slave.boobs} cc breasts and spends extra time massaging and kneading them to maximize production.`); + if ((slave.lactation > 0) && ((slave.boobs - slave.boobsImplant) > 6000)) { + r.push(`${He} spends extra time with ${slave.slaveName}, the well-known cow. ${He} is fascinated by ${slave.slaveName}'s massive ${slave.boobs}cc breasts and spends extra time massaging and kneading them to maximize production.`); slave.devotion += 3; slave.trust += 3; } else { - r.push(`${He} is disappointed that the well-known cow${slave.slaveName}`); - if (slave.lactation === 0) { - r.push(` isn't producing milk anymore. `); - } else { - r.push(`'s breasts have shrunken considerably from their heyday.`); - } + r.push(`${He} is disappointed that the well-known cow ${slave.slaveName}${(slave.lactation === 0) ? `isn't producing milk anymore` : `'s breasts have shrunken considerably from their heyday`}.`); } } if (slave.prestigeDesc === "$He is remembered for winning best in show as a cockmilker.") { if (((slave.balls > 6) && (slave.dick !== 0)) || ((slave.balls > 4) && (slave.dick !== 0) && (slave.prostate > 1))) { - r.push(`${He} spends extra time with${slave.slaveName}, the massive ejaculating cow. ${He} can't help but massage the cow's dick and testes to stimulate them further and coax more from them.`); + r.push(`${He} spends extra time with ${slave.slaveName}, the massive ejaculating cow. ${He} can't help but massage the cow's dick and testes to stimulate them further and coax more from them.`); slave.devotion += 3; slave.trust += 3; } else { - r.push(`${He} is disappointed that the (formerly) massive ejaculating cow ${slave.slaveName}`); + r.push(`${He} is disappointed that the (formerly) massive ejaculating cow`); if (slave.balls === 0 || slave.dick === 0) { - r.push(` is incapable of giving cum`); + r.push(`${slave.slaveName} is incapable of giving cum.`); } else if (slave.prostate < 2) { - r.push(` no longer possesses a hyperactive prostate`); + r.push(`${slave.slaveName} no longer possesses a hyperactive prostate.`); } else { - r.push(`'s balls are considerably smaller than at their heyday`); + r.push(`${slave.slaveName}'s balls are considerably smaller than at their heyday.`); } - r.push(`.`); } } if (slave.prestigeDesc === "$He is remembered for winning best in show as a breeder." && slave.bellyPreg >= 1500) { @@ -363,19 +359,19 @@ globalThis.dairyReport = function() { _Tadd = (V.bioreactorsXY + V.bioreactorsXX + V.bioreactorsHerm + V.bioreactorsBarren); if (_DL + _Tadd > 0) { if (V.MilkmaidID !== 0) { - // <br><br> + // <br><br> } // if (_DL !== 1) { - r.push(`''There are _DL cows in ${V.dairyName}.''`); + r.push(App.UI.DOM.makeElement("span", `There are ${_DL} cows in ${V.dairyName}.`, "bold")); } else { - r.push(`''There is one cow in ${V.dairyName}.''`); + r.push(App.UI.DOM.makeElement("span", `There is one cow in ${V.dairyName}.`, "bold")); } if (V.dairyRestraintsSetting > 1) { r.push(`The facility functions as an industrial slave products factory.`); } if (_Tadd > 0) { - r.push(`_Tadd milking machines have permanent biological components, making a total of ${_Tadd + _DL} milk-producing bodies.`); + r.push(`${_Tadd} milking machines have permanent biological components, making a total of ${_Tadd + _DL} milk-producing bodies.`); } } @@ -409,7 +405,7 @@ globalThis.dairyReport = function() { he, him, his, He, His, wife, girl } = getPronouns(slave)); /* Special attention section */ - if ((V.legendaryCowID === 0) && (slave.lactation > 0) && ((slave.boobs-slave.boobsImplant-slave.boobsMilk) > 6000) && (slave.devotion > 50) && (slave.prestige === 0)) { + if ((V.legendaryCowID === 0) && (slave.lactation > 0) && ((slave.boobs - slave.boobsImplant - slave.boobsMilk) > 6000) && (slave.devotion > 50) && (slave.prestige === 0)) { V.legendaryCowID = slave.ID; } if ((V.legendaryBallsID === 0) && (slave.dick !== 0) && (slave.balls > 5 || (slave.balls > 4 && slave.prostate > 1)) && (slave.devotion > 50) && (slave.prestige === 0)) { @@ -458,7 +454,7 @@ globalThis.dairyReport = function() { } if (V.dairyRestraintsSetting > 1) { slave.collar = "none"; - slave.faceAccessory = "none"; + slave.faceAccessory = "none"; slave.mouthAccessory = "none"; slave.choosesOwnClothes = 0; slave.clothes = "no clothing"; @@ -549,15 +545,15 @@ globalThis.dairyReport = function() { if ((slave.lactation > 0) && ((V.dairySlimMaintain === 0) || (slave.boobs > 700))) { if (slave.boobs < 2000) { _growth = 100; - } else if ((slave.boobs < 5000*_gigantomastiaMod)) { + } else if ((slave.boobs < 5000 * _gigantomastiaMod)) { _growth = 50; - } else if ((slave.boobs < 10000*_gigantomastiaMod)) { + } else if ((slave.boobs < 10000 * _gigantomastiaMod)) { _growth = 25; } else { _growth = 0; } if (slave.geneMods.NCS === 1) { - _growth = Math.trunc(_growth/2); + _growth = Math.trunc(_growth / 2); } slave.boobs += _growth; } @@ -609,20 +605,20 @@ globalThis.dairyReport = function() { if (slave.boobs < 50000) { if (V.arcologies[0].FSAssetExpansionistResearch === 1) { if (slave.boobs < 2000) { - _growth = 75*Math.trunc((V.injectionUpgrade*2)+V.dairyFeedersSetting+V.dairyRestraintsSetting+((50)/4)); - } else if ((slave.boobs < 5000*_gigantomastiaMod)) { - _growth = 50*Math.trunc((V.injectionUpgrade*2)+V.dairyFeedersSetting+V.dairyRestraintsSetting+((50)/4)); + _growth = 75 * Math.trunc((V.injectionUpgrade * 2) + V.dairyFeedersSetting + V.dairyRestraintsSetting + ((50) / 4)); + } else if ((slave.boobs < 5000 * _gigantomastiaMod)) { + _growth = 50 * Math.trunc((V.injectionUpgrade * 2) + V.dairyFeedersSetting + V.dairyRestraintsSetting + ((50) / 4)); } else { - _growth = 25*Math.trunc((V.injectionUpgrade*2)+V.dairyFeedersSetting+V.dairyRestraintsSetting+((50)/4)); + _growth = 25 * Math.trunc((V.injectionUpgrade * 2) + V.dairyFeedersSetting + V.dairyRestraintsSetting + ((50) / 4)); } } else { - _growth = 25*Math.trunc((V.injectionUpgrade*2)+V.dairyFeedersSetting+V.dairyRestraintsSetting+((50-slave.physicalAge)/4)); + _growth = 25 * Math.trunc((V.injectionUpgrade * 2) + V.dairyFeedersSetting + V.dairyRestraintsSetting + ((50 - slave.physicalAge) / 4)); } - if (slave.boobs <= 20000 && slave.boobs+_growth > 20000) { + if (slave.boobs <= 20000 && slave.boobs + _growth > 20000) { _boobtacular++; } if (slave.geneMods.NCS === 1) { - _growth = Math.trunc(_growth/2); + _growth = Math.trunc(_growth / 2); } slave.boobs += _growth; } else { @@ -632,20 +628,20 @@ globalThis.dairyReport = function() { if (slave.boobs < 25000) { if (V.arcologies[0].FSAssetExpansionistResearch === 1) { if (slave.boobs < 2000) { - _growth = 75*Math.trunc((V.injectionUpgrade*2)+V.dairyFeedersSetting+V.dairyRestraintsSetting+((50)/4)); - } else if ((slave.boobs < 5000*_gigantomastiaMod)) { - _growth = 50*Math.trunc((V.injectionUpgrade*2)+V.dairyFeedersSetting+V.dairyRestraintsSetting+((50)/4)); + _growth = 75 * Math.trunc((V.injectionUpgrade * 2) + V.dairyFeedersSetting + V.dairyRestraintsSetting + ((50) / 4)); + } else if ((slave.boobs < 5000 * _gigantomastiaMod)) { + _growth = 50 * Math.trunc((V.injectionUpgrade * 2) + V.dairyFeedersSetting + V.dairyRestraintsSetting + ((50) / 4)); } else { - _growth = 25*Math.trunc((V.injectionUpgrade*2)+V.dairyFeedersSetting+V.dairyRestraintsSetting+((50)/4)); + _growth = 25 * Math.trunc((V.injectionUpgrade * 2) + V.dairyFeedersSetting + V.dairyRestraintsSetting + ((50) / 4)); } } else { - _growth = 25*Math.trunc((V.injectionUpgrade*2)+V.dairyFeedersSetting+V.dairyRestraintsSetting+((50-slave.physicalAge)/4)); + _growth = 25 * Math.trunc((V.injectionUpgrade * 2) + V.dairyFeedersSetting + V.dairyRestraintsSetting + ((50 - slave.physicalAge) / 4)); } - if (slave.boobs <= 20000 && slave.boobs+_growth > 20000) { + if (slave.boobs <= 20000 && slave.boobs + _growth > 20000) { _boobtacular++; } if (slave.geneMods.NCS === 1) { - _growth = Math.trunc(_growth/2); + _growth = Math.trunc(_growth / 2); } slave.boobs += _growth; } @@ -653,20 +649,20 @@ globalThis.dairyReport = function() { if (slave.boobs < 10000) { if (V.arcologies[0].FSAssetExpansionistResearch === 1) { if (slave.boobs < 2000) { - _growth = 75*Math.trunc((V.injectionUpgrade*2)+V.dairyFeedersSetting+V.dairyRestraintsSetting+((50)/4)); - } else if ((slave.boobs < 5000*_gigantomastiaMod)) { - _growth = 50*Math.trunc((V.injectionUpgrade*2)+V.dairyFeedersSetting+V.dairyRestraintsSetting+((50)/4)); + _growth = 75 * Math.trunc((V.injectionUpgrade * 2) + V.dairyFeedersSetting + V.dairyRestraintsSetting + ((50) / 4)); + } else if ((slave.boobs < 5000 * _gigantomastiaMod)) { + _growth = 50 * Math.trunc((V.injectionUpgrade * 2) + V.dairyFeedersSetting + V.dairyRestraintsSetting + ((50) / 4)); } else { - _growth = 25*Math.trunc((V.injectionUpgrade*2)+V.dairyFeedersSetting+V.dairyRestraintsSetting+((50)/4)); + _growth = 25 * Math.trunc((V.injectionUpgrade * 2) + V.dairyFeedersSetting + V.dairyRestraintsSetting + ((50) / 4)); } } else { - _growth = 25*Math.trunc((V.injectionUpgrade*2)+V.dairyFeedersSetting+V.dairyRestraintsSetting+((50-slave.physicalAge)/4)); + _growth = 25 * Math.trunc((V.injectionUpgrade * 2) + V.dairyFeedersSetting + V.dairyRestraintsSetting + ((50 - slave.physicalAge) / 4)); } - if (slave.boobs <= 20000 && slave.boobs+_growth > 20000) { + if (slave.boobs <= 20000 && slave.boobs + _growth > 20000) { _boobtacular++; } if (slave.geneMods.NCS === 1) { - _growth = Math.trunc(_growth/2); + _growth = Math.trunc(_growth / 2); } slave.boobs += _growth; } @@ -674,20 +670,20 @@ globalThis.dairyReport = function() { if (slave.boobs < 5000) { if (V.arcologies[0].FSAssetExpansionistResearch === 1) { if (slave.boobs < 2000) { - _growth = 75*Math.trunc((V.injectionUpgrade*2)+V.dairyFeedersSetting+V.dairyRestraintsSetting+((50)/4)); - } else if ((slave.boobs < 5000*_gigantomastiaMod)) { - _growth = 50*Math.trunc((V.injectionUpgrade*2)+V.dairyFeedersSetting+V.dairyRestraintsSetting+((50)/4)); + _growth = 75 * Math.trunc((V.injectionUpgrade * 2) + V.dairyFeedersSetting + V.dairyRestraintsSetting + ((50) / 4)); + } else if ((slave.boobs < 5000 * _gigantomastiaMod)) { + _growth = 50 * Math.trunc((V.injectionUpgrade * 2) + V.dairyFeedersSetting + V.dairyRestraintsSetting + ((50) / 4)); } else { - _growth = 25*Math.trunc((V.injectionUpgrade*2)+V.dairyFeedersSetting+V.dairyRestraintsSetting+((50)/4)); + _growth = 25 * Math.trunc((V.injectionUpgrade * 2) + V.dairyFeedersSetting + V.dairyRestraintsSetting + ((50) / 4)); } } else { - _growth = 25*Math.trunc((V.injectionUpgrade*2)+V.dairyFeedersSetting+V.dairyRestraintsSetting+((50-slave.physicalAge)/4)); + _growth = 25 * Math.trunc((V.injectionUpgrade * 2) + V.dairyFeedersSetting + V.dairyRestraintsSetting + ((50 - slave.physicalAge) / 4)); } - if (slave.boobs <= 20000 && slave.boobs+_growth > 20000) { + if (slave.boobs <= 20000 && slave.boobs + _growth > 20000) { _boobtacular++; } if (slave.geneMods.NCS === 1) { - _growth = Math.trunc(_growth/2); + _growth = Math.trunc(_growth / 2); } slave.boobs += _growth; } @@ -697,7 +693,7 @@ globalThis.dairyReport = function() { if (V.arcologies[0].FSAssetExpansionistResearch === 1) { if (slave.geneMods.NCS === 0 && slave.balls < 125) { slave.balls++; - } else if ((slave.geneMods.NCS === 1) && (slave.balls < 125) && (random(1, 600) > (30+(10*slave.balls)-(10*V.dairyRestraintsSetting)-(V.injectionUpgrade*10)))) { + } else if ((slave.geneMods.NCS === 1) && (slave.balls < 125) && (random(1, 600) > (30 + (10 * slave.balls) - (10 * V.dairyRestraintsSetting) - (V.injectionUpgrade * 10)))) { slave.balls++; } if (slave.balls >= 125) { @@ -705,9 +701,9 @@ globalThis.dairyReport = function() { _btSlave = slave; } } else if ((slave.balls < 10)) { - if ((slave.geneMods.NCS === 0) && (random(1, 100) > (40+(10*slave.balls)-(10*V.dairyRestraintsSetting)-(V.injectionUpgrade*10)))) { + if ((slave.geneMods.NCS === 0) && (random(1, 100) > (40 + (10 * slave.balls) - (10 * V.dairyRestraintsSetting) - (V.injectionUpgrade * 10)))) { slave.balls++; - } else if ((slave.geneMods.NCS === 1) && (slave.balls < 125) && (random(1, 50) > (40+(10*slave.balls)-(10*V.dairyRestraintsSetting)-(V.injectionUpgrade*10)))) { + } else if ((slave.geneMods.NCS === 1) && (slave.balls < 125) && (random(1, 50) > (40 + (10 * slave.balls) - (10 * V.dairyRestraintsSetting) - (V.injectionUpgrade * 10)))) { slave.balls++; } if (slave.balls >= 10) { @@ -717,9 +713,9 @@ globalThis.dairyReport = function() { } if (slave.dick > 0) { if (slave.dick < 10) { - if ((slave.geneMods.NCS === 0) && (random(1, 100) > (40+(10*slave.dick)-(10*V.dairyRestraintsSetting)-(V.injectionUpgrade*10)))) { + if ((slave.geneMods.NCS === 0) && (random(1, 100) > (40 + (10 * slave.dick) - (10 * V.dairyRestraintsSetting) - (V.injectionUpgrade * 10)))) { slave.dick++; - } else if (((slave.geneMods.NCS === 1) && (random(1, 50) > (40+(10*slave.dick)-(10*V.dairyRestraintsSetting)-(V.injectionUpgrade*10))))) { + } else if (((slave.geneMods.NCS === 1) && (random(1, 50) > (40 + (10 * slave.dick) - (10 * V.dairyRestraintsSetting) - (V.injectionUpgrade * 10))))) { slave.dick++; } } @@ -744,20 +740,20 @@ globalThis.dairyReport = function() { if (slave.boobs < 50000) { if (V.arcologies[0].FSAssetExpansionistResearch === 1) { if (slave.boobs < 2000) { - _growth = 75*Math.trunc((V.injectionUpgrade*2)+V.dairyFeedersSetting+V.dairyRestraintsSetting+((50)/4)); - } else if ((slave.boobs < 5000*_gigantomastiaMod)) { - _growth = 50*Math.trunc((V.injectionUpgrade*2)+V.dairyFeedersSetting+V.dairyRestraintsSetting+((50)/4)); + _growth = 75 * Math.trunc((V.injectionUpgrade * 2) + V.dairyFeedersSetting + V.dairyRestraintsSetting + ((50) / 4)); + } else if ((slave.boobs < 5000 * _gigantomastiaMod)) { + _growth = 50 * Math.trunc((V.injectionUpgrade * 2) + V.dairyFeedersSetting + V.dairyRestraintsSetting + ((50) / 4)); } else { - _growth = 25*Math.trunc((V.injectionUpgrade*2)+V.dairyFeedersSetting+V.dairyRestraintsSetting+((50)/4)); + _growth = 25 * Math.trunc((V.injectionUpgrade * 2) + V.dairyFeedersSetting + V.dairyRestraintsSetting + ((50) / 4)); } } else { - _growth = 25*Math.trunc((V.injectionUpgrade*2)+V.dairyFeedersSetting+V.dairyRestraintsSetting+((50-slave.physicalAge)/4)); + _growth = 25 * Math.trunc((V.injectionUpgrade * 2) + V.dairyFeedersSetting + V.dairyRestraintsSetting + ((50 - slave.physicalAge) / 4)); } - if (slave.boobs <= 20000 && slave.boobs+_growth > 20000) { + if (slave.boobs <= 20000 && slave.boobs + _growth > 20000) { _boobtacular++; } if (slave.geneMods.NCS === 1) { - _growth = Math.trunc(_growth/2); + _growth = Math.trunc(_growth / 2); } slave.boobs += _growth; } @@ -765,20 +761,20 @@ globalThis.dairyReport = function() { if (slave.boobs < 25000) { if (V.arcologies[0].FSAssetExpansionistResearch === 1) { if (slave.boobs < 2000) { - _growth = 75*Math.trunc((V.injectionUpgrade*2)+V.dairyFeedersSetting+V.dairyRestraintsSetting+((50)/4)); - } else if ((slave.boobs < 5000*_gigantomastiaMod)) { - _growth = 50*Math.trunc((V.injectionUpgrade*2)+V.dairyFeedersSetting+V.dairyRestraintsSetting+((50)/4)); + _growth = 75 * Math.trunc((V.injectionUpgrade * 2) + V.dairyFeedersSetting + V.dairyRestraintsSetting + ((50) / 4)); + } else if ((slave.boobs < 5000 * _gigantomastiaMod)) { + _growth = 50 * Math.trunc((V.injectionUpgrade * 2) + V.dairyFeedersSetting + V.dairyRestraintsSetting + ((50) / 4)); } else { - _growth = 25*Math.trunc((V.injectionUpgrade*2)+V.dairyFeedersSetting+V.dairyRestraintsSetting+((50)/4)); + _growth = 25 * Math.trunc((V.injectionUpgrade * 2) + V.dairyFeedersSetting + V.dairyRestraintsSetting + ((50) / 4)); } } else { - _growth = 25*Math.trunc((V.injectionUpgrade*2)+V.dairyFeedersSetting+V.dairyRestraintsSetting+((50-slave.physicalAge)/4)); + _growth = 25 * Math.trunc((V.injectionUpgrade * 2) + V.dairyFeedersSetting + V.dairyRestraintsSetting + ((50 - slave.physicalAge) / 4)); } - if (slave.boobs <= 20000 && slave.boobs+_growth > 20000) { + if (slave.boobs <= 20000 && slave.boobs + _growth > 20000) { _boobtacular++; } if (slave.geneMods.NCS === 1) { - _growth = Math.trunc(_growth/2); + _growth = Math.trunc(_growth / 2); } slave.boobs += _growth; } @@ -786,20 +782,20 @@ globalThis.dairyReport = function() { if (slave.boobs < 10000) { if (V.arcologies[0].FSAssetExpansionistResearch === 1) { if (slave.boobs < 2000) { - _growth = 75*Math.trunc((V.injectionUpgrade*2)+V.dairyFeedersSetting+V.dairyRestraintsSetting+((50)/4)); - } else if ((slave.boobs < 5000*_gigantomastiaMod)) { - _growth = 50*Math.trunc((V.injectionUpgrade*2)+V.dairyFeedersSetting+V.dairyRestraintsSetting+((50)/4)); + _growth = 75 * Math.trunc((V.injectionUpgrade * 2) + V.dairyFeedersSetting + V.dairyRestraintsSetting + ((50) / 4)); + } else if ((slave.boobs < 5000 * _gigantomastiaMod)) { + _growth = 50 * Math.trunc((V.injectionUpgrade * 2) + V.dairyFeedersSetting + V.dairyRestraintsSetting + ((50) / 4)); } else { - _growth = 25*Math.trunc((V.injectionUpgrade*2)+V.dairyFeedersSetting+V.dairyRestraintsSetting+((50)/4)); + _growth = 25 * Math.trunc((V.injectionUpgrade * 2) + V.dairyFeedersSetting + V.dairyRestraintsSetting + ((50) / 4)); } } else { - _growth = 25*Math.trunc((V.injectionUpgrade*2)+V.dairyFeedersSetting+V.dairyRestraintsSetting+((50-slave.physicalAge)/4)); + _growth = 25 * Math.trunc((V.injectionUpgrade * 2) + V.dairyFeedersSetting + V.dairyRestraintsSetting + ((50 - slave.physicalAge) / 4)); } - if (slave.boobs <= 20000 && slave.boobs+_growth > 20000) { + if (slave.boobs <= 20000 && slave.boobs + _growth > 20000) { _boobtacular++; } if (slave.geneMods.NCS === 1) { - _growth = Math.trunc(_growth/2); + _growth = Math.trunc(_growth / 2); } slave.boobs += _growth; } @@ -811,7 +807,7 @@ globalThis.dairyReport = function() { slave.lactationAdaptation += 1; } if (slave.muscles > -100) { - slave.muscles -= 1+slave.geneticQuirks.mLoss; + slave.muscles -= 1 + slave.geneticQuirks.mLoss; } if (slave.fetish === "mindbroken") { if ((slave.boobs > 48000) && ((slave.balls >= 10) || (slave.balls === 0))) { @@ -881,7 +877,7 @@ globalThis.dairyReport = function() { _careerForgotten++; _cfSlave = slave; } else if ((slave.intelligenceImplant > 0)) { - slave.intelligenceImplant = Math.clamp(slave.intelligenceImplant-5, 0, 30); + slave.intelligenceImplant = Math.clamp(slave.intelligenceImplant - 5, 0, 30); _skillsLost++; _slSlave = slave; } else if ((slave.intelligence >= -15)) { @@ -952,7 +948,7 @@ globalThis.dairyReport = function() { _careerForgotten++; _cfSlave = slave; } else if ((slave.intelligenceImplant > 0)) { - slave.intelligenceImplant = Math.clamp(slave.intelligenceImplant-5, 0, 30); + slave.intelligenceImplant = Math.clamp(slave.intelligenceImplant - 5, 0, 30); _skillsLost++; _slSlave = slave; } else if ((slave.intelligence >= -15)) { @@ -1039,10 +1035,10 @@ globalThis.dairyReport = function() { } if (_inflatedSlaves.milk > 0) { - _milkWeek -= ((8*_inflatedSlaves.milk*10)+8); + _milkWeek -= ((8 * _inflatedSlaves.milk * 10) + 8); } if (_inflatedSlaves.cum > 0) { - _cumWeek -= ((80*_inflatedSlaves.cum*10)+80); + _cumWeek -= ((80 * _inflatedSlaves.cum * 10) + 80); if (_cumWeek < 0) { _cumWeek = 0; } @@ -1052,66 +1048,64 @@ globalThis.dairyReport = function() { const _tempCash = V.cash; let _seed; - _seed = (_BF.XY.cum*V.bioreactorsXY) + (_BF.herm.cum*V.bioreactorsHerm); + _seed = (_BF.XY.cum * V.bioreactorsXY) + (_BF.herm.cum * V.bioreactorsHerm); _cumWeek += _seed; if (V.arcologies[0].FSPastoralistLaw === 1) { - _cashX = _seed*random(40, 50); + _cashX = _seed * random(40, 50); cashX(_cashX, "menialBioreactors"); } else if ((V.arcologies[0].FSPastoralist !== "unset")) { - _cashX = _seed*(random(25, 35)+Math.trunc(V.arcologies[0].FSPastoralist/10)); + _cashX = _seed * (random(25, 35) + Math.trunc(V.arcologies[0].FSPastoralist / 10)); cashX(_cashX, "menialBioreactors"); } else { - _cashX = _seed*random(25, 35); + _cashX = _seed * random(25, 35); cashX(_cashX, "menialBioreactors"); } - _seed = (_BF.XX.femCum*V.bioreactorsXX) + (_BF.herm.femCum*V.bioreactorsHerm); + _seed = (_BF.XX.femCum * V.bioreactorsXX) + (_BF.herm.femCum * V.bioreactorsHerm); _femCumWeek += _seed; if (V.arcologies[0].FSPastoralistLaw === 1) { - _cashX = _seed*random(40, 50); + _cashX = _seed * random(40, 50); cashX(_cashX, "menialBioreactors"); } else if ((V.arcologies[0].FSPastoralist !== "unset")) { - _cashX = _seed*(random(25, 35)+Math.trunc(V.arcologies[0].FSPastoralist/10)); + _cashX = _seed * (random(25, 35) + Math.trunc(V.arcologies[0].FSPastoralist / 10)); cashX(_cashX, "menialBioreactors"); } else { - _cashX = _seed*random(25, 35); + _cashX = _seed * random(25, 35); cashX(_cashX, "menialBioreactors"); } - _seed = (_BF.XX.milk*V.bioreactorsXX) + (_BF.barren.milk*V.bioreactorsBarren) + (_BF.XY.milk*V.bioreactorsXY) + (_BF.herm.milk*V.bioreactorsHerm); + _seed = (_BF.XX.milk * V.bioreactorsXX) + (_BF.barren.milk * V.bioreactorsBarren) + (_BF.XY.milk * V.bioreactorsXY) + (_BF.herm.milk * V.bioreactorsHerm); _milkWeek += _seed; if (V.arcologies[0].FSPastoralist !== "unset" && V.arcologies[0].FSPastoralistLaw === 1) { - _cashX = _seed*(13+Math.trunc(V.arcologies[0].FSPastoralist/30)); + _cashX = _seed * (13 + Math.trunc(V.arcologies[0].FSPastoralist / 30)); cashX(_cashX, "menialBioreactors"); } else if ((V.arcologies[0].FSPastoralist !== "unset")) { - _cashX = _seed*(8+Math.trunc(V.arcologies[0].FSPastoralist/30)); + _cashX = _seed * (8 + Math.trunc(V.arcologies[0].FSPastoralist / 30)); cashX(_cashX, "menialBioreactors"); } else { - _cashX = _seed*9; + _cashX = _seed * 9; cashX(_cashX, "menialBioreactors"); } // <br><br> - r.push(`${_Tadd} permanently converted biological "machine`); + r.push(`${_Tadd} permanently converted biological`); if (_Tadd > 1) { - r.push(`s`); - } - r.push(`" produce`); - if (_Tadd === 1) { - r.push(`s`); + r.push(`"machines" produce`); + } else { + r.push(`"machine" produces`); } - r.push(` <span class="yellowgreen">${cashFormat(V.cash-_tempCash)}</span> income.`); + r.push(`<span class="yellowgreen">${cashFormat(V.cash - _tempCash)}</span> income.`); } if (_inflatedSlaves.milk > 0) { - _cashX -= Math.trunc(((600*(_inflatedSlaves.milk)+8)+random(50, 200))); + _cashX -= Math.trunc(((600 * (_inflatedSlaves.milk) + 8) + random(50, 200))); cashX(_cashX, "slaveAssignmentDairy"); } if (_inflatedSlaves.cum > 0) { - _cashX -= Math.trunc(((300*(_inflatedSlaves.cum+8))+random(25, 100))); + _cashX -= Math.trunc(((300 * (_inflatedSlaves.cum + 8)) + random(25, 100))); cashX(_cashX, "slaveAssignmentDairy"); } - _profits = V.cash-_oldCash; + _profits = V.cash - _oldCash; // <br><br> if (_chemSevere > 1) { r.push(`${_chemSevere} cows' productivity is being reduced by the long term effects of industrial use.`); @@ -1215,24 +1209,24 @@ globalThis.dairyReport = function() { r.push(`Fertile cows make you a small profit through contract pregnancies.`); } } - _cumWeek = Math.trunc(_cumWeek/10); + _cumWeek = Math.trunc(_cumWeek / 10); V.cumPipeline = _cumWeek; V.milkPipeline = _milkWeek; if (_inflatedSlaves.milk > 0) { - _outputMilk = ((8*_inflatedSlaves.milk*10)+8); + _outputMilk = ((8 * _inflatedSlaves.milk * 10) + 8); } else { _outputMilk = 0; } if (_inflatedSlaves.cum > 0) { - _outputCum = (((80*_inflatedSlaves.cum*10)+80)/10); + _outputCum = (((80 * _inflatedSlaves.cum * 10) + 80) / 10); } else { _outputCum = 0; } - r.push(`${_dairyNameCaps} produced ${_milkWeek+_outputMilk} liters of milk`); + r.push(`${_dairyNameCaps} produced ${_milkWeek + _outputMilk} liters of milk`); if (_cumWeek > 0) { - r.push(` and ${_cumWeek+_outputCum} liters of cum`); + r.push(`and ${_cumWeek + _outputCum} liters of cum`); } - r.push(` this week.`); + r.push(`this week.`); if (_inflatedSlaves.milk > 0) { r.push(`${_outputMilk} liters of milk were pumped into your penthouse for filling slaves this week.`); } @@ -1242,27 +1236,26 @@ globalThis.dairyReport = function() { } r.push(`${_outputCum} liters of cum were pumped into your penthouse`); if (_inflatedSlaves.milk > 0) { - r.push(` as well`); + r.push(`as well.`); } else { - r.push(` this week`); + r.push(`this week.`); } - r.push(`.`); } if (_femCumWeek > 0) { - r.push(`The machines also managed to reclaim${_femCumWeek} liters of salable vaginal secretions.`); + r.push(`The machines also managed to reclaim ${_femCumWeek} liters of salable vaginal secretions.`); } if (_births > 1) { - r.push(`Additionally,${_birthers} cows gave birth`); + r.push(`Additionally, ${_birthers} cows gave birth`); if (_births > _birthers) { - r.push(` to a total of${_births} calves`); + r.push(`to a total of ${_births} calves`); } - r.push(` this week.`); + r.push(`this week.`); } else if (_births > 0) { r.push(`Additionally, one cow gave birth`); if (_births > _birthers) { - r.push(` to a total of${_births} calves`); + r.push(`to a total of${_births} calves`); } - r.push(` this week.`); + r.push(`this week.`); } if (V.arcologies[0].FSRestart !== "unset" && V.eugenicsFullControl !== 1) { @@ -1301,11 +1294,11 @@ globalThis.dairyReport = function() { } else if ((_profits < 0)) { r.push(`Due to `); if (V.dairyImplantsSetting !== 3) { - r.push(`one-off costs of hormonal implants to encourage fluid production`); + r.push(`one-off costs of hormonal implants to encourage fluid production,`); } else { - r.push(`the need to induce lactation in some cows`); + r.push(`the need to induce lactation in some cows,`); } - r.push(`, your dairy made a loss of <span class="red">${cashFormat(_profits)}.</span>`); + r.push(`your dairy made a loss of <span class="red">${cashFormat(_profits)}.</span>`); } else { r.push(`Due to `); if (V.dairyImplantsSetting !== 3) { @@ -1313,7 +1306,7 @@ globalThis.dairyReport = function() { } else { r.push(`the need to induce lactation in some cows`); } - r.push(` paired with existing output, your dairy broke even this week.`); + r.push(`paired with existing output, your dairy broke even this week.`); } if (V.arcologies[0].FSPastoralistLaw === 1) { @@ -1358,34 +1351,34 @@ globalThis.dairyReport = function() { ({ he, him, his, He, His, wife, girl } = getPronouns(slave)); - const _ageInWeeks = 52*(V.retirementAge-slave.physicalAge); + const _ageInWeeks = 52 * (V.retirementAge - slave.physicalAge); // <br><br> - r.push(`${SlaveFullName(slave)}'s breasts`); + r.push(`${SlaveFullName(slave)}'s breasts,`); if (slave.balls > 0) { - r.push(`, balls`); + r.push(`balls,`); } if (slave.ovaries === 1) { - r.push(`, belly`); + r.push(`belly,`); } - r.push(`, body, and mind have been completely adapted to synthesize useful products. ${He} has been reclassified as part of the machine ${he}'s now permanently attached to. This combination is projected to produce approximately`); + r.push(`body, and mind have been completely adapted to synthesize useful products. ${He} has been reclassified as part of the machine ${he}'s now permanently attached to. This combination is projected to produce approximately`); if (slave.balls > 0) { - r.push(`${1000*Math.trunc((_BF[_gender].cum*_ageInWeeks)/1000)}`); + r.push(1000 * Math.trunc((_BF[_gender].cum * _ageInWeeks) / 1000)); r.push(`liters of cum,`); } if (slave.ovaries === 1) { - r.push(`${100*Math.trunc((_BF[_gender].femCum*_ageInWeeks)/100)}`); + r.push(100 * Math.trunc((_BF[_gender].femCum * _ageInWeeks) / 100)); r.push(`liters of vaginal secretions,`); if (V.dairyPregSetting === 3) { - r.push(`${13*(V.retirementAge-slave.physicalAge)}`); + r.push(13 * (V.retirementAge - slave.physicalAge)); } else { - r.push(`${5*(V.retirementAge-slave.physicalAge)}`); + r.push(5 * (V.retirementAge - slave.physicalAge)); } r.push(`slaves,`); } r.push(`and`); - r.push(`${1000*Math.trunc((_BF[_gender].milk*_ageInWeeks)/1000)}`); + r.push(1000 * Math.trunc((_BF[_gender].milk * _ageInWeeks) / 1000)); r.push(`liters of milk over a`); - r.push(`${V.retirementAge-slave.physicalAge}`); + r.push(V.retirementAge - slave.physicalAge); r.push(`year period before its biological components must be replaced.`); removeSlave(slave); break; @@ -1395,7 +1388,7 @@ globalThis.dairyReport = function() { if (V.dairyDecoration !== "standard") { // <br><br> - r.push(`${_dairyNameCaps}'s <span class="green">V.dairyDecoration style is well known.</span>`); + App.UI.DOM.appendNewElement("p", el, `${_dairyNameCaps}'s <span class="green">${V.dairyDecoration} style is well known.</span>`); } if (_DL > 0) { @@ -1403,4 +1396,5 @@ globalThis.dairyReport = function() { el.append(App.Facilities.Brothel.Stats(false)); dairyStats.append(App.Facilities.Dairy.Stats(true)); } + return el; };