From 1f3a9b9d64a3bbed3c264b3d029398b16a112920 Mon Sep 17 00:00:00 2001 From: ezsh <ezsh.junk@gmail.com> Date: Mon, 30 Jan 2023 08:25:09 +0100 Subject: [PATCH] Implants do not (yet?) produce milk --- js/medicine/surgery/exotic/retrogradeVirusInjectionNCS.js | 4 ++-- src/endWeek/player/prLongTermPhysicalEffects.js | 2 +- src/endWeek/saLongTermPhysicalEffects.js | 6 +++--- src/events/RE/reNickname.js | 2 +- src/js/utilsSlave.js | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/js/medicine/surgery/exotic/retrogradeVirusInjectionNCS.js b/js/medicine/surgery/exotic/retrogradeVirusInjectionNCS.js index 7655991923d..73f3f4144f4 100644 --- a/js/medicine/surgery/exotic/retrogradeVirusInjectionNCS.js +++ b/js/medicine/surgery/exotic/retrogradeVirusInjectionNCS.js @@ -81,9 +81,9 @@ App.Medicine.Surgery.Reactions.RetrogradeVirusInjectionNCS = class extends App.M genitalChanges.push('labia'); slave.labia -= 1; } - if (slave.boobs - slave.boobsImplant - slave.boobsMilk > 300) { + if (App.Medicine.fleshSize(slave, 'boobs') > 300) { genitalChanges.push('boobs'); - slave.boobs -= Math.round(slave.boobs * .1); + slave.boobs -= Math.round(App.Medicine.fleshSize(slave, 'boobs') * .1); } if ((slave.shoulders - Math.abs(slave.shouldersImplant) > -1) && (slave.hips - Math.abs(slave.hipsImplant) > -1)) { physicalChanges.push(`both ${his} hips and shoulders are <span class="change negative">less wide,</span>`); diff --git a/src/endWeek/player/prLongTermPhysicalEffects.js b/src/endWeek/player/prLongTermPhysicalEffects.js index e141c20d201..6085c7d5f93 100644 --- a/src/endWeek/player/prLongTermPhysicalEffects.js +++ b/src/endWeek/player/prLongTermPhysicalEffects.js @@ -574,7 +574,7 @@ App.EndWeek.Player.longTermPhysicalEffects = function(PC = V.PC) { } } else if ((boobSize >= 300) && ((PC.NCSyouthening >= 6) || (random(1, 100) < 50)) && gigantomastiaMod !== 3) { r.push(`Your <span class="ncs">NCS</span> <span class="change negative">trims down your chest.</span>`); - PC.boobs -= Math.round(PC.boobs * .09); + PC.boobs -= Math.round(boobSize * .09); countNCS++; } /* diff --git a/src/endWeek/saLongTermPhysicalEffects.js b/src/endWeek/saLongTermPhysicalEffects.js index a1e6f60f14b..b8d38a68ea9 100644 --- a/src/endWeek/saLongTermPhysicalEffects.js +++ b/src/endWeek/saLongTermPhysicalEffects.js @@ -6,8 +6,8 @@ App.SlaveAssignment.longTermPhysicalEffects = function saLongTermPhysicalEffects const r = []; const gigantomastiaMod = slave.geneticQuirks.gigantomastia === 2 ? (slave.geneticQuirks.macromastia === 2 ? 3 : 2) : 1; - const boobSize = slave.boobs - slave.boobsImplant - slave.boobsMilk; - const buttSize = slave.butt - slave.buttImplant; + const boobSize = App.Medicine.fleshSize(slave, 'boobs'); + const buttSize = App.Medicine.fleshSize(slave, 'butt'); const totalInt = slave.intelligence + slave.intelligenceImplant; const { @@ -817,7 +817,7 @@ App.SlaveAssignment.longTermPhysicalEffects = function saLongTermPhysicalEffects } } else if ((boobSize >= 300) && ((slave.NCSyouthening >= 6) || (random(1, 100) < 50)) && gigantomastiaMod !== 3) { r.push(`${His} <span class="orange">NCS</span> has <span class="change negative">reduced the size of ${his} tits.</span>`); - slave.boobs -= Math.round(slave.boobs * .09); + slave.boobs -= Math.round(boobSize * .09); countNCS++; } /* diff --git a/src/events/RE/reNickname.js b/src/events/RE/reNickname.js index 27893d81f1e..63adb21caa0 100644 --- a/src/events/RE/reNickname.js +++ b/src/events/RE/reNickname.js @@ -1175,7 +1175,7 @@ App.Events.RENickname = class RENickname extends App.Events.BaseEvent { }); } } - if ((slave.boobs * slave.lactation) > 1000) { + if ((App.Medicine.fleshSize(slave, 'boobs') * slave.lactation) > 1000) { nickMap.set("cow", { nicknameArray: ["Beefcake", "Bessie", "Bovine", "Cheesehead", "Cow", "Cowbell", "Creamy", "Dairy Queen", "Heifer", "Holstein", "Mega Milk", "Milk Cans", "Milk Factory", "Milk Fountain", "Milkmaid", "Milky Udders", "Milky", "Moo", "Udders"], situationDesc: `is a good stock animal. ${His} body efficiently turns the cheap slave nutrition produced by your arcology into a never-ending river of rich milk.`, diff --git a/src/js/utilsSlave.js b/src/js/utilsSlave.js index bc6bd08ec51..85b74dbdada 100644 --- a/src/js/utilsSlave.js +++ b/src/js/utilsSlave.js @@ -2114,7 +2114,7 @@ globalThis.DegradingName = function(slave) { names.push("Fertile"); } } - if (slave.boobs * slave.lactation > 1000) { + if (App.Medicine.fleshSize(slave, 'boobs') * slave.lactation > 1000) { names.push("Creamy", "Milky"); suffixes.push("Cow"); } -- GitLab