From 7dd441ba72a03dd58f520050eb9d89652a8d5616 Mon Sep 17 00:00:00 2001 From: Anu <anulithic@gmail.com> Date: Mon, 4 Sep 2023 23:43:30 -0700 Subject: [PATCH] Don't report Incubator ass growth above 20 --- src/endWeek/reports/incubatorReport.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/endWeek/reports/incubatorReport.js b/src/endWeek/reports/incubatorReport.js index a060753778b..b14eb45347b 100644 --- a/src/endWeek/reports/incubatorReport.js +++ b/src/endWeek/reports/incubatorReport.js @@ -254,6 +254,7 @@ App.EndWeek.incubatorReport = function() { r = []; if (V.incubator.upgrade.reproduction === 1) { const rearQuirk = tank.geneticQuirks.rearLipedema === 2 ? 2 : 1; + const rearLimit = 20; // current maximum ass size, used to avoid reporting failed growth if (tank.incubatorSettings.reproduction === 2) { r.push(`${His} developing body is being flooded with hormones.`); if (tank.incubatorSettings.weight === 1) { @@ -277,7 +278,7 @@ App.EndWeek.incubatorReport = function() { r.push(`The excess estrogen-laced growth hormones <span class="green">cause ${his} hips to widen for childbirth.</span>`); tank.hips = Math.clamp(tank.hips + 2, -2, 2); } - if (tank.butt < 12*rearQuirk && random(1, 100) > 30/rearQuirk) { + if (tank.butt < rearLimit && tank.butt < 12*rearQuirk && random(1, 100) > 30/rearQuirk) { r.push(`The excess estrogen-laced growth hormones <span class="green">cause ${his} rear to grow fatter.</span>`); tank.butt += 4; } @@ -290,7 +291,7 @@ App.EndWeek.incubatorReport = function() { r.push(`The excess estrogen-laced growth hormones <span class="green">cause ${his} hips to widen for childbirth.</span>`); tank.hips++; } - if (tank.butt < 12*rearQuirk && random(1, 100) > 50/rearQuirk) { + if (tank.butt < rearLimit && tank.butt < 12*rearQuirk && random(1, 100) > 50/rearQuirk) { r.push(`The excess estrogen-laced growth hormones <span class="green">cause ${his} rear to grow fatter.</span>`); tank.butt += 3; } @@ -303,7 +304,7 @@ App.EndWeek.incubatorReport = function() { r.push(`The excess estrogen-laced growth hormones <span class="green">causes ${his} hips to widen for childbirth.</span>`); tank.hips++; } - if (tank.butt < 12*rearQuirk && random(1, 100) > 50/rearQuirk) { + if (tank.butt < rearLimit && tank.butt < 12*rearQuirk && random(1, 100) > 50/rearQuirk) { r.push(`The excess estrogen-laced growth hormones <span class="green">cause ${his} rear grow fatter.</span>`); tank.butt += 2; } @@ -316,7 +317,7 @@ App.EndWeek.incubatorReport = function() { r.push(`The excess estrogen-laced growth hormones <span class="green">cause ${his} hips to widen for childbirth.</span>`); tank.hips++; } - if (tank.butt < 12*rearQuirk && random(1, 100) > 60/rearQuirk) { + if (tank.butt < rearLimit && tank.butt < 12*rearQuirk && random(1, 100) > 60/rearQuirk) { r.push(`The excess estrogen-laced growth hormones <span class="green">cause ${his} rear to grow fatter.</span>`); tank.butt++; } @@ -329,7 +330,7 @@ App.EndWeek.incubatorReport = function() { r.push(`The excess estrogen-laced growth hormones <span class="green">cause ${his} hips to widen for childbirth.</span>`); tank.hips++; } - if (tank.butt < 12*rearQuirk && random(1, 100) > 70/rearQuirk) { + if (tank.butt < rearLimit && tank.butt < 12*rearQuirk && random(1, 100) > 70/rearQuirk) { r.push(`The excess estrogen-laced growth hormones <span class="green">cause ${his} rear to grow fatter.</span>`); tank.butt++; } -- GitLab