From 22cc2085d808ce82cb4d5d34201ec19f2abd97f5 Mon Sep 17 00:00:00 2001 From: lowercasedonkey <lowercasedonkey@gmail.com> Date: Thu, 5 Nov 2020 18:52:38 -0500 Subject: [PATCH] first hand review --- src/endWeek/reports/dairyReport.js | 1408 +++++++++++++++------------- 1 file changed, 752 insertions(+), 656 deletions(-) diff --git a/src/endWeek/reports/dairyReport.js b/src/endWeek/reports/dairyReport.js index 98508272bd7..54d2ea9face 100644 --- a/src/endWeek/reports/dairyReport.js +++ b/src/endWeek/reports/dairyReport.js @@ -1,111 +1,138 @@ globalThis.dairyReport = function() { + const el = new DocumentFragment(); + let r = []; + const dairyStats = document.createElement("div"); + el.append(dairyStats); - <span id="dairy-stats"> - </span> + // <span id="dairy-stats"></span> - _MMWorkout = 0; - _BF = App.Data.misc.bioreactorFluids; - _slaves = App.Utils.sortedEmployees(App.Entity.facilities.dairy); - _DL = _slaves.length, _SL = V.slaves.length, V.bioreactorPerfectedID = 0, V.legendaryBallsID = 0, V.legendaryCowID = 0, V.milkmaidDevotionBonus = 1, V.milkmaidHealthBonus = 0, V.milkmaidTrustBonus = 1, V.milkmaidDevotionThreshold = 45, V.milkmaidTrustThreshold = 35, _anusesStretched = 0, _birthers = 0, _births = 0, _cumWeek = 0, _femCumWeek = 0, _FLsFetish = 0, _milkWeek = 0, _balltacular = 0, _boobtacular = 0, _careerForgotten = 0, _chemMinor = 0, _chemSevere = 0, _desterilized = 0, _hateFilled = 0, _horrified = 0, _intelligenceLost = 0, _mindbroken = 0, _profits = 0, _skillsLost = 0, _stupidified = 0, _vaginasStretched = 0, _cmSlave = 0, _dsSlave = 0, _hfSlave = 0, _hrSlave = 0, _slSlave = 0, _cfSlave = 0, _stSlave = 0, _btSlave = 0, _inflatedSlaves = App.Facilities.Dairy.inflation(); + let _MMWorkout = 0; + let _BF = App.Data.misc.bioreactorFluids; + let _slaves = App.Utils.sortedEmployees(App.Entity.facilities.dairy); + let _DL = _slaves.length; + let _anusesStretched = 0, _birthers = 0, _births = 0, _cumWeek = 0, _femCumWeek = 0, _FLsFetish = 0, _milkWeek = 0, _balltacular = 0, _boobtacular = 0, _careerForgotten = 0, _chemMinor = 0, _chemSevere = 0, _desterilized = 0, _hateFilled = 0, _horrified = 0, _intelligenceLost = 0, _mindbroken = 0, _profits = 0, _skillsLost = 0, _stupidified = 0, _vaginasStretched = 0, _cmSlave = 0, _dsSlave = 0, _hfSlave = 0, _hrSlave = 0, _slSlave = 0, _cfSlave = 0, _stSlave = 0, _btSlave = 0, _inflatedSlaves = App.Facilities.Dairy.inflation(); + V.bioreactorPerfectedID = 0; + V.legendaryBallsID = 0; + V.legendaryCowID = 0; + V.milkmaidDevotionBonus = 1; + V.milkmaidHealthBonus = 0; + V.milkmaidTrustBonus = 1; + V.milkmaidDevotionThreshold = 45; + V.milkmaidTrustThreshold = 35; + let He, His, he, his, him, himself, wife, girl; + let He2, His2, he2, his2, him2, himself2, wife2, girl2; + let _Tadd; + let _milkResults; + let _growth; + let _cashX; + let _outputMilk; + let _outputCum; - <!-- Statistics gathering --> - V.facility = V.facility || {}, V.facility.dairy = initFacilityStatistics(V.facility.dairy); + // Statistics gathering + V.facility = V.facility || {}; + V.facility.dairy = initFacilityStatistics(V.facility.dairy); - _dairyNameCaps = capFirstChar(V.dairyName); + const _dairyNameCaps = capFirstChar(V.dairyName); if (V.MilkmaidID !== 0) { - _FLs = V.slaveIndices[V.MilkmaidID]; - _milkmaidImpregnated = 0, _milkers = 0, _cummers = 0, _breeders = 0, _prostateStim = 0; + const _FLs = V.slaveIndices[V.MilkmaidID]; + let _milkmaidImpregnated = 0, _milkers = 0, _cummers = 0, _breeders = 0, _prostateStim = 0; if (_DL > 0) { - <<for _slave range _slaves>> - if (_slave.lactation > 0) { + for (const i in _slaves) { + const slave = _slaves[i]; + if (slave.lactation > 0) { _milkers++; } - if (_slave.balls > 0 && _slave.ballType === "human") { + if (slave.balls > 0 && slave.ballType === "human") { _cummers++; } - if (_slave.bellyPreg >= 500 && V.dairyPregSetting > 0) { + if (slave.bellyPreg >= 500 && V.dairyPregSetting > 0) { _breeders++; } - if (V.milkmaidImpregnates === 1) && (canPenetrate(S.Milkmaid)) && S.Milkmaid.pubertyXY === 1 && !slaveResting(S.Milkmaid) { - if (canImpreg(_slave, S.Milkmaid)) { - _slave.preg = 1, _slave.pregSource = V.MilkmaidID, _slave.pregKnown = 1, _slave.pregWeek = 1, _milkmaidImpregnated++; - if (_slave.mpreg === 1) { - _slave.counter.anal += 10, V.analTotal += 10; + if ((V.milkmaidImpregnates === 1) && (canPenetrate(S.Milkmaid)) && S.Milkmaid.pubertyXY === 1 && !slaveResting(S.Milkmaid)) { + if (canImpreg(slave, S.Milkmaid)) { + slave.preg = 1; + slave.pregSource = V.MilkmaidID; + slave.pregKnown = 1; + slave.pregWeek = 1; + _milkmaidImpregnated++; + if (slave.mpreg === 1) { + slave.counter.anal += 10; + V.analTotal += 10; } else { - _slave.counter.vaginal += 10, V.vaginalTotal += 10; + slave.counter.vaginal += 10; + V.vaginalTotal += 10; } - _slave.pregType = setPregType(_slave); - WombImpregnate(_slave, _slave.pregType, V.MilkmaidID, 1); + slave.pregType = setPregType(slave); + WombImpregnate(slave, slave.pregType, V.MilkmaidID, 1); } } /* how much effort the MM must take to force a slave into a stall */ - if (_slave.devotion <= 20) { + if (slave.devotion <= 20) { _MMWorkout++; } - if (_slave.trust < 20) { + if (slave.trust < 20) { _MMWorkout++; } - if (_slave.muscles >= 30 || _slave.muscles < -30) { + if (slave.muscles >= 30 || slave.muscles < -30) { _MMWorkout++; } - if (_slave.weight >= 70) { + if (slave.weight >= 70) { _MMWorkout++; } - if (_slave.weight >= 160) { + if (slave.weight >= 160) { _MMWorkout++; } - if (_slave.boobs >= 20000) { + if (slave.boobs >= 20000) { _MMWorkout++; } - if (_slave.balls >= 30) { + if (slave.balls >= 30) { _MMWorkout++; } - if (_slave.belly >= 5000) { + if (slave.belly >= 5000) { _MMWorkout++; } - if (!canMove(_slave)) { - r.push(` /* big bonus if they can't move themselves and are fat as cows */`); - if (_slave.weight >= 70) { + if (!canMove(slave)) { // big bonus if they can't move themselves and are fat as cows + if (slave.weight >= 70) { _MMWorkout += 2; } - if (_slave.weight >= 160) { + if (slave.weight >= 160) { _MMWorkout += 2; } - if (_slave.boobs >= 20000) { + if (slave.boobs >= 20000) { _MMWorkout += 2; } - if (_slave.balls >= 30) { + if (slave.balls >= 30) { _MMWorkout += 2; } - if (_slave.belly >= 5000) { + 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 */`); - if (_slave.weight >= 70) { + } else if (!canWalk(slave)) { + r.push(` /* smaller bonus if they are fat as cows and need assistance with moving */`); + if (slave.weight >= 70) { _MMWorkout += 1; } - if (_slave.weight >= 160) { + if (slave.weight >= 160) { _MMWorkout += 1; } - if (_slave.boobs >= 20000) { + if (slave.boobs >= 20000) { _MMWorkout += 1; } - if (_slave.balls >= 30) { + if (slave.balls >= 30) { _MMWorkout += 1; } - if (_slave.belly >= 5000) { + if (slave.belly >= 5000) { _MMWorkout += 1; } } - if (V.dairyStimulatorsSetting < 2) && (S.Milkmaid.dick > 4) && (canPenetrate(S.Milkmaid)) && _prostateStim !== 1 { - if (_slave.balls > 0) && (_slave.prostate > 0) { + if ((V.dairyStimulatorsSetting < 2) && (S.Milkmaid.dick > 4) && (canPenetrate(S.Milkmaid)) && _prostateStim !== 1) { + if ((slave.balls > 0) && (slave.prostate > 0)) { _prostateStim = 1; } } - <</for>> + } } if (S.Milkmaid.health.condition < 90) { @@ -137,54 +164,66 @@ globalThis.dairyReport = function() { if (S.Milkmaid.fetishStrength <= 95) { if (_milkers >= _cummers && _milkers >= _breeders) { if (S.Milkmaid.fetish !== "boobs") { - if (fetishChangeChance(S.Milkmaid) > random(0,100)) { - _FLsFetish = 1, S.Milkmaid.fetishKnown = 1, S.Milkmaid.fetish = "boobs"; + if (fetishChangeChance(S.Milkmaid) > random(0, 100)) { + _FLsFetish = 1; + S.Milkmaid.fetishKnown = 1; + S.Milkmaid.fetish = "boobs"; } } else if (S.Milkmaid.fetishKnown === 0) { - _FLsFetish = 1, S.Milkmaid.fetishKnown = 1; + _FLsFetish = 1; + S.Milkmaid.fetishKnown = 1; } else { - _FLsFetish = 2, S.Milkmaid.fetishStrength += 4; + _FLsFetish = 2; + S.Milkmaid.fetishStrength += 4; } } else if (_cummers >= _breeders) { if (S.Milkmaid.fetish !== "cumslut") { - if (fetishChangeChance(S.Milkmaid) > random(0,100)) { - _FLsFetish = 3, S.Milkmaid.fetishKnown = 1, S.Milkmaid.fetish = "cumslut"; + if (fetishChangeChance(S.Milkmaid) > random(0, 100)) { + _FLsFetish = 3; + S.Milkmaid.fetishKnown = 1; + S.Milkmaid.fetish = "cumslut"; } } else if (S.Milkmaid.fetishKnown === 0) { - _FLsFetish = 3, S.Milkmaid.fetishKnown = 1; + _FLsFetish = 3; + S.Milkmaid.fetishKnown = 1; } else { - _FLsFetish = 4, S.Milkmaid.fetishStrength += 4; + _FLsFetish = 4; + S.Milkmaid.fetishStrength += 4; } } else { if (S.Milkmaid.fetish !== "pregnancy") { - if (fetishChangeChance(S.Milkmaid) > random(0,100)) { - _FLsFetish = 5, S.Milkmaid.fetishKnown = 1, S.Milkmaid.fetish = "pregnancy"; + if (fetishChangeChance(S.Milkmaid) > random(0, 100)) { + _FLsFetish = 5; + S.Milkmaid.fetishKnown = 1; + S.Milkmaid.fetish = "pregnancy"; } } else if (S.Milkmaid.fetishKnown === 0) { - _FLsFetish = 5, S.Milkmaid.fetishKnown = 1; + _FLsFetish = 5; + S.Milkmaid.fetishKnown = 1; } else { - _FLsFetish = 6, S.Milkmaid.fetishStrength += 4; + _FLsFetish = 6; + S.Milkmaid.fetishStrength += 4; } } } getSlaveStatisticData(S.Milkmaid, V.facility.dairy); V.i = _FLs; - <<setLocalPronouns S.Milkmaid>> - - V.SlaveFullName(S.Milkmaid) - r.push(` is serving as your Milkmaid.`); + ({ + he, him, his, himself, He, His, wife, girl + } = getPronouns(S.Milkmaid)); + // + r.push(`${SlaveFullName(S.Milkmaid)} is serving as your Milkmaid.`); if (S.Milkmaid.relationship === -3 && S.Milkmaid.devotion > 50) { - V.milkmaidDevotionBonus += 2, V.milkmaidTrustBonus += 2; - r.push(`${He} tries ${his} best to be your perfect farm`); - V.V.wife - r.push(`.`); + V.milkmaidDevotionBonus += 2; + V.milkmaidTrustBonus += 2; + r.push(`${He} tries ${his} best to be your perfect farm${wife}.`); } if (_milkmaidImpregnated > 0) { r.push(`It's ${his} responsibility to keep ${his} charges pregnant, and ${he} constantly`); if (_milkmaidImpregnated === 1) { r.push(`breeds the one fertile cow.`); } else { - r.push(`fills the${ _milkmaidImpregnated} cows' cunts with ${his} cum.`); + r.push(`fills the ${_milkmaidImpregnated} cows' cunts with ${his} cum.`); } if (S.Milkmaid.career === "a breeding bull") { r.push(`${He} was conditioned to fill empty wombs, so ${he} takes a <span class="hotpink">deep pleasure</span> in ${his} job.`); @@ -194,7 +233,9 @@ globalThis.dairyReport = function() { S.Milkmaid.devotion += Math.ceil(S.Milkmaid.fetishStrength/25); S.Milkmaid.fetishStrength += 2; } - _Tmult = (_milkmaidImpregnated * 10), S.Milkmaid.counter.penetrative += _Tmult, V.penetrativeTotal += _Tmult; + const _Tmult = (_milkmaidImpregnated * 10); + S.Milkmaid.counter.penetrative += _Tmult; + V.penetrativeTotal += _Tmult; S.Milkmaid.need = 0; } if (_FLsFetish === 1) { @@ -214,7 +255,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++; } @@ -222,7 +263,7 @@ globalThis.dairyReport = function() { r.push(`${His} skilled tongue helps ${him} keep ${his} cattle happy.`); } if (S.Milkmaid.skill.oral < 90) { - r.push(`${V.slaveSkillIncrease(}'oral', ${S.Milkmaid}, 3)`); + slaveSkillIncrease('oral', S.Milkmaid, 3); } if (S.Milkmaid.sexualQuirk === "caring") { V.milkmaidTrustBonus++; @@ -239,540 +280,559 @@ 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); - <<for _slave range _slaves>> - V.i = V.slaveIndices[_slave.ID]; - if (S.Milkmaid.rivalryTarget === _slave.ID) { - <<setLocalPronouns _slave 2>> - r.push(`${He} either neglects or harasses ${his} `); - V.rivalryTerm(S.Milkmaid) - r.push(`,${ _${slave.slaveName}}, making sure ${_he2} is unhappy and uncomfortable.`); - _slave.devotion -= 3, _slave.trust -= 3; - if (random(1,100) > 65) { - S.Milkmaid.rivalry++, _slave.rivalry++; + 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]; + if (S.Milkmaid.rivalryTarget === slave.ID) { + ({ + he2, him2, his2, girl2, He2 + } = getPronouns(slave).appendSuffix("2")); + r.push(`${He} either neglects or harasses ${his} ${rivalryTerm(S.Milkmaid)},${slave.slaveName}, making sure ${he2} is unhappy and uncomfortable.`); + slave.devotion -= 3; + slave.trust -= 3; + if (random(1, 100) > 65) { + S.Milkmaid.rivalry++; + slave.rivalry++; } - } else if (S.Milkmaid.relationshipTarget === _slave.ID) { - <<setLocalPronouns _slave 2>> - r.push(`${He} dotes over ${his} `); - V.relationshipTerm(S.Milkmaid) - r.push(`,${ _${slave.slaveName}}, making sure ${_he2} is happy and comfortable.`); - _slave.devotion++, _slave.trust++; - } else if (areRelated(S.Milkmaid, _slave)) { - <<setLocalPronouns _slave 2>> - r.push(`${He} pays special attention to ${his} `); - V.relativeTerm(S.Milkmaid,_slave) - r.push(`,${ _${slave.slaveName}}, making sure ${_he2} is well kept and happy.`); - _slave.trust++; + } else if (S.Milkmaid.relationshipTarget === slave.ID) { + ({ + he2, him2, his2, girl2, He2 + } = getPronouns(slave).appendSuffix("2")); + r.push(`${He} dotes over ${his} ${relationshipTerm(S.Milkmaid)}, ${slave.slaveName}, making sure ${he2} is happy and comfortable.`); + slave.devotion++; + slave.trust++; + } else if (areRelated(S.Milkmaid, slave)) { + ({ + he2, him2, his2, girl2, He2 + } = 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.`); + 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.`); - _slave.devotion += 3, _slave.trust += 3; + 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.`); + 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 {'s breasts have shrunken considerably from their heyday. - } + 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.`); + } } } - 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.`); - _slave.devotion += 3, _slave.trust += 3; + 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.`); + slave.devotion += 3; + slave.trust += 3; } else { - r.push(`${He} is disappointed that the (formerly) massive ejaculating cow${ _${slave.slaveName}}`); - if (_slave.balls === 0 || _slave.dick === 0) { - r.push(` is incapable of giving cum`); - } else if (_slave.prostate < 2) { - r.push(` no longer possesses a hyperactive prostate`); - } else {'s balls are considerably smaller than at their heyday - } - r.push(`.`); + r.push(`${He} is disappointed that the (formerly) massive ejaculating cow ${slave.slaveName}`); + if (slave.balls === 0 || slave.dick === 0) { + r.push(` is incapable of giving cum`); + } else if (slave.prostate < 2) { + r.push(` no longer possesses a hyperactive prostate`); + } else { + r.push(`'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) { - <<setLocalPronouns _slave 2>> - r.push(`${He} spends extra time with${ _${slave.slaveName}}, the well-known breeder. ${S.Milkmaid.slaveName} is fascinated by ${_his2} growing pregnancy and popular womb. ${He} makes sure ${_his2} belly and its occupants are nice and comfortable.`); - _slave.devotion += 3, _slave.trust += 3; + if (slave.prestigeDesc === "$He is remembered for winning best in show as a breeder." && slave.bellyPreg >= 1500) { + ({ + he2, him2, his2, girl2, He2 + } = getPronouns(slave).appendSuffix("2")); + r.push(`${He} spends extra time with${slave.slaveName}, the well-known breeder. ${S.Milkmaid.slaveName} is fascinated by ${his2} growing pregnancy and popular womb. ${He} makes sure ${his2} belly and its occupants are nice and comfortable.`); + slave.devotion += 3; + slave.trust += 3; } - <</for>> + } } _Tadd = (V.bioreactorsXY + V.bioreactorsXX + V.bioreactorsHerm + V.bioreactorsBarren); if (_DL + _Tadd > 0) { - if (V.MilkmaidID !== 0) {<br><br> - } - - if (_DL !== 1) {''There are _DL cows in V.dairyName.'' - } else {''There is one cow in V.dairyName.'' - } + if (V.MilkmaidID !== 0) { + // <br><br> + } + // + if (_DL !== 1) { + r.push(`''There are _DL cows in ${V.dairyName}.''`); + } else { + r.push(`''There is one cow in ${V.dairyName}.''`); + } if (V.dairyRestraintsSetting > 1) { r.push(`The facility functions as an industrial slave products factory.`); } if (_Tadd > 0) { - _Tadd milking machines have permanent biological components, making a total of - V._Tadd + _DL - r.push(` milk-producing bodies.`); + r.push(`_Tadd milking machines have permanent biological components, making a total of ${_Tadd + _DL} milk-producing bodies.`); } } if (V.MilkmaidID !== 0) { - V.i = _FLs; - r.push(` /* apply following SA passages to facility leader */`); + const slave = S.Milkmaid; + /* apply following SA passages to facility leader */ if (V.showEWD !== 0) { - <br><br> - /* 000-250-006 */ + const milkMaidEntry = App.UI.DOM.appendNewElement("div", el, '', "slave-report"); if (V.seeImages && V.seeReportImages) { - <div class="imageRef tinyImg"> - r.push(`${V.SlaveArt(${S.Milkmaid}}, 0, 0)`); - </div> + App.UI.DOM.appendNewElement("div", milkMaidEntry, App.Art.SlaveArtElement(slave, 0, 0), ["imageRef", "tinyImg"]); } - /* 000-250-006 */ - <<includeDOM App.EndWeek.favoriteIcon(S.Milkmaid)>> - <span class='slave-name'> - V.SlaveFullName(S.Milkmaid)</span> is serving as your Milkmaid. - <br> - r.push(`${V.App.SlaveAssignment.choosesOwnClothes(${S.Milkmaid)}}`); - tired(S.Milkmaid); - <<includeDOM App.SlaveAssignment.rules(S.Milkmaid)>> - r.push(`${V.App.SlaveAssignment.diet(${S.Milkmaid)}}`); - <<includeDOM App.SlaveAssignment.longTermEffects(S.Milkmaid)>> - r.push(`${V.App.SlaveAssignment.drugs(${S.Milkmaid)}}`); - r.push(`${V.App.SlaveAssignment.relationships(${S.Milkmaid)}}`); - r.push(`${V.App.SlaveAssignment.rivalries(${S.Milkmaid)}}`); - <br> - V.App.SlaveAssignment.devotion(S.Milkmaid) + milkMaidEntry.append(App.EndWeek.favoriteIcon(slave), " "); + App.Events.addNode( + milkMaidEntry, + [ + App.UI.DOM.makeElement("span", SlaveFullName(slave), "slave-name"), + `is serving as your Milkmaid.`, + App.SlaveAssignment.standardSlaveReport(slave, false), + ] + ); } else { - App.SlaveAssignment.choosesOwnClothes(S.Milkmaid); - tired(S.Milkmaid); - App.SlaveAssignment.rules(S.Milkmaid); - App.SlaveAssignment.diet(S.Milkmaid); - App.SlaveAssignment.longTermEffects(S.Milkmaid); - App.SlaveAssignment.drugs(S.Milkmaid); - App.SlaveAssignment.relationships(S.Milkmaid); - App.SlaveAssignment.rivalries(S.Milkmaid); - App.SlaveAssignment.devotion(S.Milkmaid); + App.SlaveAssignment.standardSlaveReport(slave, true); } } - _oldCash = V.cash; - <<for _slave range _slaves>> - V.i = V.slaveIndices[_slave.ID]; - <<setLocalPronouns _slave>> + const _oldCash = V.cash; + for (const i in _slaves) { + const slave = _slaves[i]; + V.i = V.slaveIndices[slave.ID]; + ({ + he, him, his, himself, 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) { - V.legendaryCowID = _slave.ID; + 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) { - V.legendaryBallsID = _slave.ID; + if ((V.legendaryBallsID === 0) && (slave.dick !== 0) && (slave.balls > 5 || (slave.balls > 4 && slave.prostate > 1)) && (slave.devotion > 50) && (slave.prestige === 0)) { + V.legendaryBallsID = slave.ID; } /* Perform facility based rule changes */ if (V.dairySlimMaintain === 0) { if (V.dairyWeightSetting === 0) { - if (_slave.weight <= 30) { - _slave.diet = "fattening"; + if (slave.weight <= 30) { + slave.diet = "fattening"; } else { - _slave.diet = "healthy"; + slave.diet = "healthy"; } } else if (V.dairyWeightSetting === 1) { - if (_slave.weight <= 95) { - _slave.diet = "fattening"; + if (slave.weight <= 95) { + slave.diet = "fattening"; } else { - _slave.diet = "healthy"; + slave.diet = "healthy"; } } else if (V.dairyWeightSetting === 2) { - if (_slave.weight <= 130) { - _slave.diet = "fattening"; + if (slave.weight <= 130) { + slave.diet = "fattening"; } else { - _slave.diet = "healthy"; + slave.diet = "healthy"; } } else if (V.dairyWeightSetting === 3) { - if (_slave.weight <= 160) { - _slave.diet = "fattening"; + if (slave.weight <= 160) { + slave.diet = "fattening"; } else { - _slave.diet = "healthy"; + slave.diet = "healthy"; } } else if (V.dairyWeightSetting === 4) { - if (_slave.weight <= 195) { - _slave.diet = "fattening"; + if (slave.weight <= 195) { + slave.diet = "fattening"; } else { - _slave.diet = "healthy"; + slave.diet = "healthy"; } } else if (V.dairyRestraintsSetting > 1) { - _slave.diet = "healthy"; + slave.diet = "healthy"; } - } else if (_slave.weight > 10) { - _slave.diet = "restricted"; - } else if ((_slave.diet === "fattening") || _slave.diet === "healthy" || (V.dairyRestraintsSetting > 1)) { - _slave.diet = "healthy"; + } else if (slave.weight > 10) { + slave.diet = "restricted"; + } else if ((slave.diet === "fattening") || slave.diet === "healthy" || (V.dairyRestraintsSetting > 1)) { + slave.diet = "healthy"; } if (V.dairyRestraintsSetting > 1) { - _slave.collar = "none", _slave.faceAccessory = "none", _slave.mouthAccessory = "none", _slave.choosesOwnClothes = 0, _slave.clothes = "no clothing", _slave.vaginalAccessory = "none", _slave.vaginalAttachment = "none", _slave.dickAccessory = "none", _slave.buttplug = "none", _slave.chastityAnus = 0, _slave.chastityPenis = 0, _slave.chastityVagina = 0; + slave.collar = "none"; + slave.faceAccessory = "none"; + slave.mouthAccessory = "none"; + slave.choosesOwnClothes = 0; + slave.clothes = "no clothing"; + slave.vaginalAccessory = "none"; + slave.vaginalAttachment = "none"; + slave.dickAccessory = "none"; + slave.buttplug = "none"; + slave.chastityAnus = 0; + slave.chastityPenis = 0; + slave.chastityVagina = 0; } switch (V.dairyDecoration) { - case "Arabian Revivalist" "Aztec Revivalist" "Chattel Religionist" "Chinese Revivalist" "Degradationist" "Edo Revivalist" "Egyptian Revivalist" "Roman Revivalist" "Subjugationist" "Supremacist": - _slave.rules.living = "spare"; - default: - _slave.rules.living = "normal"; + case "Arabian Revivalist": + case "Aztec Revivalist": + case "Chattel Religionist": + case "Chinese Revivalist": + case "Degradationist": + case "Edo Revivalist": + case "Egyptian Revivalist": + case "Roman Revivalist": + case "Subjugationist": + case "Supremacist": + slave.rules.living = "spare"; + break; + default: + slave.rules.living = "normal"; } if (V.dairyPregSetting > 0) { - WombCleanGenericReserve(_slave, "incubator", 9999); - WombCleanGenericReserve(_slave, "nursery", 9999); + WombCleanGenericReserve(slave, "incubator", 9999); + WombCleanGenericReserve(slave, "nursery", 9999); } /* General End of Week effects */ if (V.showEWD !== 0) { - <br><br> - /* 000-250-006 */ + const slaveEntry = App.UI.DOM.appendNewElement("div", el, '', "slave-report"); if (V.seeImages && V.seeReportImages) { - <div class="imageRef tinyImg"> - r.push(`${V.SlaveArt(_slave}, 0, 0)`); - </div> + App.UI.DOM.appendNewElement("div", slaveEntry, App.Art.SlaveArtElement(slave, 0, 0), ["imageRef", "tinyImg"]); } - /* 000-250-006 */ - <span class='slave-name'> - V.SlaveFullName(_slave)</span> - if (_slave.choosesOwnAssignment === 2) { - r.push(`${V.App.SlaveAssignment.choosesOwnJob(_slave)}`); + slaveEntry.append(App.EndWeek.favoriteIcon(slave), " "); + r = []; + r.push(App.UI.DOM.makeElement("span", SlaveFullName(slave), "slave-name")); + if (slave.choosesOwnAssignment === 2) { + r.push(App.SlaveAssignment.choosesOwnJob(slave)); } else { r.push(`is serving as a cow in ${V.dairyName}.`); } - <<includeDOM App.EndWeek.favoriteIcon(_slave)>> - _milkResults = App.SlaveAssignment.getMilked(_slave); - <br> ${He} - V._milkResults.text - <br> - <<includeDOM App.SlaveAssignment.rules(_slave)>> - r.push(`${V.App.SlaveAssignment.diet(_slave)}`); - <<includeDOM App.SlaveAssignment.longTermEffects(_slave)>> - r.push(`${V.App.SlaveAssignment.drugs(_slave)}`); - r.push(`${V.App.SlaveAssignment.relationships(_slave)}`); - r.push(`${V.App.SlaveAssignment.rivalries(_slave)}`); - <br> - V.App.SlaveAssignment.devotion(_slave) + App.Events.addNode(slaveEntry, r, "div"); + _milkResults = App.SlaveAssignment.getMilked(slave); + + const indented = document.createElement("div"); + indented.classList.add("indent"); + App.Events.addNode( + indented, + [ + He, + _milkResults.text, + App.SlaveAssignment.standardSlaveReport(slave, false) + ] + ); + slaveEntry.append(indented); } else { - App.SlaveAssignment.choosesOwnJob(_slave); - _milkResults = App.SlaveAssignment.getMilked(_slave); - App.SlaveAssignment.rules(_slave); - App.SlaveAssignment.diet(_slave); - App.SlaveAssignment.longTermEffects(_slave); - App.SlaveAssignment.drugs(_slave); - App.SlaveAssignment.relationships(_slave); - App.SlaveAssignment.rivalries(_slave); - App.SlaveAssignment.devotion(_slave); + // discard return values silently + App.SlaveAssignment.choosesOwnJob(slave); + _milkResults = App.SlaveAssignment.getMilked(slave); + App.SlaveAssignment.standardSlaveReport(slave, true); } - _milkWeek += _milkResults.milk, _cumWeek += _milkResults.cum; + _milkWeek += _milkResults.milk; + _cumWeek += _milkResults.cum; /* Facility Specific End of Week effects */ - if (_slave.devotion <= 20) && (_slave.trust >= -20) { - _slave.devotion -= 5, _slave.trust -= 5; + if ((slave.devotion <= 20) && (slave.trust >= -20)) { + slave.devotion -= 5; + slave.trust -= 5; } - if (_slave.health.condition < -80) { - improveCondition(_slave, 20); - } else if ((_slave.health.condition < -40)) { - improveCondition(_slave, 10); - } else if ((_slave.health.condition < 0)) { - improveCondition(_slave, 7); - } else if ((_slave.health.condition < 90)) { - improveCondition(_slave, 3); + if (slave.health.condition < -80) { + improveCondition(slave, 20); + } else if ((slave.health.condition < -40)) { + improveCondition(slave, 10); + } else if ((slave.health.condition < 0)) { + improveCondition(slave, 7); + } else if ((slave.health.condition < 90)) { + improveCondition(slave, 3); } - if (_slave.inflation > 0) { - deflate(_slave); + if (slave.inflation > 0) { + deflate(slave); } - _gigantomastiaMod = _slave.geneticQuirks.gigantomastia === 2 ? (_slave.geneticQuirks.macromastia === 2 ? 3 : 2) : 1; - if (_slave.lactation > 0) && ((V.dairySlimMaintain === 0) || (_slave.boobs > 700)) { - if (_slave.boobs < 2000) { + const _gigantomastiaMod = slave.geneticQuirks.gigantomastia === 2 ? (slave.geneticQuirks.macromastia === 2 ? 3 : 2) : 1; + 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) { + if (slave.geneMods.NCS === 1) { _growth = Math.trunc(_growth/2); } - _slave.boobs += _growth; + slave.boobs += _growth; } - if (_slave.prostate === 1) { - _slave.prostate = 2; - cashX(forceNeg(V.surgeryCost), "slaveSurgery", _slave), surgeryDamage(_slave, 10); + if (slave.prostate === 1) { + slave.prostate = 2; + cashX(forceNeg(V.surgeryCost), "slaveSurgery", slave); + surgeryDamage(slave, 10); } - if (_slave.vasectomy === 1) { - _slave.vasectomy = 0; - cashX(forceNeg(V.surgeryCost), "slaveSurgery", _slave), surgeryDamage(_slave, 10); + if (slave.vasectomy === 1) { + slave.vasectomy = 0; + cashX(forceNeg(V.surgeryCost), "slaveSurgery", slave); + surgeryDamage(slave, 10); } if (V.dairySlimMaintain === 0) { if (V.dairyImplantsSetting <= 1) { - if (_slave.lactation < 2) && (_slave.boobs > 300 || _slave.balls === 0 || _slave.lactation === 1 || V.dairyImplantsSetting === 1) { - _slave.lactation = 2, _slave.lactationDuration = 2; - cashX(forceNeg(V.surgeryCost), "slaveSurgery", _slave), surgeryDamage(_slave, 10); + if ((slave.lactation < 2) && (slave.boobs > 300 || slave.balls === 0 || slave.lactation === 1 || V.dairyImplantsSetting === 1)) { + slave.lactation = 2; + slave.lactationDuration = 2; + cashX(forceNeg(V.surgeryCost), "slaveSurgery", slave); + surgeryDamage(slave, 10); } } else if (V.dairyImplantsSetting === 3) { - if (_slave.lactation < 1) && (_slave.boobs > 300 || _slave.balls === 0) { - induceLactation(_slave, 9); + if ((slave.lactation < 1) && (slave.boobs > 300 || slave.balls === 0)) { + induceLactation(slave, 9); } } } if (V.dairyHormonesSetting >= 0) { - if (_slave.lactation > 0) { - _slave.hormones = V.dairyHormonesSetting; - } else if (_slave.balls > 0) { - _slave.hormones = -1 * V.dairyHormonesSetting; + if (slave.lactation > 0) { + slave.hormones = V.dairyHormonesSetting; + } else if (slave.balls > 0) { + slave.hormones = -1 * V.dairyHormonesSetting; } else { - _slave.hormones = V.dairyHormonesSetting; + slave.hormones = V.dairyHormonesSetting; } } - if (V.dairyFeedersUpgrade === 1) && (V.dairyFeedersSetting > 0) { - if (V.dairySlimMaintain === 0 && _slave.diet === "fattening") { - _slave.weight += 2; - if (_slave.weightDirection === 1) { - _slave.weight += 2; + if ((V.dairyFeedersUpgrade === 1) && (V.dairyFeedersSetting > 0)) { + if (V.dairySlimMaintain === 0 && slave.diet === "fattening") { + slave.weight += 2; + if (slave.weightDirection === 1) { + slave.weight += 2; } } - if (_slave.health.condition < 75) { - improveCondition(_slave, 25); + if (slave.health.condition < 75) { + improveCondition(slave, 25); } else { - if (V.dairySlimMaintain === 0) && _slave.lactation > 0 { + if (V.dairySlimMaintain === 0 && slave.lactation > 0) { if (V.dairyFeedersSetting > 1 && V.dairyStimulatorsSetting > 0) { - if (_slave.boobs < 50000) { + if (slave.boobs < 50000) { if (V.arcologies[0].FSAssetExpansionistResearch === 1) { - if (_slave.boobs < 2000) { + if (slave.boobs < 2000) { _growth = 75*Math.trunc((V.injectionUpgrade*2)+V.dairyFeedersSetting+V.dairyRestraintsSetting+((50)/4)); - } else if ((_slave.boobs < 5000*_gigantomastiaMod)) { + } 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)); } } 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) { + if (slave.geneMods.NCS === 1) { _growth = Math.trunc(_growth/2); } - _slave.boobs += _growth; + slave.boobs += _growth; } else { - /*_slave.boobs = 50000;*/ + /* slave.boobs = 50000;*/ } } else if (V.dairyFeedersSetting > 0 && V.dairyStimulatorsSetting > 0) { - if (_slave.boobs < 25000) { + if (slave.boobs < 25000) { if (V.arcologies[0].FSAssetExpansionistResearch === 1) { - if (_slave.boobs < 2000) { + if (slave.boobs < 2000) { _growth = 75*Math.trunc((V.injectionUpgrade*2)+V.dairyFeedersSetting+V.dairyRestraintsSetting+((50)/4)); - } else if ((_slave.boobs < 5000*_gigantomastiaMod)) { + } 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)); } } 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) { + if (slave.geneMods.NCS === 1) { _growth = Math.trunc(_growth/2); } - _slave.boobs += _growth; + slave.boobs += _growth; } } else if (V.dairyFeedersSetting > 1) { - if (_slave.boobs < 10000) { + if (slave.boobs < 10000) { if (V.arcologies[0].FSAssetExpansionistResearch === 1) { - if (_slave.boobs < 2000) { + if (slave.boobs < 2000) { _growth = 75*Math.trunc((V.injectionUpgrade*2)+V.dairyFeedersSetting+V.dairyRestraintsSetting+((50)/4)); - } else if ((_slave.boobs < 5000*_gigantomastiaMod)) { + } 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)); } } 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) { + if (slave.geneMods.NCS === 1) { _growth = Math.trunc(_growth/2); } - _slave.boobs += _growth; + slave.boobs += _growth; } } else { - if (_slave.boobs < 5000) { + if (slave.boobs < 5000) { if (V.arcologies[0].FSAssetExpansionistResearch === 1) { - if (_slave.boobs < 2000) { + if (slave.boobs < 2000) { _growth = 75*Math.trunc((V.injectionUpgrade*2)+V.dairyFeedersSetting+V.dairyRestraintsSetting+((50)/4)); - } else if ((_slave.boobs < 5000*_gigantomastiaMod)) { + } 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)); } } 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) { + if (slave.geneMods.NCS === 1) { _growth = Math.trunc(_growth/2); } - _slave.boobs += _growth; + slave.boobs += _growth; } } } - if (_slave.balls > 0) { + if (slave.balls > 0) { 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)))) { - _slave.balls++; + 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)))) { + slave.balls++; } - if (_slave.balls >= 125) { + if (slave.balls >= 125) { _balltacular++; - _btSlave = _slave; + _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))) { - _slave.balls++; - } else if ((_slave.geneMods.NCS === 1) && (_slave.balls < 125) && (random(1,50) > (40+(10*_slave.balls)-(10*V.dairyRestraintsSetting)-(V.injectionUpgrade*10)))) { - _slave.balls++; + } else if ((slave.balls < 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)))) { + slave.balls++; } - if (_slave.balls >= 10) { + if (slave.balls >= 10) { _balltacular++; - _btSlave = _slave; + _btSlave = slave; } } - 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)))) { - _slave.dick++; - } else if (((_slave.geneMods.NCS === 1) && (random(1,50) > (40+(10*_slave.dick)-(10*V.dairyRestraintsSetting)-(V.injectionUpgrade*10))))) { - _slave.dick++; + 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)))) { + slave.dick++; + } else if (((slave.geneMods.NCS === 1) && (random(1, 50) > (40+(10*slave.dick)-(10*V.dairyRestraintsSetting)-(V.injectionUpgrade*10))))) { + slave.dick++; } } } } } } - r.push(` /* closes (${V.dairyFeedersUpgrade} === 1) && (V.dairyFeedersSetting > 0) */`); - if (V.dairyStimulatorsUpgrade === 1) && V.dairyStimulatorsSetting > 0 { - if (V.dairyStimulatorsSetting > 1) && (_slave.anus < 4) { - _slave.anus++; - if (_slave.anus >= 4) { + /* closes (${V.dairyFeedersUpgrade} === 1) && (V.dairyFeedersSetting > 0) */ + if (V.dairyStimulatorsUpgrade === 1 && V.dairyStimulatorsSetting > 0) { + if (V.dairyStimulatorsSetting > 1 && slave.anus < 4) { + slave.anus++; + if (slave.anus >= 4) { _anusesStretched++; } - } else if ((_slave.anus < 3)) { - _slave.anus++; + } else if ((slave.anus < 3)) { + slave.anus++; } - if (_slave.health.condition < 60) { - improveCondition(_slave, 20); - } else if (V.dairySlimMaintain === 0 && _slave.lactation > 0) { + if (slave.health.condition < 60) { + improveCondition(slave, 20); + } else if (V.dairySlimMaintain === 0 && slave.lactation > 0) { if (V.dairyFeedersSetting > 1) { - if (_slave.boobs < 50000) { + if (slave.boobs < 50000) { if (V.arcologies[0].FSAssetExpansionistResearch === 1) { - if (_slave.boobs < 2000) { + if (slave.boobs < 2000) { _growth = 75*Math.trunc((V.injectionUpgrade*2)+V.dairyFeedersSetting+V.dairyRestraintsSetting+((50)/4)); - } else if ((_slave.boobs < 5000*_gigantomastiaMod)) { + } 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)); } } 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) { + if (slave.geneMods.NCS === 1) { _growth = Math.trunc(_growth/2); } - _slave.boobs += _growth; + slave.boobs += _growth; } } else if (V.dairyFeedersSetting > 0) { - if (_slave.boobs < 25000) { + if (slave.boobs < 25000) { if (V.arcologies[0].FSAssetExpansionistResearch === 1) { - if (_slave.boobs < 2000) { + if (slave.boobs < 2000) { _growth = 75*Math.trunc((V.injectionUpgrade*2)+V.dairyFeedersSetting+V.dairyRestraintsSetting+((50)/4)); - } else if ((_slave.boobs < 5000*_gigantomastiaMod)) { + } 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)); } } 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) { + if (slave.geneMods.NCS === 1) { _growth = Math.trunc(_growth/2); } - _slave.boobs += _growth; + slave.boobs += _growth; } } else { - if (_slave.boobs < 10000) { + if (slave.boobs < 10000) { if (V.arcologies[0].FSAssetExpansionistResearch === 1) { - if (_slave.boobs < 2000) { + if (slave.boobs < 2000) { _growth = 75*Math.trunc((V.injectionUpgrade*2)+V.dairyFeedersSetting+V.dairyRestraintsSetting+((50)/4)); - } else if ((_slave.boobs < 5000*_gigantomastiaMod)) { + } 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)); } } 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) { + if (slave.geneMods.NCS === 1) { _growth = Math.trunc(_growth/2); } - _slave.boobs += _growth; + slave.boobs += _growth; } } } } if (V.dairyRestraintsSetting > 1) { - if (_slave.lactation > 0) { - _slave.lactationAdaptation += 1; + if (slave.lactation > 0) { + slave.lactationAdaptation += 1; } - if (_slave.muscles > -100) { - _slave.muscles -= 1+_slave.geneticQuirks.mLoss; + if (slave.muscles > -100) { + slave.muscles -= 1+slave.geneticQuirks.mLoss; } - if (_slave.fetish === "mindbroken") { - if (_slave.boobs > 48000) && ((_slave.balls >= 10) || (_slave.balls === 0)) { - V.bioreactorPerfectedID = _slave.ID; + if (slave.fetish === "mindbroken") { + if ((slave.boobs > 48000) && ((slave.balls >= 10) || (slave.balls === 0))) { + V.bioreactorPerfectedID = slave.ID; } } else { - if (_slave.sexualFlaw !== "self hating") { - if (_slave.sexualFlaw !== "cum addict") || (V.dairyFeedersSetting === 0) { - if (_slave.sexualFlaw !== "anal addict") || (V.dairyStimulatorsSetting === 0) { - if (_slave.sexualFlaw !== "breeder") || (_slave.preg < 0) || (V.dairyPregSetting === 0) { + if (slave.sexualFlaw !== "self hating") { + if ((slave.sexualFlaw !== "cum addict") || (V.dairyFeedersSetting === 0)) { + if ((slave.sexualFlaw !== "anal addict") || (V.dairyStimulatorsSetting === 0)) { + if ((slave.sexualFlaw !== "breeder") || (slave.preg < 0) || (V.dairyPregSetting === 0)) { if (V.dairyStimulatorsSetting > 1) { - if (_slave.sexualFlaw !== "hates anal") && (_slave.sexualQuirk !== "painal queen") { - _slave.sexualFlaw = "hates anal"; + if ((slave.sexualFlaw !== "hates anal") && (slave.sexualQuirk !== "painal queen")) { + slave.sexualFlaw = "hates anal"; } } if (V.dairyPregSetting > 1) { - if (_slave.sexualFlaw !== "hates penetration") && (_slave.sexualQuirk !== "strugglefuck queen") { - _slave.sexualFlaw = "hates penetration"; + if ((slave.sexualFlaw !== "hates penetration") && (slave.sexualQuirk !== "strugglefuck queen")) { + slave.sexualFlaw = "hates penetration"; } } if (V.dairyFeedersSetting > 1) { - if (_slave.sexualFlaw !== "hates oral") && (_slave.sexualQuirk !== "gagfuck queen") { - _slave.sexualFlaw = "hates oral"; + if ((slave.sexualFlaw !== "hates oral") && (slave.sexualQuirk !== "gagfuck queen")) { + slave.sexualFlaw = "hates oral"; } } } @@ -780,180 +840,201 @@ globalThis.dairyReport = function() { } } } - if (_slave.chem > 250) { + if (slave.chem > 250) { _chemSevere++; - } else if (_slave.chem > 100) { + } else if (slave.chem > 100) { _chemMinor++; - _cmSlave = _slave; + _cmSlave = slave; } } - if (V.dairyStimulatorsSetting + V.dairyFeedersSetting + V.dairyPregSetting) > 5 { - if (_slave.devotion <= 95 && _slave.sexualFlaw !== "self hating") { - if (_slave.sexualFlaw !== "breeder") || (_slave.preg < 0) { - if (_slave.devotion > -75) { - _slave.devotion -= 10; - if (_slave.devotion < -65) { + if ((V.dairyStimulatorsSetting + V.dairyFeedersSetting + V.dairyPregSetting) > 5) { + if (slave.devotion <= 95 && slave.sexualFlaw !== "self hating") { + if ((slave.sexualFlaw !== "breeder") || (slave.preg < 0)) { + if (slave.devotion > -75) { + slave.devotion -= 10; + if (slave.devotion < -65) { _hateFilled++; - _hfSlave = _slave; + _hfSlave = slave; } - } else if ((_slave.trust > -75)) { - _slave.trust -= 10; - if (_slave.trust < -65) { + } else if ((slave.trust > -75)) { + slave.trust -= 10; + if (slave.trust < -65) { _horrified++; - _hrSlave = _slave; + _hrSlave = slave; } - } else if ((_slave.skill.vaginal > 0)) { - _slave.skill.vaginal -= 10, _skillsLost++; - _slSlave = _slave; - } else if ((_slave.skill.oral > 0)) { - _slave.skill.oral -= 10, _skillsLost++; - _slSlave = _slave; - } else if ((_slave.skill.anal > 0)) { - _slave.skill.anal -= 10, _skillsLost++; - _slSlave = _slave; - } else if ((_slave.career !== "a bioreactor")) { - _slave.career = "a bioreactor", _careerForgotten++; - _cfSlave = _slave; - } else if ((_slave.intelligenceImplant > 0)) { - _slave.intelligenceImplant = Math.clamp(_slave.intelligenceImplant-5, 0, 30), _skillsLost++; - _slSlave = _slave; - } else if ((_slave.intelligence >= -15)) { - _slave.intelligence -= 5, _intelligenceLost++; - } else if ((_slave.devotion >= -20)) { - _slave.devotion -= 10; - } else if ((_slave.trust >= -20)) { - _slave.trust -= 10; - } else if ((_slave.skill.whoring > 0)) { - _slave.skill.whoring -= 10, _skillsLost++; - _slSlave = _slave; - } else if ((_slave.skill.entertainment > 0)) { - _slave.skill.entertainment -= 10, _skillsLost++; - _slSlave = _slave; - } else if ((_slave.intelligence >= -50)) { - _slave.intelligence -= 5; - if (_slave.intelligence < -50) { + } else if ((slave.skill.vaginal > 0)) { + slave.skill.vaginal -= 10; + _skillsLost++; + _slSlave = slave; + } else if ((slave.skill.oral > 0)) { + slave.skill.oral -= 10; + _skillsLost++; + _slSlave = slave; + } else if ((slave.skill.anal > 0)) { + slave.skill.anal -= 10; + _skillsLost++; + _slSlave = slave; + } else if ((slave.career !== "a bioreactor")) { + slave.career = "a bioreactor"; + _careerForgotten++; + _cfSlave = slave; + } else if ((slave.intelligenceImplant > 0)) { + slave.intelligenceImplant = Math.clamp(slave.intelligenceImplant-5, 0, 30); + _skillsLost++; + _slSlave = slave; + } else if ((slave.intelligence >= -15)) { + slave.intelligence -= 5; + _intelligenceLost++; + } else if ((slave.devotion >= -20)) { + slave.devotion -= 10; + } else if ((slave.trust >= -20)) { + slave.trust -= 10; + } else if ((slave.skill.whoring > 0)) { + slave.skill.whoring -= 10; + _skillsLost++; + _slSlave = slave; + } else if ((slave.skill.entertainment > 0)) { + slave.skill.entertainment -= 10; + _skillsLost++; + _slSlave = slave; + } else if ((slave.intelligence >= -50)) { + slave.intelligence -= 5; + if (slave.intelligence < -50) { _stupidified++; - _stSlave = _slave; + _stSlave = slave; } - } else if ((_slave.fetish !== "mindbroken")) { - _slave.fetish = "mindbroken", _mindbroken++; + } else if ((slave.fetish !== "mindbroken")) { + slave.fetish = "mindbroken"; + _mindbroken++; } } } - if ((_slave.counter.milk > 1000) && (_slave.boobs > 12000) || (_slave.counter.cum > 1000) && (_slave.balls >= 10)) && (_slave.career !== "a bioreactor") { - _slave.career = "a bioreactor", _careerForgotten++; - _cfSlave = _slave; + if (((slave.counter.milk > 1000) && (slave.boobs > 12000) || (slave.counter.cum > 1000) && (slave.balls >= 10)) && (slave.career !== "a bioreactor")) { + slave.career = "a bioreactor"; + _careerForgotten++; + _cfSlave = slave; } - if (V.arcologies[0].FSBodyPuristLaw === 0) && (${he}althyDrugsUpgrade === 0) { - _slave.chem += 5; + if ((V.arcologies[0].FSBodyPuristLaw === 0) && (V.healthyDrugsUpgrade === 0)) { + slave.chem += 5; } else { - _slave.chem += 2; + slave.chem += 2; } } else if ((V.dairyStimulatorsSetting + V.dairyFeedersSetting + V.dairyPregSetting) > 3) { - if (_slave.devotion < 75) { - if (_slave.devotion > -75) { - _slave.devotion -= 5; - if (_slave.devotion < -70) { + if (slave.devotion < 75) { + if (slave.devotion > -75) { + slave.devotion -= 5; + if (slave.devotion < -70) { _hateFilled++; - _hfSlave = _slave; + _hfSlave = slave; } - } else if ((_slave.trust > -75)) { - _slave.trust -= 5; - if (_slave.trust < -70) { + } else if ((slave.trust > -75)) { + slave.trust -= 5; + if (slave.trust < -70) { _horrified++; - _hrSlave = _slave; + _hrSlave = slave; } - } else if ((_slave.skill.vaginal >= 20)) { - _slave.skill.vaginal -= 10, _skillsLost++; - _slSlave = _slave; - } else if ((_slave.skill.oral >= 20)) { - _slave.skill.oral -= 10, _skillsLost++; - _slSlave = _slave; - } else if ((_slave.skill.anal >= 20)) { - _slave.skill.anal -= 10, _skillsLost++; - _slSlave = _slave; - } else if ((_slave.career !== "a bioreactor")) { - _slave.career = "a bioreactor", _careerForgotten++; - _cfSlave = _slave; - } else if ((_slave.intelligenceImplant > 0)) { - _slave.intelligenceImplant = Math.clamp(_slave.intelligenceImplant-5, 0, 30), _skillsLost++; - _slSlave = _slave; - } else if ((_slave.intelligence >= -15)) { - _slave.intelligence -= 5, _intelligenceLost++; - } else if ((_slave.devotion >= -20)) { - _slave.devotion -= 8; - } else if ((_slave.trust >= -20)) { - _slave.trust -= 8; - } else if ((_slave.skill.whoring >= 20)) { - _slave.skill.whoring -= 10, _skillsLost++; - _slSlave = _slave; - } else if ((_slave.skill.entertainment >= 20)) { - _slave.skill.entertainment -= 10, _skillsLost++; - _slSlave = _slave; - } else if ((_slave.intelligence >= -50)) { - _slave.intelligence -= 5; - if (_slave.intelligence < -50) { + } else if ((slave.skill.vaginal >= 20)) { + slave.skill.vaginal -= 10; + _skillsLost++; + _slSlave = slave; + } else if ((slave.skill.oral >= 20)) { + slave.skill.oral -= 10; + _skillsLost++; + _slSlave = slave; + } else if ((slave.skill.anal >= 20)) { + slave.skill.anal -= 10; + _skillsLost++; + _slSlave = slave; + } else if ((slave.career !== "a bioreactor")) { + slave.career = "a bioreactor"; + _careerForgotten++; + _cfSlave = slave; + } else if ((slave.intelligenceImplant > 0)) { + slave.intelligenceImplant = Math.clamp(slave.intelligenceImplant-5, 0, 30); + _skillsLost++; + _slSlave = slave; + } else if ((slave.intelligence >= -15)) { + slave.intelligence -= 5; + _intelligenceLost++; + } else if ((slave.devotion >= -20)) { + slave.devotion -= 8; + } else if ((slave.trust >= -20)) { + slave.trust -= 8; + } else if ((slave.skill.whoring >= 20)) { + slave.skill.whoring -= 10; + _skillsLost++; + _slSlave = slave; + } else if ((slave.skill.entertainment >= 20)) { + slave.skill.entertainment -= 10; + _skillsLost++; + _slSlave = slave; + } else if ((slave.intelligence >= -50)) { + slave.intelligence -= 5; + if (slave.intelligence < -50) { _stupidified++; - _stSlave = _slave; + _stSlave = slave; } - } else if ((_slave.fetish !== "mindbroken")) { - _slave.fetish = "mindbroken", _mindbroken++; + } else if ((slave.fetish !== "mindbroken")) { + slave.fetish = "mindbroken"; + _mindbroken++; } - } else if (((_slave.counter.milk > 1000) && (_slave.boobs > 12000) || (_slave.counter.cum > 1000) && (_slave.balls >= 10)) && (_slave.career !== "a bioreactor")) { - _slave.career = "a bioreactor", _careerForgotten++; - _cfSlave = _slave; + } else if (((slave.counter.milk > 1000) && (slave.boobs > 12000) || (slave.counter.cum > 1000) && (slave.balls >= 10)) && (slave.career !== "a bioreactor")) { + slave.career = "a bioreactor"; + _careerForgotten++; + _cfSlave = slave; } - if (V.arcologies[0].FSBodyPuristLaw === 0) && (${he}althyDrugsUpgrade === 0) { - _slave.chem += 2; + if (V.arcologies[0].FSBodyPuristLaw === 0 && V.healthyDrugsUpgrade === 0) { + slave.chem += 2; } else { - _slave.chem++; + slave.chem++; } - } - r.push(` /* closes (${V.dairyStimulatorsSetting} + V.dairyFeedersSetting + V.dairyPregSetting) > 5 */`); - if (V.dairyPregUpgrade === 1) && (V.dairyPregSetting > 0) { - if (_slave.ovaries === 1) && (_slave.vagina > -1) { - _femCumWeek += girlCumAmount(_slave); - if (_slave.preg === -2) { - _slave.preg = 0, _desterilized++; - _dsSlave = _slave; + }/* closes (V.dairyStimulatorsSetting + V.dairyFeedersSetting + V.dairyPregSetting) > 5 */ + if (V.dairyPregUpgrade === 1 && V.dairyPregSetting > 0) { + if (slave.ovaries === 1 && slave.vagina > -1) { + _femCumWeek += girlCumAmount(slave); + if (slave.preg === -2) { + slave.preg = 0; + _desterilized++; + _dsSlave = slave; } - if (isFertile(_slave)) { - if (_slave.eggType === "human") { - _slave.preg = 1, _slave.pregWeek = 1, _slave.pregKnown = 1; + if (isFertile(slave)) { + if (slave.eggType === "human") { + slave.preg = 1; + slave.pregWeek = 1; + slave.pregKnown = 1; if (V.dairyPregSetting > 2) { - _slave.pregType = random(10,29); + slave.pregType = random(10, 29); } else if ((V.dairyPregSetting > 1)) { - _slave.pregType = random(3,6); + slave.pregType = random(3, 6); } else { - _slave.pregType = either(1, 1, 1, 1, 2, 2, 2, 3, 3, 4); + slave.pregType = either(1, 1, 1, 1, 2, 2, 2, 3, 3, 4); } - _slave.pregSource = -2; - WombImpregnate(_slave, _slave.pregType, -2, 1); + slave.pregSource = -2; + WombImpregnate(slave, slave.pregType, -2, 1); + } /* closes eggType */ + if (slave.vagina === 0) { + slave.vagina++; } - r.push(` /*closes eggType */`); - if (_slave.vagina === 0) { - _slave.vagina++; - } - } else if ((_slave.pregKnown === 1)) { + } else if ((slave.pregKnown === 1)) { if (V.dairyPregSetting > 2) { - cashX(100, "slaveAssignmentDairy", _slave); + cashX(100, "slaveAssignmentDairy", slave); } else if ((V.dairyPregSetting > 1)) { - cashX(50, "slaveAssignmentDairy", _slave); + cashX(50, "slaveAssignmentDairy", slave); } else { - cashX(25, "slaveAssignmentDairy", _slave); + cashX(25, "slaveAssignmentDairy", slave); } - if (V.dairyPregSetting > 1) && (_slave.vagina < 4) { - _slave.vagina++; - if (_slave.vagina === 4) { + if (V.dairyPregSetting > 1 && slave.vagina < 4) { + slave.vagina++; + if (slave.vagina === 4) { _vaginasStretched++; } - } else if ((_slave.vagina < 3)) { - _slave.vagina++; + } else if ((slave.vagina < 3)) { + slave.vagina++; } } } } - <</for>> + } if (_inflatedSlaves.milk > 0) { _milkWeek -= ((8*_inflatedSlaves.milk*10)+8); @@ -966,34 +1047,38 @@ globalThis.dairyReport = function() { } if (_Tadd > 0) { - _tempCash = V.cash; + const _tempCash = V.cash; - _seed = (_BF.XY.cum*V.bioreactorsXY) + (_BF.herm.cum*V.bioreactorsHerm), _cumWeek += _seed; + let _seed; + _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), _femCumWeek += _seed; + _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), _milkWeek += _seed; - if (V.arcologies[0].FSPastoralistLaw === 1) { + _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(_cashX, "menialBioreactors"); } else if ((V.arcologies[0].FSPastoralist !== "unset")) { @@ -1003,105 +1088,121 @@ globalThis.dairyReport = function() { _cashX = _seed*9; cashX(_cashX, "menialBioreactors"); } - <br><br>_Tadd permanently converted biological "machine - if (_Tadd > 1) { - r.push(`s`); - }" produce - if (_Tadd === 1) { - r.push(`s`); - } - r.push(` <span class="yellowgreen">`); - V.cashFormat(V.cash-_tempCash) - r.push(`</span> income.`); + // <br><br> + r.push(`${_Tadd} permanently converted biological "machine`); + if (_Tadd > 1) { + r.push(`s`); + } + r.push(`" produce`); + if (_Tadd === 1) { + r.push(`s`); + } + 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; - <br><br> + // <br><br> if (_chemSevere > 1) { - _chemSevere cows' productivity is being reduced by the long term effects of industrial use. + r.push(`${_chemSevere} cows' productivity is being reduced by the long term effects of industrial use.`); } else if (_chemSevere > 0) { r.push(`One cow's productivity is being reduced by the long term effects of industrial use.`); } if (_chemMinor > 1) { - _chemMinor cows have been drugged and used long enough that they require increased curative doses, slightly reducing their output. + r.push(`${_chemMinor} cows have been drugged and used long enough that they require increased curative doses, slightly reducing their output.`); } else if (_chemMinor > 0) { - <<setLocalPronouns _cmSlave>> + ({ + he, him, his, himself, He, His, wife, girl + } = getPronouns(_cmSlave)); r.push(`One cow has been drugged and used long enough that ${he} requires increased curative doses, slightly reducing ${his} output.`); } if (_desterilized > 1) { - _desterilized cows had minor health issues preventing their fertile womb from conceiving; the issues have been resolved and they have been impregnated. + r.push(`${_desterilized} cows had minor health issues preventing their fertile womb from conceiving; the issues have been resolved and they have been impregnated.`); } else if (_desterilized > 0) { - <<setLocalPronouns _dsSlave>> + ({ + he, him, his, himself, He, His, wife, girl + } = getPronouns(_dsSlave)); r.push(`One cow had minor health issues preventing ${his} fertile womb from conceiving; they have been resolved and ${he} has been impregnated.`); } if (_hateFilled > 1) { - _hateFilled cows stopped struggling so much when fucked by the machines; it seems they have sunk into a fugue. + r.push(`${_hateFilled} cows stopped struggling so much when fucked by the machines; it seems they have sunk into a fugue.`); } else if (_hateFilled > 0) { - <<setLocalPronouns _hfSlave>> + ({ + he, him, his, himself, He, His, wife, girl + } = getPronouns(_hfSlave)); r.push(`One cow stopped struggling so much when fucked by the machines; it seems ${he} has sunk into a fugue.`); } if (_horrified > 1) { - _horrified cows' emotional activity dropped significantly; this indicates acceptance that they are not likely to leave V.dairyName, ever again. + r.push(`${_horrified} cows' emotional activity dropped significantly; this indicates acceptance that they are not likely to leave ${V.dairyName}, ever again.`); } else if (_horrified > 0) { - <<setLocalPronouns _hrSlave>> - r.push(`One cow's emotional activity dropped significantly; this indicates acceptance that ${he} is not likely to leave V.dairyName, ever again.`); + ({ + he, him, his, himself, He, His, wife, girl + } = getPronouns(_hrSlave)); + r.push(`One cow's emotional activity dropped significantly; this indicates acceptance that ${he} is not likely to leave ${V.dairyName}, ever again.`); } if (_skillsLost > 1) { - _skillsLost cows forgot skills due to their inability to focus on anything but machine rape. + r.push(`${_skillsLost} cows forgot skills due to their inability to focus on anything but machine rape.`); } else if (_skillsLost > 0) { - <<setLocalPronouns _slSlave>> + ({ + he, him, his, himself, He, His, wife, girl + } = getPronouns(_slSlave)); r.push(`One cow forgot skills due to ${his} inability to focus on anything but machine rape.`); } if (_careerForgotten > 1) { - _careerForgotten cows forgot the details of their past professional lives; all they can remember now is this. + r.push(`${_careerForgotten} cows forgot the details of their past professional lives; all they can remember now is this.`); } else if (_careerForgotten > 0) { - <<setLocalPronouns _cfSlave>> + ({ + he, him, his, himself, He, His, wife, girl + } = getPronouns(_cfSlave)); r.push(`One cow forgot the details of ${his} past professional life; all ${he} can remember now is this.`); } if (_vaginasStretched > 1) { - _vaginasStretched cows' vaginas were broken in for machine use, and are unlikely to be any use for anything other than receiving cum and medication, and giving birth. + r.push(`${_vaginasStretched} cows' vaginas were broken in for machine use, and are unlikely to be any use for anything other than receiving cum and medication, and giving birth.`); } else if (_vaginasStretched > 0) { r.push(`One cow's vagina was broken in for machine use, and is unlikely to be any use for anything other than receiving cum and medication, and giving birth.`); } if (_anusesStretched > 1) { - _anusesStretched cows' anuses were loosened by machine sodomy, and are now permanently gaped. + r.push(`${_anusesStretched} cows' anuses were loosened by machine sodomy, and are now permanently gaped.`); } else if (_anusesStretched > 0) { r.push(`One cow's anus was loosened by machine sodomy, and is now permanently gaped.`); } if (_intelligenceLost > 1) { - _intelligenceLost cows suffered some loss of intelligence due to accumulated mental stress from life attached to a milking machine. + r.push(`${_intelligenceLost} cows suffered some loss of intelligence due to accumulated mental stress from life attached to a milking machine.`); } else if (_intelligenceLost > 0) { r.push(`One cow suffered some loss of intelligence due to accumulated mental stress from life attached to a milking machine.`); } if (_stupidified > 1) { - _stupidified cows were so mentally dulled by use as biological factories that they were reduced to a very low level of intelligence. + r.push(`${_stupidified} cows were so mentally dulled by use as biological factories that they were reduced to a very low level of intelligence.`); } else if (_stupidified > 0) { - <<setLocalPronouns _stSlave>> + ({ + he, him, his, himself, He, His, wife, girl + } = getPronouns(_stSlave)); r.push(`One cow was so mentally dulled by use as biological factories that ${he} was reduced to a very low level of intelligence.`); } if (_mindbroken > 1) { - _mindbroken cows finally lost higher mental function, and are now nothing more than industrial equipment made of meat. + r.push(`${_mindbroken} cows finally lost higher mental function, and are now nothing more than industrial equipment made of meat.`); } else if (_mindbroken > 0) { r.push(`One cow finally lost higher mental function, and is now nothing more than industrial equipment made of meat.`); } if (_boobtacular > 1) { - _boobtacular cows grew past 30 kilograms of breasts, a remarkable advance in capacity. + r.push(`${_boobtacular} cows grew past 30 kilograms of breasts, a remarkable advance in capacity.`); } else if (_boobtacular > 0) { r.push(`One cow grew past 30 kilograms of breasts, a remarkable advance in capacity.`); } if (_balltacular > 1) { - _balltacular cows' testicles reached the largest size drug treatments can produce; the machines will now focus on buttfucking them with extra force. + r.push(`${_balltacular} cows' testicles reached the largest size drug treatments can produce; the machines will now focus on buttfucking them with extra force.`); } else if (_balltacular > 0) { - <<setLocalPronouns _btSlave>> + ({ + he, him, his, himself, He, His, wife, girl + } = getPronouns(_btSlave)); r.push(`One cow's testicles reached the largest size drug treatments can produce; the machines will now focus on buttfucking ${him} with extra force.`); } @@ -1113,7 +1214,8 @@ globalThis.dairyReport = function() { } } _cumWeek = Math.trunc(_cumWeek/10); - V.cumPipeline = _cumWeek, V.milkPipeline = _milkWeek; + V.cumPipeline = _cumWeek; + V.milkPipeline = _milkWeek; if (_inflatedSlaves.milk > 0) { _outputMilk = ((8*_inflatedSlaves.milk*10)+8); } else { @@ -1124,43 +1226,40 @@ globalThis.dairyReport = function() { } else { _outputCum = 0; } - _dairyNameCaps produced - V._milkWeek+_outputMilk - r.push(` liters of milk`); + r.push(`${_dairyNameCaps} produced ${_milkWeek+_outputMilk} liters of milk`); if (_cumWeek > 0) { - r.push(` and `); - V._cumWeek+_outputCum - r.push(` liters of cum`); + r.push(` and ${_cumWeek+_outputCum} liters of cum`); } - r.push(` this week.`); + r.push(` this week.`); if (_inflatedSlaves.milk > 0) { - _outputMilk liters of milk were pumped into your penthouse for filling slaves this week. + r.push(`${_outputMilk} liters of milk were pumped into your penthouse for filling slaves this week.`); } if (_inflatedSlaves.cum > 0) { if (_inflatedSlaves.milk > 0) { - r.push(`and `); - }_outputCum liters of cum were pumped into your penthouse - if (_inflatedSlaves.milk > 0) { - r.push(` as well`); - } else { - r.push(` this week`); - } + r.push(`and `); + } + r.push(`${_outputCum} liters of cum were pumped into your penthouse`); + if (_inflatedSlaves.milk > 0) { + r.push(` as well`); + } else { + 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`); - if (_births > _birthers) { - r.push(` to a total of${ _births} calves`); - } + r.push(`Additionally,${_birthers} cows gave birth`); + if (_births > _birthers) { + r.push(` to a total of${_births} calves`); + } 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`); - } + if (_births > _birthers) { + r.push(` to a total of${_births} calves`); + } r.push(` this week.`); } @@ -1175,49 +1274,43 @@ globalThis.dairyReport = function() { } } - <!-- Record statistics gathering --> - <<script>> - r.push(`var b = State.variables.facility.dairy;`); - r.push(`b.whoreIncome = 0;`); - r.push(`b.whoreCosts = 0;`); - r.push(`b.rep = 0;`); - r.push(`for (var si of b.income.values()) {`); - r.push(`b.whoreIncome += si.income;`); - r.push(`b.whoreCosts += si.cost;`); - r.push(`b.rep += si.rep;`); - } - r.push(`b.maintenance = (State.variables.bioreactorsXY + State.variables.bioreactorsXX + State.variables.bioreactorsHerm + State.variables.bioreactorsBarren);`); - r.push(`if (b.maintenance > 0) {`); - r.push(`b.maintenance *= 100;`); - } else { - r.push(`b.maintenance = 0;`); - } - r.push(`b.maintenance += State.variables.dairy * State.variables.facilityCost * (1.0 + 0.2 * State.variables.dairyFeedersUpgrade + 0.1 * State.variables.dairyPregUpgrade);`); - r.push(`b.totalIncome = b.whoreIncome;`); - r.push(`b.totalExpenses = b.whoreCosts + b.maintenance;`); - r.push(`b.profit = b.totalIncome - b.totalExpenses;`); - <</script>> + // <!-- Record statistics gathering --> + let b = State.variables.facility.dairy; + b.whoreIncome = 0; + b.whoreCosts = 0; + b.rep = 0; + for (let si of b.income.values()) { + b.whoreIncome += si.income; + b.whoreCosts += si.cost; + b.rep += si.rep; + } + b.maintenance = (State.variables.bioreactorsXY + State.variables.bioreactorsXX + State.variables.bioreactorsHerm + State.variables.bioreactorsBarren); + if (b.maintenance > 0) { + b.maintenance *= 100; + } else { + b.maintenance = 0; + } + b.maintenance += State.variables.dairy * State.variables.facilityCost * (1.0 + 0.2 * State.variables.dairyFeedersUpgrade + 0.1 * State.variables.dairyPregUpgrade); + b.totalIncome = b.whoreIncome; + b.totalExpenses = b.whoreCosts + b.maintenance; + b.profit = b.totalIncome - b.totalExpenses; if (_profits > 0) { - r.push(`The sale of these products makes a profit of <span class="yellowgreen">`); - V.cashFormat(_profits) - r.push(`.</span>`); + r.push(`The sale of these products makes a profit of <span class="yellowgreen">${cashFormat(_profits)}.</span>`); } else if ((_profits < 0)) { r.push(`Due to `); - if (V.dairyImplantsSetting !== 3) { - 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(`, your dairy made a loss of <span class="red">`); - V.cashFormat(_profits) - r.push(`.</span>`); + if (V.dairyImplantsSetting !== 3) { + 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(`, your dairy made a loss of <span class="red">${cashFormat(_profits)}.</span>`); } else { r.push(`Due to `); - if (V.dairyImplantsSetting !== 3) { - r.push(`one-off costs of hormonal implants to encourage fluid production`); - } else { - r.push(`the need to induce lactation in some cows`); - } + if (V.dairyImplantsSetting !== 3) { + 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(` paired with existing output, your dairy broke even this week.`); } @@ -1226,83 +1319,86 @@ globalThis.dairyReport = function() { } if (V.dairySlimMaintainUpgrade === 1 && V.dairySlimMaintain === 1) { - <br> + // <br> if (V.arcologies[0].FSSlimnessEnthusiast > 80) { r.push(`Because of your arcology's great enthusiasm for small breasted slaves, the dairy's milking systems have been carefully overhauled and optimized for maximum milk extraction from slaves with smaller endowments — providing a significant boost to their otherwise modest output. This also prevents unfashionable breast expansion of already slim slaves through the milking process.`); } else if (V.arcologies[0].FSSlimnessEnthusiast > 20) { r.push(`In keeping with your arcology's ideals, ${V.dairyName} has been modified to handle slim slaves with minimal impact to their body shapes. This limits potential profitability, but prevents unfashionable breast expansion of already slim slaves through the milking process.`); } else { r.push(`Due to your arcology's lack of enthusiasm for small breasted slaves the dairy has discontinued using milking techniques that prevent breast growth through the milking process.`); - V.dairySlimMaintain = 0, V.dairySlimMaintainUpgrade = 0; + V.dairySlimMaintain = 0; + V.dairySlimMaintainUpgrade = 0; } } - if (V.createBioreactors === 1) && (V.bioreactorPerfectedID !== 0) { - <<for _slave range _slaves>> - if (_slave.ID === V.bioreactorPerfectedID) { - if (_slave.ovaries === 1) { - if (_slave.balls === 0) { - V.bioreactorsXX++, _gender = "XX"; + if (V.createBioreactors === 1 && V.bioreactorPerfectedID !== 0) { + for (const i in _slaves) { + const slave = _slaves[i]; + let _gender; + if (slave.ID === V.bioreactorPerfectedID) { + if (slave.ovaries === 1) { + if (slave.balls === 0) { + V.bioreactorsXX++; + _gender = "XX"; } else { - V.bioreactorsHerm++, _gender = "herm"; + V.bioreactorsHerm++; + _gender = "herm"; } } else { - if (_slave.balls === 0) { - V.bioreactorsBarren++, _gender = "barren"; + if (slave.balls === 0) { + V.bioreactorsBarren++; + _gender = "barren"; } else { - V.bioreactorsXY++, _gender = "XY"; + V.bioreactorsXY++; + _gender = "XY"; } } - <<setLocalPronouns _slave>> - _ageInWeeks = 52*(V.retirementAge-_slave.physicalAge); - <br><br> - V.SlaveFullName(_slave)'s breasts - if (_slave.balls > 0) { - r.push(`, balls`); - } - if (_slave.ovaries === 1) { - 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`); - if (_slave.balls > 0) { - r.push(`${V.1000*Math.trunc((_BF[_gender].cum*_ageInWeeks)/1000)}`); + ({ + he, him, his, himself, He, His, wife, girl + } = getPronouns(slave)); + const _ageInWeeks = 52*(V.retirementAge-slave.physicalAge); + // <br><br> + r.push(`${SlaveFullName(slave)}'s breasts`); + if (slave.balls > 0) { + r.push(`, balls`); + } + if (slave.ovaries === 1) { + 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`); + if (slave.balls > 0) { + r.push(`${1000*Math.trunc((_BF[_gender].cum*_ageInWeeks)/1000)}`); r.push(`liters of cum,`); } - if (_slave.ovaries === 1) { - r.push(`${V.100*Math.trunc((_BF[_gender].femCum*_ageInWeeks)/100)}`); + if (slave.ovaries === 1) { + r.push(`${100*Math.trunc((_BF[_gender].femCum*_ageInWeeks)/100)}`); r.push(`liters of vaginal secretions,`); if (V.dairyPregSetting === 3) { - r.push(`${V.13*(V.retirementAge-_${slave.physicalAge)}}`); + r.push(`${13*(V.retirementAge-slave.physicalAge)}`); } else { - r.push(`${V.5*(V.retirementAge-_${slave.physicalAge)}}`); + r.push(`${5*(V.retirementAge-slave.physicalAge)}`); } r.push(`slaves,`); } r.push(`and`); - r.push(`${V.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.V.retirementAge-_${slave.physicalAge}}`); + r.push(`${V.retirementAge-slave.physicalAge}`); r.push(`year period before its biological components must be replaced.`); - r.push(`${V.removeSlave(_slave)}`); - <<break>> + removeSlave(slave); + break; } - <</for>> + } } if (V.dairyDecoration !== "standard") { - <br><br> _dairyNameCaps's <span class="green">V.dairyDecoration style is well known.</span> + // <br><br> + r.push(`${_dairyNameCaps}'s <span class="green">V.dairyDecoration style is well known.</span>`); } if (_DL > 0) { - <!-- Statistics output --> - <<includeDOM App.Facilities.Dairy.Stats(false)>> - <<timed 50ms>> - <<replace #dairy-stats>> - <<includeDOM App.Facilities.Dairy.Stats(true)>> - <</replace>> - <</timed>> - } - if (_DL + _Tadd) > 0 || V.MilkmaidID !== 0 { - <br><br> + // Dairy stats + el.append(App.Facilities.Brothel.Stats(false)); + dairyStats.append(App.Facilities.Dairy.Stats(true)); } -}; \ No newline at end of file +}; -- GitLab