diff --git a/js/002-config/fc-js-init.js b/js/002-config/fc-js-init.js index 07aae1b15b699bd263856df1ab215e35658b660a..436a152428ab08ce4f8c53bd46b98903305565f7 100644 --- a/js/002-config/fc-js-init.js +++ b/js/002-config/fc-js-init.js @@ -32,6 +32,7 @@ App.Desc.Player = {}; App.Encyclopedia = {}; App.EndWeek = {}; App.EndWeek.Player = {}; +App.EndWeek.Shared = {}; App.Entity = {}; App.Entity.Utils = {}; App.Events = {}; diff --git a/src/endWeek/nextWeek/nextWeek.js b/src/endWeek/nextWeek/nextWeek.js index c22693fb2bf7f73989599e137592598a4b9f9c25..849f3f5e5a37d572a0089b25f69dc0cb266a0579 100644 --- a/src/endWeek/nextWeek/nextWeek.js +++ b/src/endWeek/nextWeek/nextWeek.js @@ -21,8 +21,47 @@ App.EndWeek.nextWeek = function() { if (V.playerAging === 2) { V.PC.physicalAge++; V.PC.actualAge++; - V.PC.visualAge++; - V.PC.ovaryAge++; + if (V.PC.geneMods.NCS === 1 || (V.PC.geneticQuirks.neoteny >= 2 && V.PC.geneticQuirks.progeria !== 2)) { + /* Induced NCS completely takes over visual aging. Additionally, because of the neoteny aspects of NCS, ovaries don't age quite as fast. */ + /* Unsurprisingly, actual neoteny has the same effect as long as progeria isn't in play. */ + V.PC.ovaryAge += either(0.5, 0.6, 0.7, 0.7, 0.8, 0.9, 1.0); + } else { + V.PC.visualAge++; + V.PC.ovaryAge += either(0.8, 0.9, 0.9, 1.0, 1.0, 1.0, 1.1); + } + if (V.PC.physicalAge <= 18 && V.loliGrow > 0) { + // this is temporary to make physDev not wig out! + if (V.PC.genes === "XX") { + if (V.PC.pubertyXX === 1) { + if (V.PC.pubertyXY === 1) { + V.PC.hormoneBalance = 20; + } else { + V.PC.hormoneBalance = 60; + } + } else { + if (V.PC.pubertyXY === 1) { + V.PC.hormoneBalance = -20; + } else { + V.PC.hormoneBalance = 20; + } + } + } else if (V.PC.genes === "XY") { + if (V.PC.pubertyXX === 1) { + if (V.PC.pubertyXY === 1) { + V.PC.hormoneBalance = 20; + } else { + V.PC.hormoneBalance = 40; + } + } else { + if (V.PC.pubertyXY === 1) { + V.PC.hormoneBalance = -40; + } else { + V.PC.hormoneBalance = 20; + } + } + } + App.EndWeek.Shared.physicalDevelopment(V.PC, true); + } agePCEffects(); } } diff --git a/src/endWeek/shared/physicalDevelopment.js b/src/endWeek/shared/physicalDevelopment.js new file mode 100644 index 0000000000000000000000000000000000000000..5af501c23e4aefd17eef1b2c401fc2310e3a2f81 --- /dev/null +++ b/src/endWeek/shared/physicalDevelopment.js @@ -0,0 +1,3745 @@ +App.EndWeek.Shared.physicalDevelopment = function(actor, player = false) { + let gigantomastiaMod; + let uterineHypersensitivityMod; + const rearQuirk = actor.geneticQuirks.rearLipedema === 2 ? 2 : 0; + const rearQuirkDivider = rearQuirk === 0 ? 1 : rearQuirk; + const dickMod = (actor.geneticQuirks.wellHung === 2 ? 2 : 1); + let physicalAgeSwap; + const tallerPC = (player && actor.height >= Height.mean(actor) + 5); + + if (actor.geneticQuirks.progeria === 2) { + // since progeria increases .physicalAge, we need to work around it. + // nothing other than the incubator drastically desyncs it, and progeria actors do not live through incubation, so this should be fine. + physicalAgeSwap = actor.actualAge; + } else { + physicalAgeSwap = actor.physicalAge; + } + if (actor.geneMods.NCS !== 1) { + /* NCS completely blocks all natural physical growth: no height increases. It also blocks all hormonal secondary sexual * characteristics. So, on the female side: no boobs, no butt, no hips, and no labia. And on the male side: no dick, no clit, no balls, no scrotum, no shoulders. */ + /* so this is a big old NO-OP to skip the physical development. */ + if (actor.geneticQuirks.androgyny === 2) { /* takes a mix of both to create a very androgynous slave */ + if (actor.geneticQuirks.dwarfism === 2 && actor.geneticQuirks.gigantism !== 2) { + increaseHeightDwarf(actor); + } else if (actor.geneticQuirks.gigantism === 2) { + increaseHeightGiant(actor); + } else if (actor.geneticQuirks.neoteny === 2) { + increaseHeightNeoteny(actor); + } else { + increaseHeightXX(actor); + } + if (actor.geneticQuirks.neoteny !== 2) { + if (actor.boobs - actor.boobsImplant <= 300) { + increaseBoobsXX(actor); + } + if (actor.dick.isBetween(0, 3) || actor.geneticQuirks.wellHung === 2) { + increaseDick(actor); + } + if (actor.balls.isBetween(0, 3)) { + increaseBalls(actor); + } + if (actor.vagina > 0 && actor.ovaries > 0 && physicalAgeSwap > actor.pubertyAgeXX) { + increaseWetness(actor); + } + if (actor.waist < 10) { + increaseWaistXY(actor); + } + if (actor.hips - actor.hipsImplant < 0) { + increaseHipsXX(actor); + } + if (actor.butt - actor.buttImplant < 3) { + increaseButtXX(actor); + } + } + increasePregAdaptationXX(actor); + } else if (actor.genes === "XX") { /* loli becoming a woman */ + if (actor.geneticQuirks.dwarfism === 2 && actor.geneticQuirks.gigantism !== 2) { + increaseHeightDwarf(actor); + } else if (actor.geneticQuirks.gigantism === 2) { + increaseHeightGiant(actor); + } else if (actor.geneticQuirks.neoteny === 2) { + increaseHeightNeoteny(actor); + } else { + increaseHeightXX(actor); + } + if (physicalAgeSwap === 13 || (physicalAgeSwap > 13 && (actor.hormoneBalance >= 100 || actor.hormoneBalance <= -100))) { + increaseFaceXX(actor); + if (actor.voice > 0) { + increaseVoiceXX(actor); + } + } + if (actor.geneticQuirks.neoteny !== 2) { + increaseBoobsXX(actor); + if (actor.clit > 0) { + increaseClit(actor); + } + if (actor.vagina > 0 && actor.ovaries > 0 && physicalAgeSwap > actor.pubertyAgeXX) { + increaseWetness(actor); + } + increaseWaistXX(actor); + increaseHipsXX(actor); + increaseButtXX(actor); + } + increasePregAdaptationXX(actor); + } else { + /* shota becoming a man */ + if (actor.geneticQuirks.dwarfism === 2 && actor.geneticQuirks.gigantism !== 2) { + increaseHeightDwarf(actor); + } else if (actor.geneticQuirks.gigantism === 2) { + increaseHeightGiant(actor); + } else if (actor.geneticQuirks.neoteny === 2) { + increaseHeightNeoteny(actor); + } else { + increaseHeightXY(actor); + } + if (physicalAgeSwap === 13 || (physicalAgeSwap > 13 && (actor.hormoneBalance >= 100 || actor.hormoneBalance <= -100))) { + increaseFaceXY(actor); + if (actor.voice > 1) { + increaseVoiceXY(actor); + } + } + if (actor.geneticQuirks.neoteny !== 2) { + increaseBoobsXY(actor); + if (actor.dick > 0) { + increaseDick(actor); + } + if (actor.balls > 0) { + increaseBalls(actor); + } + increaseWaistXY(actor); + increaseHipsXY(actor); + increaseButtXY(actor); + } + increasePregAdaptationXY(actor); + } + } + + /** + * @param {FC.HumanState} actor + */ + function increaseHeightXX(actor) { + if (actor.hormoneBalance >= 200) { + if (physicalAgeSwap === 3) { + if (actor.height <= 91) { + actor.height += jsEither([8, 8, 9, 9]); + } else if (actor.height <= 101) { + actor.height += 5; + } + } else if (physicalAgeSwap === 4) { + if (actor.height <= 101) { + actor.height += jsEither([6, 6, 7, 7]); + } else if (actor.height <= 109) { + actor.height += 4; + } + } else if (physicalAgeSwap === 5) { + if (actor.height <= 109) { + actor.height += jsEither([6, 6, 7, 7]); + } else if (actor.height <= 116) { + actor.height += 4; + } + } else if (physicalAgeSwap === 6) { + if (actor.height <= 116) { + actor.height += jsEither([5, 5, 6, 6]); + } else if (actor.height <= 124) { + actor.height += 3; + } + } else if (physicalAgeSwap === 7) { + if (actor.height <= 124) { + actor.height += jsEither([7, 7, 8, 8]); + } else if (actor.height <= 131) { + actor.height += 3; + } + } else if (physicalAgeSwap === 8) { + if (actor.height <= 131) { + actor.height += jsEither([5, 5, 6, 6]); + } else if (actor.height <= 137) { + actor.height += 3; + } + } else if (physicalAgeSwap === 9) { + if (actor.height <= 137) { + actor.height += jsEither([4, 4, 5, 5]); + } else if (actor.height <= 144) { + actor.height += 3; + } + } else if (physicalAgeSwap === 10) { + if (actor.height <= 144) { + actor.height += jsEither([6, 6, 7, 7]); + } else if (actor.height <= 156) { + actor.height += 3; + } + } else if (physicalAgeSwap === 11) { + if (actor.height <= 156) { + actor.height += jsEither([5, 5, 6, 6]); + } else if (actor.height <= 163) { + actor.height += 3; + } + } else if (physicalAgeSwap === 12) { + if (actor.height <= 163) { + actor.height += jsEither([6, 6, 7, 7]); + } else if (actor.height <= 168) { + actor.height += 3; + } + } else if (physicalAgeSwap === 13) { + if (actor.height <= 168) { + actor.height += jsEither([5, 5, 6, 6]); + } else if (actor.height <= 171) { + actor.height += 3; + } + } else if (physicalAgeSwap === 14) { + if (actor.height <= 171) { + actor.height += jsEither([4, 4, 5, 5]); + } else if (actor.height <= 173) { + actor.height += 3; + } + } else if (physicalAgeSwap === 15) { + if (actor.height <= 174) { + actor.height += jsEither([0, 0, 1, 1]); + } + } else if (physicalAgeSwap === 16) { + if (actor.height <= 174) { + actor.height += jsEither([0, 0, 1, 1]); + } + } else if (physicalAgeSwap === 17) { + if (actor.height <= 174) { + actor.height += jsEither([0, 0, 1, 1]); + } + } else if (physicalAgeSwap === 18) { + if (actor.height <= 174) { + actor.height += jsEither([0, 0, 1, 1]); + } + } + } else if (actor.hormoneBalance >= 100) { + if (physicalAgeSwap === 3) { + if (actor.height <= 91) { + actor.height += jsEither([8, 8, 9, 9, 9]); + } else if (actor.height <= 101) { + actor.height += 5; + } + } else if (physicalAgeSwap === 4) { + if (actor.height <= 101) { + actor.height += jsEither([6, 6, 7, 7, 7]); + } else if (actor.height <= 109) { + actor.height += 4; + } + } else if (physicalAgeSwap === 5) { + if (actor.height <= 109) { + actor.height += jsEither([6, 6, 7, 7, 7]); + } else if (actor.height <= 116) { + actor.height += 4; + } + } else if (physicalAgeSwap === 6) { + if (actor.height <= 116) { + actor.height += jsEither([5, 5, 6, 6, 6]); + } else if (actor.height <= 124) { + actor.height += 3; + } + } else if (physicalAgeSwap === 7) { + if (actor.height <= 124) { + actor.height += jsEither([7, 7, 8, 8, 8]); + } else if (actor.height <= 131) { + actor.height += 3; + } + } else if (physicalAgeSwap === 8) { + if (actor.height <= 131) { + actor.height += jsEither([5, 5, 6, 6, 6]); + } else if (actor.height <= 137) { + actor.height += 3; + } + } else if (physicalAgeSwap === 9) { + if (actor.height <= 137) { + actor.height += jsEither([4, 4, 5, 5, 5]); + } else if (actor.height <= 144) { + actor.height += 3; + } + } else if (physicalAgeSwap === 10) { + if (actor.height <= 144) { + actor.height += jsEither([6, 6, 7, 7, 7]); + } else if (actor.height <= 156) { + actor.height += 3; + } + } else if (physicalAgeSwap === 11) { + if (actor.height <= 156) { + actor.height += jsEither([5, 5, 6, 6, 6]); + } else if (actor.height <= 163) { + actor.height += 3; + } + } else if (physicalAgeSwap === 12) { + if (actor.height <= 163) { + actor.height += jsEither([6, 6, 7, 7, 7]); + } else if (actor.height <= 168) { + actor.height += 3; + } + } else if (physicalAgeSwap === 13) { + if (actor.height <= 168) { + actor.height += jsEither([5, 5, 6, 6, 6]); + } else if (actor.height <= 171) { + actor.height += 3; + } + } else if (physicalAgeSwap === 14) { + if (actor.height <= 171) { + actor.height += jsEither([4, 4, 5, 5, 5]); + } else if (actor.height <= 173) { + actor.height += 3; + } + } else if (physicalAgeSwap === 15) { + if (actor.height <= 174) { + actor.height += jsEither([0, 0, 1, 1, 1]); + } + } else if (physicalAgeSwap === 16) { + if (actor.height <= 174) { + actor.height += jsEither([0, 0, 1, 1, 1]); + } + } else if (physicalAgeSwap === 17) { + if (actor.height <= 174) { + actor.height += jsEither([0, 0, 1, 1, 1]); + } + } else if (physicalAgeSwap === 18) { + if (actor.height <= 174) { + actor.height += jsEither([0, 0, 1, 1, 1]); + } + } + } else if (actor.hormoneBalance <= -200) { + if (physicalAgeSwap === 3) { + if (actor.height <= 91) { + actor.height += jsEither([9, 9, 9, 10, 10]); + } else if (actor.height <= 101) { + actor.height += 5; + } + } else if (physicalAgeSwap === 4) { + if (actor.height <= 101) { + actor.height += jsEither([7, 7, 7, 8, 8]); + } else if (actor.height <= 109) { + actor.height += 4; + } + } else if (physicalAgeSwap === 5) { + if (actor.height <= 109) { + actor.height += jsEither([7, 7, 7, 8, 8]); + } else if (actor.height <= 116) { + actor.height += 4; + } + } else if (physicalAgeSwap === 6) { + if (actor.height <= 116) { + actor.height += jsEither([6, 6, 6, 7, 7]); + } else if (actor.height <= 124) { + actor.height += 3; + } + } else if (physicalAgeSwap === 7) { + if (actor.height <= 124) { + actor.height += jsEither([8, 8, 8, 9, 9]); + } else if (actor.height <= 131) { + actor.height += 3; + } + } else if (physicalAgeSwap === 8) { + if (actor.height <= 131) { + actor.height += jsEither([6, 6, 6, 7, 7]); + } else if (actor.height <= 137) { + actor.height += 3; + } + } else if (physicalAgeSwap === 9) { + if (actor.height <= 137) { + actor.height += jsEither([5, 5, 5, 6, 6]); + } else if (actor.height <= 144) { + actor.height += 3; + } + } else if (physicalAgeSwap === 10) { + if (actor.height <= 144) { + actor.height += jsEither([7, 7, 7, 8, 8]); + } else if (actor.height <= 156) { + actor.height += 3; + } + } else if (physicalAgeSwap === 11) { + if (actor.height <= 156) { + actor.height += jsEither([6, 6, 6, 7, 7]); + } else if (actor.height <= 163) { + actor.height += 3; + } + } else if (physicalAgeSwap === 12) { + if (actor.height <= 163) { + actor.height += jsEither([7, 7, 7, 8, 8]); + } else if (actor.height <= 168) { + actor.height += 3; + } + } else if (physicalAgeSwap === 13) { + if (actor.height <= 168) { + actor.height += jsEither([6, 6, 6, 7, 7]); + } else if (actor.height <= 171) { + actor.height += 3; + } + } else if (physicalAgeSwap === 14) { + if (actor.height <= 171) { + actor.height += jsEither([5, 5, 5, 6, 6]); + } else if (actor.height <= 173) { + actor.height += 3; + } + } else if (physicalAgeSwap === 15) { + if (actor.height <= 174) { + actor.height += jsEither([1, 1, 1, 2, 2]); + } + } else if (physicalAgeSwap === 16) { + if (actor.height <= 174) { + actor.height += jsEither([1, 1, 1, 2, 2]); + } + } else if (physicalAgeSwap === 17) { + if (actor.height <= 174) { + actor.height += jsEither([1, 1, 1, 2, 2]); + } + } else if (physicalAgeSwap === 18) { + if (actor.height <= 174) { + actor.height += jsEither([1, 1, 1, 2, 2]); + } + } + } else if (actor.hormoneBalance <= -100) { + if (physicalAgeSwap === 3) { + if (actor.height <= 91) { + actor.height += jsEither([8, 9, 9, 10, 10]); + } else if (actor.height <= 101) { + actor.height += 5; + } + } else if (physicalAgeSwap === 4) { + if (actor.height <= 101) { + actor.height += jsEither([6, 7, 7, 8, 8]); + } else if (actor.height <= 109) { + actor.height += 4; + } + } else if (physicalAgeSwap === 5) { + if (actor.height <= 109) { + actor.height += jsEither([6, 7, 7, 8, 8]); + } else if (actor.height <= 116) { + actor.height += 4; + } + } else if (physicalAgeSwap === 6) { + if (actor.height <= 116) { + actor.height += jsEither([5, 6, 6, 7, 7]); + } else if (actor.height <= 124) { + actor.height += 3; + } + } else if (physicalAgeSwap === 7) { + if (actor.height <= 124) { + actor.height += jsEither([7, 8, 8, 9, 9]); + } else if (actor.height <= 131) { + actor.height += 3; + } + } else if (physicalAgeSwap === 8) { + if (actor.height <= 131) { + actor.height += jsEither([5, 6, 6, 7, 7]); + } else if (actor.height <= 137) { + actor.height += 3; + } + } else if (physicalAgeSwap === 9) { + if (actor.height <= 137) { + actor.height += jsEither([4, 5, 5, 6, 6]); + } else if (actor.height <= 144) { + actor.height += 3; + } + } else if (physicalAgeSwap === 10) { + if (actor.height <= 144) { + actor.height += jsEither([6, 7, 7, 8, 8]); + } else if (actor.height <= 156) { + actor.height += 3; + } + } else if (physicalAgeSwap === 11) { + if (actor.height <= 156) { + actor.height += jsEither([5, 6, 6, 7, 7]); + } else if (actor.height <= 163) { + actor.height += 3; + } + } else if (physicalAgeSwap === 12) { + if (actor.height <= 163) { + actor.height += jsEither([6, 7, 7, 8, 8]); + } else if (actor.height <= 168) { + actor.height += 3; + } + } else if (physicalAgeSwap === 13) { + if (actor.height <= 168) { + actor.height += jsEither([5, 6, 6, 7, 7]); + } else if (actor.height <= 171) { + actor.height += 3; + } + } else if (physicalAgeSwap === 14) { + if (actor.height <= 171) { + actor.height += jsEither([4, 5, 5, 6, 6]); + } else if (actor.height <= 173) { + actor.height += 3; + } + } else if (physicalAgeSwap === 15) { + if (actor.height <= 174) { + actor.height += jsEither([0, 1, 1, 2, 2]); + } + } else if (physicalAgeSwap === 16) { + if (actor.height <= 174) { + actor.height += jsEither([0, 1, 1, 2, 2]); + } + } else if (physicalAgeSwap === 17) { + if (actor.height <= 174) { + actor.height += jsEither([0, 1, 1, 2, 2]); + } + } else if (physicalAgeSwap === 18) { + if (actor.height <= 174) { + actor.height += jsEither([0, 1, 1, 2, 2]); + } + } + } else { + if (physicalAgeSwap === 3) { + if (actor.height <= 91) { + actor.height += jsEither([8, 8, 9, 9, 9, 10]); + } else if (actor.height <= 101) { + actor.height += 5; + } + } else if (physicalAgeSwap === 4) { + if (actor.height <= 101) { + actor.height += jsEither([6, 6, 7, 7, 8, 8]); + } else if (actor.height <= 109) { + actor.height += 4; + } + } else if (physicalAgeSwap === 5) { + if (actor.height <= 109) { + actor.height += jsEither([6, 6, 7, 7, 7, 8]); + } else if (actor.height <= 116) { + actor.height += 4; + } + } else if (physicalAgeSwap === 6) { + if (actor.height <= 116) { + actor.height += jsEither([5, 5, 6, 6, 6, 7]); + } else if (actor.height <= 124) { + actor.height += 3; + } + } else if (physicalAgeSwap === 7) { + if (actor.height <= 124) { + actor.height += jsEither([7, 7, 8, 8, 8, 9]); + } else if (actor.height <= 131) { + actor.height += 3; + } + } else if (physicalAgeSwap === 8) { + if (actor.height <= 131) { + actor.height += jsEither([5, 5, 6, 6, 6, 7]); + } else if (actor.height <= 137) { + actor.height += 3; + } + } else if (physicalAgeSwap === 9) { + if (actor.height <= 137) { + actor.height += jsEither([4, 4, 5, 5, 5, 6]); + } else if (actor.height <= 144) { + actor.height += 3; + } + } else if (physicalAgeSwap === 10) { + if (actor.height <= 144) { + actor.height += jsEither([6, 6, 7, 7, 7, 8]); + } else if (actor.height <= 156) { + actor.height += 3; + } + } else if (physicalAgeSwap === 11) { + if (actor.height <= 156) { + actor.height += jsEither([5, 5, 6, 6, 6, 7]); + } else if (actor.height <= 163) { + actor.height += 3; + } + } else if (physicalAgeSwap === 12) { + if (actor.height <= 163) { + actor.height += jsEither([6, 6, 7, 7, 7, 8]); + } else if (actor.height <= 168) { + actor.height += 3; + } + } else if (physicalAgeSwap === 13) { + if (actor.height <= 168) { + actor.height += jsEither([5, 5, 6, 6, 6, 7]); + } else if (actor.height <= 171) { + actor.height += 3; + } + } else if (physicalAgeSwap === 14) { + if (actor.height <= 171) { + actor.height += jsEither([4, 4, 5, 5, 5, 6]); + } else if (actor.height <= 173) { + actor.height += 3; + } + } else if (physicalAgeSwap === 15) { + if (actor.height <= 174) { + actor.height += jsEither([0, 0, 1, 1, 1, 2]); + } + } else if (physicalAgeSwap === 16) { + if (actor.height <= 174) { + actor.height += jsEither([0, 0, 1, 1, 1, 2]); + } + } else if (physicalAgeSwap === 17) { + if (actor.height <= 174) { + actor.height += jsEither([0, 0, 1, 1, 1, 2]); + } + } else if (physicalAgeSwap === 18) { + if (actor.height <= 174) { + actor.height += jsEither([0, 0, 1, 1, 1, 2]); + } + } + } + // experiment - Let's see if this keeps players on average above average height or if it makes them too tall in the long run. + if (tallerPC) { + actor.height += random(0, 3); + } + } + + /** + * @param {FC.HumanState} actor + */ + function increaseHeightXY(actor) { + if (actor.hormoneBalance >= 200) { + if (physicalAgeSwap === 3) { + if (actor.height <= 93) { + actor.height += jsEither([9, 9, 10, 10]); + } else if (actor.height <= 103) { + actor.height += 6; + } + } else if (physicalAgeSwap === 4) { + if (actor.height <= 103) { + actor.height += jsEither([7, 7, 8, 8]); + } else if (actor.height <= 110) { + actor.height += 5; + } + } else if (physicalAgeSwap === 5) { + if (actor.height <= 110) { + actor.height += jsEither([6, 6, 7, 7]); + } else if (actor.height <= 117) { + actor.height += 4; + } + } else if (physicalAgeSwap === 6) { + if (actor.height <= 117) { + actor.height += jsEither([6, 6, 7, 7]); + } else if (actor.height <= 124) { + actor.height += 4; + } + } else if (physicalAgeSwap === 7) { + if (actor.height <= 124) { + actor.height += jsEither([6, 6, 7, 7]); + } else if (actor.height <= 131) { + actor.height += 4; + } + } else if (physicalAgeSwap === 8) { + if (actor.height <= 131) { + actor.height += jsEither([5, 5, 6, 6]); + } else if (actor.height <= 137) { + actor.height += 3; + } + } else if (physicalAgeSwap === 9) { + if (actor.height <= 137) { + actor.height += jsEither([4, 4, 5, 5]); + } else if (actor.height <= 144) { + actor.height += 3; + } + } else if (physicalAgeSwap === 10) { + if (actor.height <= 144) { + actor.height += jsEither([5, 5, 6, 6]); + } else if (actor.height <= 150) { + actor.height += 3; + } + } else if (physicalAgeSwap === 11) { + if (actor.height <= 150) { + actor.height += jsEither([5, 5, 6, 6]); + } else if (actor.height <= 156) { + actor.height += 3; + } + } else if (physicalAgeSwap === 12) { + if (actor.height <= 156) { + actor.height += jsEither([5, 5, 6, 6]); + } else if (actor.height <= 162) { + actor.height += 3; + } + } else if (physicalAgeSwap === 13) { + if (actor.height <= 162) { + actor.height += jsEither([7, 7, 8, 8]); + } else if (actor.height <= 170) { + actor.height += 5; + } + } else if (physicalAgeSwap === 14) { + if (actor.height <= 170) { + actor.height += jsEither([6, 6, 7, 7]); + } else if (actor.height <= 177) { + actor.height += 4; + } + } else if (physicalAgeSwap === 15) { + if (actor.height <= 177) { + actor.height += jsEither([6, 6, 7, 7]); + } else if (actor.height <= 184) { + actor.height += 4; + } + } else if (physicalAgeSwap === 16) { + if (actor.height <= 184) { + actor.height += jsEither([2, 2, 3, 3]); + } + } else if (physicalAgeSwap === 17) { + if (actor.height <= 185) { + actor.height += jsEither([1, 1, 2, 2]); + } + } else if (physicalAgeSwap === 18) { + if (actor.height <= 186) { + actor.height += jsEither([0, 0, 1, 1]); + } + } + } else if (actor.hormoneBalance >= 100) { + if (physicalAgeSwap === 3) { + if (actor.height <= 93) { + actor.height += jsEither([9, 9, 9, 10, 10]); + } else if (actor.height <= 103) { + actor.height += 6; + } + } else if (physicalAgeSwap === 4) { + if (actor.height <= 103) { + actor.height += jsEither([7, 7, 8, 8, 8]); + } else if (actor.height <= 110) { + actor.height += 5; + } + } else if (physicalAgeSwap === 5) { + if (actor.height <= 110) { + actor.height += jsEither([6, 6, 7, 7, 7]); + } else if (actor.height <= 117) { + actor.height += 4; + } + } else if (physicalAgeSwap === 6) { + if (actor.height <= 117) { + actor.height += jsEither([6, 6, 7, 7, 7]); + } else if (actor.height <= 124) { + actor.height += 4; + } + } else if (physicalAgeSwap === 7) { + if (actor.height <= 124) { + actor.height += jsEither([6, 6, 7, 7, 7]); + } else if (actor.height <= 131) { + actor.height += 4; + } + } else if (physicalAgeSwap === 8) { + if (actor.height <= 131) { + actor.height += jsEither([5, 5, 6, 6, 6]); + } else if (actor.height <= 137) { + actor.height += 3; + } + } else if (physicalAgeSwap === 9) { + if (actor.height <= 137) { + actor.height += jsEither([4, 4, 5, 5, 5]); + } else if (actor.height <= 144) { + actor.height += 3; + } + } else if (physicalAgeSwap === 10) { + if (actor.height <= 144) { + actor.height += jsEither([5, 5, 6, 6, 6]); + } else if (actor.height <= 150) { + actor.height += 3; + } + } else if (physicalAgeSwap === 11) { + if (actor.height <= 150) { + actor.height += jsEither([5, 5, 6, 6, 6]); + } else if (actor.height <= 156) { + actor.height += 3; + } + } else if (physicalAgeSwap === 12) { + if (actor.height <= 156) { + actor.height += jsEither([5, 5, 6, 6, 6]); + } else if (actor.height <= 162) { + actor.height += 3; + } + } else if (physicalAgeSwap === 13) { + if (actor.height <= 162) { + actor.height += jsEither([7, 7, 8, 8, 8]); + } else if (actor.height <= 170) { + actor.height += 5; + } + } else if (physicalAgeSwap === 14) { + if (actor.height <= 170) { + actor.height += jsEither([6, 6, 7, 7, 7]); + } else if (actor.height <= 177) { + actor.height += 4; + } + } else if (physicalAgeSwap === 15) { + if (actor.height <= 177) { + actor.height += jsEither([6, 6, 7, 7, 7]); + } else if (actor.height <= 184) { + actor.height += 4; + } + } else if (physicalAgeSwap === 16) { + if (actor.height <= 184) { + actor.height += jsEither([2, 2, 3, 3, 3]); + } + } else if (physicalAgeSwap === 17) { + if (actor.height <= 185) { + actor.height += jsEither([1, 1, 2, 2, 2]); + } + } else if (physicalAgeSwap === 18) { + if (actor.height <= 186) { + actor.height += jsEither([0, 0, 1, 1, 1]); + } + } + } else if (actor.hormoneBalance <= -200) { + if (physicalAgeSwap === 3) { + if (actor.height <= 93) { + actor.height += jsEither([10, 10, 11, 11]); + } else if (actor.height <= 103) { + actor.height += 6; + } + } else if (physicalAgeSwap === 4) { + if (actor.height <= 103) { + actor.height += jsEither([8, 8, 9, 9]); + } else if (actor.height <= 110) { + actor.height += 5; + } + } else if (physicalAgeSwap === 5) { + if (actor.height <= 110) { + actor.height += jsEither([7, 7, 8, 8]); + } else if (actor.height <= 117) { + actor.height += 4; + } + } else if (physicalAgeSwap === 6) { + if (actor.height <= 117) { + actor.height += jsEither([7, 7, 8, 8]); + } else if (actor.height <= 124) { + actor.height += 4; + } + } else if (physicalAgeSwap === 7) { + if (actor.height <= 124) { + actor.height += jsEither([7, 7, 8, 8]); + } else if (actor.height <= 131) { + actor.height += 4; + } + } else if (physicalAgeSwap === 8) { + if (actor.height <= 131) { + actor.height += jsEither([6, 6, 7, 7]); + } else if (actor.height <= 137) { + actor.height += 3; + } + } else if (physicalAgeSwap === 9) { + if (actor.height <= 137) { + actor.height += jsEither([5, 5, 6, 6]); + } else if (actor.height <= 144) { + actor.height += 3; + } + } else if (physicalAgeSwap === 10) { + if (actor.height <= 144) { + actor.height += jsEither([6, 6, 7, 7]); + } else if (actor.height <= 150) { + actor.height += 3; + } + } else if (physicalAgeSwap === 11) { + if (actor.height <= 150) { + actor.height += jsEither([6, 6, 7, 7]); + } else if (actor.height <= 156) { + actor.height += 3; + } + } else if (physicalAgeSwap === 12) { + if (actor.height <= 156) { + actor.height += jsEither([6, 6, 7, 7]); + } else if (actor.height <= 162) { + actor.height += 3; + } + } else if (physicalAgeSwap === 13) { + if (actor.height <= 162) { + actor.height += jsEither([8, 8, 9, 9]); + } else if (actor.height <= 170) { + actor.height += 5; + } + } else if (physicalAgeSwap === 14) { + if (actor.height <= 170) { + actor.height += jsEither([7, 7, 8, 8]); + } else if (actor.height <= 177) { + actor.height += 4; + } + } else if (physicalAgeSwap === 15) { + if (actor.height <= 177) { + actor.height += jsEither([7, 7, 8, 8]); + } else if (actor.height <= 184) { + actor.height += 4; + } + } else if (physicalAgeSwap === 16) { + if (actor.height <= 184) { + actor.height += jsEither([3, 3, 4, 4]); + } + } else if (physicalAgeSwap === 17) { + if (actor.height <= 185) { + actor.height += jsEither([2, 2, 3, 3]); + } + } else if (physicalAgeSwap === 18) { + if (actor.height <= 186) { + actor.height += jsEither([1, 1, 2, 2]); + } + } + } else if (actor.hormoneBalance <= -100) { + if (physicalAgeSwap === 3) { + if (actor.height <= 93) { + actor.height += jsEither([10, 10, 10, 11, 11]); + } else if (actor.height <= 103) { + actor.height += 6; + } + } else if (physicalAgeSwap === 4) { + if (actor.height <= 103) { + actor.height += jsEither([8, 8, 8, 9, 9]); + } else if (actor.height <= 110) { + actor.height += 5; + } + } else if (physicalAgeSwap === 5) { + if (actor.height <= 110) { + actor.height += jsEither([7, 7, 7, 8, 8]); + } else if (actor.height <= 117) { + actor.height += 4; + } + } else if (physicalAgeSwap === 6) { + if (actor.height <= 117) { + actor.height += jsEither([7, 7, 7, 8, 8]); + } else if (actor.height <= 124) { + actor.height += 4; + } + } else if (physicalAgeSwap === 7) { + if (actor.height <= 124) { + actor.height += jsEither([7, 7, 7, 8, 8]); + } else if (actor.height <= 131) { + actor.height += 4; + } + } else if (physicalAgeSwap === 8) { + if (actor.height <= 131) { + actor.height += jsEither([6, 6, 6, 7, 7]); + } else if (actor.height <= 137) { + actor.height += 3; + } + } else if (physicalAgeSwap === 9) { + if (actor.height <= 137) { + actor.height += jsEither([5, 5, 5, 6, 6]); + } else if (actor.height <= 144) { + actor.height += 3; + } + } else if (physicalAgeSwap === 10) { + if (actor.height <= 144) { + actor.height += jsEither([6, 6, 6, 7, 7]); + } else if (actor.height <= 150) { + actor.height += 3; + } + } else if (physicalAgeSwap === 11) { + if (actor.height <= 150) { + actor.height += jsEither([6, 6, 6, 7, 7]); + } else if (actor.height <= 156) { + actor.height += 3; + } + } else if (physicalAgeSwap === 12) { + if (actor.height <= 156) { + actor.height += jsEither([6, 6, 6, 7, 7]); + } else if (actor.height <= 162) { + actor.height += 3; + } + } else if (physicalAgeSwap === 13) { + if (actor.height <= 162) { + actor.height += jsEither([8, 8, 8, 9, 9]); + } else if (actor.height <= 170) { + actor.height += 5; + } + } else if (physicalAgeSwap === 14) { + if (actor.height <= 170) { + actor.height += jsEither([7, 7, 7, 8, 8]); + } else if (actor.height <= 177) { + actor.height += 4; + } + } else if (physicalAgeSwap === 15) { + if (actor.height <= 177) { + actor.height += jsEither([7, 7, 7, 8, 8]); + } else if (actor.height <= 184) { + actor.height += 4; + } + } else if (physicalAgeSwap === 16) { + if (actor.height <= 184) { + actor.height += jsEither([3, 3, 3, 4, 4]); + } + } else if (physicalAgeSwap === 17) { + if (actor.height <= 185) { + actor.height += jsEither([2, 2, 2, 3, 3]); + } + } else if (physicalAgeSwap === 18) { + if (actor.height <= 186) { + actor.height += jsEither([1, 1, 1, 2, 2]); + } + } + } else { + if (physicalAgeSwap === 3) { + if (actor.height <= 93) { + actor.height += jsEither([9, 9, 10, 10, 10, 11]); + } else if (actor.height <= 103) { + actor.height += 6; + } + } else if (physicalAgeSwap === 4) { + if (actor.height <= 103) { + actor.height += jsEither([7, 7, 8, 8, 9, 9]); + } else if (actor.height <= 110) { + actor.height += 5; + } + } else if (physicalAgeSwap === 5) { + if (actor.height <= 110) { + actor.height += jsEither([6, 6, 7, 7, 8, 8]); + } else if (actor.height <= 117) { + actor.height += 4; + } + } else if (physicalAgeSwap === 6) { + if (actor.height <= 117) { + actor.height += jsEither([6, 6, 7, 7, 8, 8]); + } else if (actor.height <= 124) { + actor.height += 4; + } + } else if (physicalAgeSwap === 7) { + if (actor.height <= 124) { + actor.height += jsEither([6, 6, 7, 7, 8, 8]); + } else if (actor.height <= 131) { + actor.height += 4; + } + } else if (physicalAgeSwap === 8) { + if (actor.height <= 131) { + actor.height += jsEither([5, 5, 6, 6, 7, 7]); + } else if (actor.height <= 137) { + actor.height += 3; + } + } else if (physicalAgeSwap === 9) { + if (actor.height <= 137) { + actor.height += jsEither([4, 4, 5, 5, 5, 6]); + } else if (actor.height <= 144) { + actor.height += 3; + } + } else if (physicalAgeSwap === 10) { + if (actor.height <= 144) { + actor.height += jsEither([5, 5, 6, 6, 7, 7]); + } else if (actor.height <= 150) { + actor.height += 3; + } + } else if (physicalAgeSwap === 11) { + if (actor.height <= 150) { + actor.height += jsEither([5, 5, 6, 6, 6, 7]); + } else if (actor.height <= 156) { + actor.height += 3; + } + } else if (physicalAgeSwap === 12) { + if (actor.height <= 156) { + actor.height += jsEither([5, 5, 6, 6, 7, 7]); + } else if (actor.height <= 162) { + actor.height += 3; + } + } else if (physicalAgeSwap === 13) { + if (actor.height <= 162) { + actor.height += jsEither([7, 7, 8, 8, 9, 9]); + } else if (actor.height <= 170) { + actor.height += 5; + } + } else if (physicalAgeSwap === 14) { + if (actor.height <= 170) { + actor.height += jsEither([6, 6, 7, 7, 8, 8]); + } else if (actor.height <= 177) { + actor.height += 4; + } + } else if (physicalAgeSwap === 15) { + if (actor.height <= 177) { + actor.height += jsEither([6, 6, 7, 7, 8, 8]); + } else if (actor.height <= 184) { + actor.height += 4; + } + } else if (physicalAgeSwap === 16) { + if (actor.height <= 184) { + actor.height += jsEither([2, 2, 3, 3, 4, 4]); + } + } else if (physicalAgeSwap === 17) { + if (actor.height <= 185) { + actor.height += jsEither([1, 1, 2, 2, 3, 3]); + } + } else if (physicalAgeSwap === 18) { + if (actor.height <= 186) { + actor.height += jsEither([0, 0, 1, 1, 2, 2]); + } + } + } + // experiment - Let's see if this keeps players on average above average height or if it makes them too tall in the long run. + if (tallerPC) { + actor.height += random(0, 3); + } + } + + /** + * @param {FC.HumanState} actor + */ + function increaseHeightDwarf(actor) { + if (actor.hormoneBalance >= 200) { + if (physicalAgeSwap === 3) { + if (actor.height <= 80) { + actor.height += jsEither([1, 1, 2, 2]); + } else if (actor.height <= 84) { + actor.height += 1; + } + } else if (physicalAgeSwap === 4) { + if (actor.height <= 84) { + actor.height += jsEither([4, 4, 5, 5]); + } else if (actor.height <= 90) { + actor.height += 2; + } + } else if (physicalAgeSwap === 5) { + if (actor.height <= 90) { + actor.height += jsEither([8, 8, 9, 9]); + } else if (actor.height <= 100) { + actor.height += 5; + } + } else if (physicalAgeSwap === 6) { + if (actor.height <= 100) { + actor.height += jsEither([3, 3, 4, 4]); + } else if (actor.height <= 105) { + actor.height += 2; + } + } else if (physicalAgeSwap === 7) { + if (actor.height <= 105) { + actor.height += jsEither([2, 2, 3, 3]); + } else if (actor.height <= 109) { + actor.height += 1; + } + } else if (physicalAgeSwap === 8) { + if (actor.height <= 109) { + actor.height += jsEither([3, 3, 4, 4]); + } else if (actor.height <= 114) { + actor.height += 1; + } + } else if (physicalAgeSwap === 9) { + if (actor.height <= 114) { + actor.height += jsEither([2, 2, 3, 3]); + } else if (actor.height <= 118) { + actor.height += 1; + } + } else if (physicalAgeSwap === 10) { + if (actor.height <= 118) { + actor.height += jsEither([2, 2, 3, 3]); + } else if (actor.height <= 122) { + actor.height += 1; + } + } else if (physicalAgeSwap === 11) { + if (actor.height <= 122) { + actor.height += jsEither([3, 3, 4, 4]); + } else if (actor.height <= 127) { + actor.height += 2; + } + } else if (physicalAgeSwap === 12) { + if (actor.height <= 127) { + actor.height += jsEither([3, 3, 4, 4]); + } else if (actor.height <= 132) { + actor.height += 2; + } + } else if (physicalAgeSwap === 13) { + if (actor.height <= 132) { + actor.height += jsEither([1, 1, 2, 2]); + } else if (actor.height <= 135) { + actor.height += 1; + } + } else if (physicalAgeSwap === 14) { + if (actor.height <= 135) { + actor.height += jsEither([1, 1, 2, 2]); + } else if (actor.height <= 138) { + actor.height += 1; + } + } else if (physicalAgeSwap === 15) { + if (actor.height <= 138) { + actor.height += jsEither([1, 1, 2, 2]); + } else if (actor.height <= 141) { + actor.height += 1; + } + } else if (physicalAgeSwap === 16) { + if (actor.height <= 143) { + actor.height += jsEither([0, 0, 1, 1]); + } + } else if (physicalAgeSwap === 17) { + if (actor.height <= 143) { + actor.height += jsEither([0, 0, 1, 1]); + } + } else if (physicalAgeSwap === 18) { + if (actor.height <= 143) { + actor.height += jsEither([0, 0, 1, 1]); + } + } + } else if (actor.hormoneBalance >= 100) { + if (physicalAgeSwap === 3) { + if (actor.height <= 80) { + actor.height += jsEither([1, 1, 2, 2, 2]); + } else if (actor.height <= 84) { + actor.height += 1; + } + } else if (physicalAgeSwap === 4) { + if (actor.height <= 84) { + actor.height += jsEither([4, 4, 5, 5, 5]); + } else if (actor.height <= 90) { + actor.height += 2; + } + } else if (physicalAgeSwap === 5) { + if (actor.height <= 90) { + actor.height += jsEither([8, 8, 9, 9, 9]); + } else if (actor.height <= 100) { + actor.height += 5; + } + } else if (physicalAgeSwap === 6) { + if (actor.height <= 100) { + actor.height += jsEither([3, 3, 4, 4, 4]); + } else if (actor.height <= 105) { + actor.height += 2; + } + } else if (physicalAgeSwap === 7) { + if (actor.height <= 105) { + actor.height += jsEither([2, 2, 3, 3, 3]); + } else if (actor.height <= 109) { + actor.height += 1; + } + } else if (physicalAgeSwap === 8) { + if (actor.height <= 109) { + actor.height += jsEither([3, 3, 4, 4, 4]); + } else if (actor.height <= 114) { + actor.height += 1; + } + } else if (physicalAgeSwap === 9) { + if (actor.height <= 114) { + actor.height += jsEither([2, 2, 3, 3, 3]); + } else if (actor.height <= 118) { + actor.height += 1; + } + } else if (physicalAgeSwap === 10) { + if (actor.height <= 118) { + actor.height += jsEither([2, 2, 3, 3, 3]); + } else if (actor.height <= 122) { + actor.height += 1; + } + } else if (physicalAgeSwap === 11) { + if (actor.height <= 122) { + actor.height += jsEither([3, 3, 4, 4, 4]); + } else if (actor.height <= 127) { + actor.height += 2; + } + } else if (physicalAgeSwap === 12) { + if (actor.height <= 127) { + actor.height += jsEither([3, 3, 4, 4, 4]); + } else if (actor.height <= 132) { + actor.height += 2; + } + } else if (physicalAgeSwap === 13) { + if (actor.height <= 132) { + actor.height += jsEither([1, 1, 2, 2, 2]); + } else if (actor.height <= 135) { + actor.height += 1; + } + } else if (physicalAgeSwap === 14) { + if (actor.height <= 135) { + actor.height += jsEither([1, 1, 2, 2, 2]); + } else if (actor.height <= 138) { + actor.height += 1; + } + } else if (physicalAgeSwap === 15) { + if (actor.height <= 138) { + actor.height += jsEither([1, 1, 2, 2, 2]); + } else if (actor.height <= 141) { + actor.height += 1; + } + } else if (physicalAgeSwap === 16) { + if (actor.height <= 143) { + actor.height += jsEither([0, 0, 1, 1, 1]); + } + } else if (physicalAgeSwap === 17) { + if (actor.height <= 143) { + actor.height += jsEither([0, 0, 1, 1, 1]); + } + } else if (physicalAgeSwap === 18) { + if (actor.height <= 143) { + actor.height += jsEither([0, 0, 1, 1, 1]); + } + } + } else if (actor.hormoneBalance <= -200) { + if (physicalAgeSwap === 3) { + if (actor.height <= 80) { + actor.height += jsEither([2, 2, 3, 3]); + } else if (actor.height <= 84) { + actor.height += 1; + } + } else if (physicalAgeSwap === 4) { + if (actor.height <= 84) { + actor.height += jsEither([5, 5, 6, 6]); + } else if (actor.height <= 90) { + actor.height += 2; + } + } else if (physicalAgeSwap === 5) { + if (actor.height <= 90) { + actor.height += jsEither([9, 9, 10, 10]); + } else if (actor.height <= 100) { + actor.height += 5; + } + } else if (physicalAgeSwap === 6) { + if (actor.height <= 100) { + actor.height += jsEither([4, 4, 5, 5]); + } else if (actor.height <= 105) { + actor.height += 2; + } + } else if (physicalAgeSwap === 7) { + if (actor.height <= 105) { + actor.height += jsEither([3, 3, 4, 4]); + } else if (actor.height <= 109) { + actor.height += 1; + } + } else if (physicalAgeSwap === 8) { + if (actor.height <= 109) { + actor.height += jsEither([4, 4, 5, 5]); + } else if (actor.height <= 114) { + actor.height += 1; + } + } else if (physicalAgeSwap === 9) { + if (actor.height <= 114) { + actor.height += jsEither([3, 3, 4, 4]); + } else if (actor.height <= 118) { + actor.height += 1; + } + } else if (physicalAgeSwap === 10) { + if (actor.height <= 118) { + actor.height += jsEither([3, 3, 4, 4]); + } else if (actor.height <= 122) { + actor.height += 1; + } + } else if (physicalAgeSwap === 11) { + if (actor.height <= 122) { + actor.height += jsEither([4, 4, 5, 5]); + } else if (actor.height <= 127) { + actor.height += 2; + } + } else if (physicalAgeSwap === 12) { + if (actor.height <= 127) { + actor.height += jsEither([4, 4, 5, 5]); + } else if (actor.height <= 132) { + actor.height += 2; + } + } else if (physicalAgeSwap === 13) { + if (actor.height <= 132) { + actor.height += jsEither([2, 2, 3, 3]); + } else if (actor.height <= 135) { + actor.height += 1; + } + } else if (physicalAgeSwap === 14) { + if (actor.height <= 135) { + actor.height += jsEither([2, 2, 3, 3]); + } else if (actor.height <= 138) { + actor.height += 1; + } + } else if (physicalAgeSwap === 15) { + if (actor.height <= 138) { + actor.height += jsEither([2, 2, 3, 3]); + } else if (actor.height <= 141) { + actor.height += 1; + } + } else if (physicalAgeSwap === 16) { + if (actor.height <= 143) { + actor.height += jsEither([1, 1, 2, 2]); + } + } else if (physicalAgeSwap === 17) { + if (actor.height <= 143) { + actor.height += jsEither([1, 1, 2, 2]); + } + } else if (physicalAgeSwap === 18) { + if (actor.height <= 143) { + actor.height += jsEither([1, 1, 2, 2]); + } + } + } else if (actor.hormoneBalance <= -100) { + if (physicalAgeSwap === 3) { + if (actor.height <= 80) { + actor.height += jsEither([2, 2, 2, 3, 3]); + } else if (actor.height <= 84) { + actor.height += 1; + } + } else if (physicalAgeSwap === 4) { + if (actor.height <= 84) { + actor.height += jsEither([5, 5, 5, 6, 6]); + } else if (actor.height <= 90) { + actor.height += 2; + } + } else if (physicalAgeSwap === 5) { + if (actor.height <= 90) { + actor.height += jsEither([9, 9, 9, 10, 10]); + } else if (actor.height <= 100) { + actor.height += 5; + } + } else if (physicalAgeSwap === 6) { + if (actor.height <= 100) { + actor.height += jsEither([4, 4, 4, 5, 5]); + } else if (actor.height <= 105) { + actor.height += 2; + } + } else if (physicalAgeSwap === 7) { + if (actor.height <= 105) { + actor.height += jsEither([3, 3, 3, 4, 4]); + } else if (actor.height <= 109) { + actor.height += 1; + } + } else if (physicalAgeSwap === 8) { + if (actor.height <= 109) { + actor.height += jsEither([4, 4, 4, 5, 5]); + } else if (actor.height <= 114) { + actor.height += 1; + } + } else if (physicalAgeSwap === 9) { + if (actor.height <= 114) { + actor.height += jsEither([3, 3, 3, 4, 4]); + } else if (actor.height <= 118) { + actor.height += 1; + } + } else if (physicalAgeSwap === 10) { + if (actor.height <= 118) { + actor.height += jsEither([3, 3, 3, 4, 4]); + } else if (actor.height <= 122) { + actor.height += 1; + } + } else if (physicalAgeSwap === 11) { + if (actor.height <= 122) { + actor.height += jsEither([4, 4, 4, 5, 5]); + } else if (actor.height <= 127) { + actor.height += 2; + } + } else if (physicalAgeSwap === 12) { + if (actor.height <= 127) { + actor.height += jsEither([4, 4, 4, 5, 5]); + } else if (actor.height <= 132) { + actor.height += 2; + } + } else if (physicalAgeSwap === 13) { + if (actor.height <= 132) { + actor.height += jsEither([2, 2, 2, 3, 3]); + } else if (actor.height <= 135) { + actor.height += 1; + } + } else if (physicalAgeSwap === 14) { + if (actor.height <= 135) { + actor.height += jsEither([2, 2, 2, 3, 3]); + } else if (actor.height <= 138) { + actor.height += 1; + } + } else if (physicalAgeSwap === 15) { + if (actor.height <= 138) { + actor.height += jsEither([2, 2, 2, 3, 3]); + } else if (actor.height <= 141) { + actor.height += 1; + } + } else if (physicalAgeSwap === 16) { + if (actor.height <= 143) { + actor.height += jsEither([1, 1, 1, 2, 2]); + } + } else if (physicalAgeSwap === 17) { + if (actor.height <= 143) { + actor.height += jsEither([1, 1, 1, 2, 2]); + } + } else if (physicalAgeSwap === 18) { + if (actor.height <= 143) { + actor.height += jsEither([1, 1, 1, 2, 2]); + } + } + } else { + if (physicalAgeSwap === 3) { + if (actor.height <= 80) { + actor.height += jsEither([1, 1, 2, 2, 3, 3]); + } else if (actor.height <= 84) { + actor.height += 1; + } + } else if (physicalAgeSwap === 4) { + if (actor.height <= 84) { + actor.height += jsEither([4, 4, 5, 5, 6, 6]); + } else if (actor.height <= 90) { + actor.height += 2; + } + } else if (physicalAgeSwap === 5) { + if (actor.height <= 90) { + actor.height += jsEither([8, 8, 9, 9, 10, 10]); + } else if (actor.height <= 100) { + actor.height += 5; + } + } else if (physicalAgeSwap === 6) { + if (actor.height <= 100) { + actor.height += jsEither([3, 3, 4, 4, 5, 5]); + } else if (actor.height <= 105) { + actor.height += 2; + } + } else if (physicalAgeSwap === 7) { + if (actor.height <= 105) { + actor.height += jsEither([2, 2, 3, 3, 4, 4]); + } else if (actor.height <= 109) { + actor.height += 1; + } + } else if (physicalAgeSwap === 8) { + if (actor.height <= 109) { + actor.height += jsEither([3, 3, 4, 4, 5, 5]); + } else if (actor.height <= 114) { + actor.height += 1; + } + } else if (physicalAgeSwap === 9) { + if (actor.height <= 114) { + actor.height += jsEither([2, 2, 3, 3, 4, 4]); + } else if (actor.height <= 118) { + actor.height += 1; + } + } else if (physicalAgeSwap === 10) { + if (actor.height <= 118) { + actor.height += jsEither([2, 2, 3, 3, 4, 4]); + } else if (actor.height <= 122) { + actor.height += 1; + } + } else if (physicalAgeSwap === 11) { + if (actor.height <= 122) { + actor.height += jsEither([3, 3, 4, 4, 5, 5]); + } else if (actor.height <= 127) { + actor.height += 2; + } + } else if (physicalAgeSwap === 12) { + if (actor.height <= 127) { + actor.height += jsEither([3, 3, 4, 4, 5, 5]); + } else if (actor.height <= 132) { + actor.height += 2; + } + } else if (physicalAgeSwap === 13) { + if (actor.height <= 132) { + actor.height += jsEither([1, 1, 2, 2, 3, 3]); + } else if (actor.height <= 135) { + actor.height += 1; + } + } else if (physicalAgeSwap === 14) { + if (actor.height <= 135) { + actor.height += jsEither([1, 1, 2, 2, 3, 3]); + } else if (actor.height <= 138) { + actor.height += 1; + } + } else if (physicalAgeSwap === 15) { + if (actor.height <= 138) { + actor.height += jsEither([1, 1, 2, 2, 3, 3]); + } else if (actor.height <= 141) { + actor.height += 1; + } + } else if (physicalAgeSwap === 16) { + if (actor.height <= 143) { + actor.height += jsEither([0, 0, 1, 1, 2, 2]); + } + } else if (physicalAgeSwap === 17) { + if (actor.height <= 143) { + actor.height += jsEither([0, 0, 1, 1, 2, 2]); + } + } else if (physicalAgeSwap === 18) { + if (actor.height <= 143) { + actor.height += jsEither([0, 0, 1, 1, 2, 2]); + } + } + } + } + + /** + * @param {FC.HumanState} actor + */ + function increaseHeightGiant(actor) { + if (actor.hormoneBalance >= 200) { + if (physicalAgeSwap < 16) { + if (actor.height <= 270) { + actor.height += random(5, 12); + } + } else { + if (actor.height <= 270) { + actor.height += random(3, 7); + } + } + } else if (actor.hormoneBalance >= 100) { + if (physicalAgeSwap < 16) { + if (actor.height <= 270) { + actor.height += random(7, 15); + } + } else { + if (actor.height <= 270) { + actor.height += random(5, 7); + } + } + } else if (actor.hormoneBalance <= -200) { + if (physicalAgeSwap < 16) { + if (actor.height <= 270) { + actor.height += random(10, 25); + } + } else { + if (actor.height <= 270) { + actor.height += random(7, 13); + } + } + } else if (actor.hormoneBalance <= -100) { + if (physicalAgeSwap < 16) { + if (actor.height <= 270) { + actor.height += random(7, 22); + } + } else { + if (actor.height <= 270) { + actor.height += random(7, 12); + } + } + } else { + if (physicalAgeSwap < 16) { + if (actor.height <= 270) { + actor.height += random(7, 20); + } + } else { + if (actor.height <= 270) { + actor.height += random(5, 10); + } + } + } + } + + /** + * @param {FC.HumanState} actor + */ + function increaseHeightNeoteny(actor) { + if (physicalAgeSwap <= 12) { + if (actor.height <= 120) { + actor.height += jsEither([0, 0, 1, 1, 2, 2]); + } + } else if (physicalAgeSwap === 13) { + if (actor.height <= 120) { + actor.height += jsEither([0, 0, 1, 1, 2, 2]); + } + } else if (physicalAgeSwap === 14) { + if (actor.height <= 120) { + actor.height += jsEither([0, 0, 1, 1, 2, 2]); + } + } else if (physicalAgeSwap === 15) { + if (actor.height <= 120) { + actor.height += jsEither([0, 0, 1, 1, 2, 2]); + } + } else if (physicalAgeSwap === 16) { + if (actor.height <= 130) { + actor.height += jsEither([0, 0, 1, 1, 2, 2]); + } + } else if (physicalAgeSwap === 17) { + if (actor.height <= 130) { + actor.height += jsEither([0, 0, 1, 1, 2, 2]); + } + } else if (physicalAgeSwap === 18) { + if (actor.height <= 130) { + actor.height += jsEither([0, 0, 1, 1, 2, 2]); + } + } + } + + /** + * @param {FC.HumanState} actor + */ + function increaseBoobsXX(actor) { + if (actor.geneticQuirks.gigantomastia === 2 && actor.geneticQuirks.macromastia === 2) { + gigantomastiaMod = 3; + } else if (actor.geneticQuirks.gigantomastia === 2) { + gigantomastiaMod = 2; + } else if (actor.geneticQuirks.macromastia === 2) { + gigantomastiaMod = 1.5; + } else if (actor.geneticQuirks.gigantomastia === 3) { + gigantomastiaMod = 1.2; + } else if (actor.geneticQuirks.macromastia === 3) { + gigantomastiaMod = 1.1; + } else { + gigantomastiaMod = 1; + } + if (actor.hormoneBalance >= 200) { + if (physicalAgeSwap === 8) { + actor.boobs += 50; + } else if (physicalAgeSwap === 9) { + actor.boobs += 50; + } else if (physicalAgeSwap === 10) { + actor.boobs += 50; + } else if (physicalAgeSwap === 11) { + if (actor.boobs < (600 * gigantomastiaMod)) { + if (random(1, 100) > (40 / gigantomastiaMod)) { + actor.boobs += 100; + } + } + actor.boobs += 100; + } else if (physicalAgeSwap === 12) { + if (actor.boobs < (700 * gigantomastiaMod)) { + if (random(1, 100) > (40 / gigantomastiaMod)) { + actor.boobs += 100; + } + } + actor.boobs += 100; + } else if (physicalAgeSwap === 13) { + if (actor.boobs < (1000 * gigantomastiaMod)) { + if (random(1, 100) > (40 / gigantomastiaMod)) { + actor.boobs += 100; + } + } + actor.boobs += 100; + } else if (physicalAgeSwap === 14) { + if (actor.boobs < (800 * gigantomastiaMod)) { + if (random(1, 100) > (40 / gigantomastiaMod)) { + actor.boobs += 100; + } + } + actor.boobs += 100; + } else if (physicalAgeSwap === 15) { + if (actor.boobs < (900 * gigantomastiaMod)) { + if (random(1, 100) > (40 / gigantomastiaMod)) { + actor.boobs += 100; + } + } + actor.boobs += 100; + } else if (physicalAgeSwap === 16) { + if (actor.boobs < (1200 * gigantomastiaMod)) { + if (random(1, 100) > (40 / gigantomastiaMod)) { + actor.boobs += 100; + } + } + actor.boobs += 100; + } else if (physicalAgeSwap === 17) { + if (actor.boobs < (1600 * gigantomastiaMod)) { + if (random(1, 100) > (40 / gigantomastiaMod)) { + actor.boobs += 100; + } + } + actor.boobs += 100; + } else if (physicalAgeSwap === 18) { + if (actor.boobs < (2000 * gigantomastiaMod)) { + if (random(1, 100) > (40 / gigantomastiaMod)) { + actor.boobs += 100; + } + } + actor.boobs += 100; + } + } else if (actor.hormoneBalance >= 100) { + if (physicalAgeSwap === 8) { + actor.boobs += 25; + } else if (physicalAgeSwap === 9) { + actor.boobs += 25; + } else if (physicalAgeSwap === 10) { + actor.boobs += 25; + } else if (physicalAgeSwap === 11) { + if (actor.boobs < (500 * gigantomastiaMod)) { + if (random(1, 100) > (40 / gigantomastiaMod)) { + actor.boobs += 100; + } + } + actor.boobs += 50; + } else if (physicalAgeSwap === 12) { + if (actor.boobs < (600 * gigantomastiaMod)) { + if (random(1, 100) > (40 / gigantomastiaMod)) { + actor.boobs += 100; + } + } + actor.boobs += 50; + } else if (physicalAgeSwap === 13) { + if (actor.boobs < (900 * gigantomastiaMod)) { + if (random(1, 100) > (40 / gigantomastiaMod)) { + actor.boobs += 100; + } + } + actor.boobs += 50; + } else if (physicalAgeSwap === 14) { + if (actor.boobs < (700 * gigantomastiaMod)) { + if (random(1, 100) > (40 / gigantomastiaMod)) { + actor.boobs += 100; + } + } + actor.boobs += 50; + } else if (physicalAgeSwap === 15) { + if (actor.boobs < (800 * gigantomastiaMod)) { + if (random(1, 100) > (40 / gigantomastiaMod)) { + actor.boobs += 100; + } + } + actor.boobs += 50; + } else if (physicalAgeSwap === 16) { + if (actor.boobs < (1000 * gigantomastiaMod)) { + if (random(1, 100) > (40 / gigantomastiaMod)) { + actor.boobs += 100; + } + } + actor.boobs += 50; + } else if (physicalAgeSwap === 17) { + if (actor.boobs < (1200 * gigantomastiaMod)) { + if (random(1, 100) > (40 / gigantomastiaMod)) { + actor.boobs += 100; + } + } + actor.boobs += 50; + } else if (physicalAgeSwap === 18) { + if (actor.boobs < (1600 * gigantomastiaMod)) { + if (random(1, 100) > (40 / gigantomastiaMod)) { + actor.boobs += 100; + } + } + actor.boobs += 50; + } + } else if (actor.hormoneBalance <= -200) { + if (physicalAgeSwap >= 11) { + if (actor.boobs > 200 && gigantomastiaMod !== 3) { + actor.boobs -= 100; + } + } + } else if (actor.hormoneBalance <= -100) { + if (physicalAgeSwap >= 11) { + if (actor.boobs > 200 && gigantomastiaMod !== 3) { + actor.boobs -= 50; + } + } + } else { + if (physicalAgeSwap === 11) { + if (actor.boobs < (300 * gigantomastiaMod)) { + if (random(1, 100) > (40 / gigantomastiaMod)) { + actor.boobs += 100; + } + } + } else if (physicalAgeSwap === 12) { + if (actor.boobs < (300 * gigantomastiaMod)) { + if (random(1, 100) > (40 / gigantomastiaMod)) { + actor.boobs += 100; + } + } + } else if (physicalAgeSwap === 13) { + if (actor.boobs < (400 * gigantomastiaMod)) { + if (random(1, 100) > (40 / gigantomastiaMod)) { + actor.boobs += 100; + } + } + } else if (physicalAgeSwap === 14) { + if (actor.boobs < (500 * gigantomastiaMod)) { + if (random(1, 100) > (40 / gigantomastiaMod)) { + actor.boobs += 100; + } + } + } else if (physicalAgeSwap === 15) { + if (actor.boobs < (500 * gigantomastiaMod)) { + if (random(1, 100) > (40 / gigantomastiaMod)) { + actor.boobs += 100; + } + } + } else if (physicalAgeSwap === 16) { + if (actor.boobs < (800 * gigantomastiaMod)) { + if (random(1, 100) > (50 / gigantomastiaMod)) { + actor.boobs += 100; + } + } + } else if (physicalAgeSwap === 17) { + if (actor.boobs < (800 * gigantomastiaMod)) { + if (random(1, 100) > (60 / gigantomastiaMod)) { + actor.boobs += 100; + } + } + } else if (physicalAgeSwap === 18) { + if (actor.boobs < (800 * gigantomastiaMod)) { + if (random(1, 100) > (70 / gigantomastiaMod)) { + actor.boobs += 100; + } + } + } + } + } + + /** + * @param {FC.HumanState} actor + */ + function increaseBoobsXY(actor) { + if (actor.geneticQuirks.gigantomastia === 2 && actor.geneticQuirks.macromastia === 2) { + gigantomastiaMod = 3; + } else if (actor.geneticQuirks.gigantomastia === 2) { + gigantomastiaMod = 2; + } else if (actor.geneticQuirks.macromastia === 2) { + gigantomastiaMod = 1.5; + } else if (actor.geneticQuirks.gigantomastia === 3) { + gigantomastiaMod = 1.2; + } else if (actor.geneticQuirks.macromastia === 3) { + gigantomastiaMod = 1.1; + } else { + gigantomastiaMod = 1; + } + if (actor.hormoneBalance >= 200) { + if (physicalAgeSwap === 8) { + actor.boobs += 50; + } else if (physicalAgeSwap === 9) { + actor.boobs += 50; + } else if (physicalAgeSwap === 10) { + actor.boobs += 50; + } else if (physicalAgeSwap === 11) { + actor.boobs += 50; + } else if (physicalAgeSwap === 12) { + actor.boobs += 50; + } else if (physicalAgeSwap === 13) { + if (actor.boobs < (1000 * gigantomastiaMod)) { + if (random(1, 100) > (40 / gigantomastiaMod)) { + actor.boobs += 100; + } + } + actor.boobs += 50; + } else if (physicalAgeSwap === 14) { + if (actor.boobs < (800 * gigantomastiaMod)) { + if (random(1, 100) > (40 / gigantomastiaMod)) { + actor.boobs += 100; + } + } + actor.boobs += 100; + } else if (physicalAgeSwap === 15) { + if (actor.boobs < (900 * gigantomastiaMod)) { + if (random(1, 100) > (40 / gigantomastiaMod)) { + actor.boobs += 100; + } + } + actor.boobs += 100; + } else if (physicalAgeSwap === 16) { + if (actor.boobs < (1200 * gigantomastiaMod)) { + if (random(1, 100) > (40 / gigantomastiaMod)) { + actor.boobs += 100; + } + } + actor.boobs += 100; + } else if (physicalAgeSwap === 17) { + if (actor.boobs < (1600 * gigantomastiaMod)) { + if (random(1, 100) > (40 / gigantomastiaMod)) { + actor.boobs += 100; + } + } + actor.boobs += 100; + } else if (physicalAgeSwap === 18) { + if (actor.boobs < (2000 * gigantomastiaMod)) { + if (random(1, 100) > (40 / gigantomastiaMod)) { + actor.boobs += 100; + } + } + actor.boobs += 100; + } + } else if (actor.hormoneBalance >= 100) { + if (physicalAgeSwap === 8) { + actor.boobs += 25; + } else if (physicalAgeSwap === 9) { + actor.boobs += 25; + } else if (physicalAgeSwap === 10) { + actor.boobs += 25; + } else if (physicalAgeSwap === 11) { + actor.boobs += 25; + } else if (physicalAgeSwap === 12) { + actor.boobs += 25; + } else if (physicalAgeSwap === 13) { + if (actor.boobs < (900 * gigantomastiaMod)) { + if (random(1, 100) > (40 / gigantomastiaMod)) { + actor.boobs += 100; + } + } + actor.boobs += 25; + } else if (physicalAgeSwap === 14) { + if (actor.boobs < (700 * gigantomastiaMod)) { + if (random(1, 100) > (40 / gigantomastiaMod)) { + actor.boobs += 100; + } + } + actor.boobs += 50; + } else if (physicalAgeSwap === 15) { + if (actor.boobs < (800 * gigantomastiaMod)) { + if (random(1, 100) > (40 / gigantomastiaMod)) { + actor.boobs += 100; + } + } + actor.boobs += 50; + } else if (physicalAgeSwap === 16) { + if (actor.boobs < (1000 * gigantomastiaMod)) { + if (random(1, 100) > (40 / gigantomastiaMod)) { + actor.boobs += 100; + } + } + actor.boobs += 50; + } else if (physicalAgeSwap === 17) { + if (actor.boobs < (1200 * gigantomastiaMod)) { + if (random(1, 100) > (40 / gigantomastiaMod)) { + actor.boobs += 100; + } + } + actor.boobs += 50; + } else if (physicalAgeSwap === 18) { + if (actor.boobs < (1600 * gigantomastiaMod)) { + if (random(1, 100) > (40 / gigantomastiaMod)) { + actor.boobs += 100; + } + } + actor.boobs += 50; + } + } else if (actor.hormoneBalance <= -200) { + if (physicalAgeSwap >= 11) { + if (actor.boobs > 200 && gigantomastiaMod !== 3) { + actor.boobs -= 100; + } + } + } else if (actor.hormoneBalance <= -100) { + if (physicalAgeSwap >= 11) { + if (actor.boobs > 200 && gigantomastiaMod !== 3) { + actor.boobs -= 50; + } + } + } + } + + /** + * @param {FC.HumanState} actor + */ + function increaseHipsXX(actor) { + if (actor.geneticQuirks.uterineHypersensitivity === 2) { + uterineHypersensitivityMod = 1.5; + } else if (actor.geneticQuirks.uterineHypersensitivity === 1) { + uterineHypersensitivityMod = 1.2; + } else { + uterineHypersensitivityMod = 1; + } + if (actor.hormoneBalance >= 200) { + if (physicalAgeSwap === 8) { + if (actor.hips < 2) { + if (random(1, 100) > 90 / uterineHypersensitivityMod) { + actor.hips++; + } + } + } else if (physicalAgeSwap === 9) { + if (actor.hips < 2) { + if (random(1, 100) > 90 / uterineHypersensitivityMod) { + actor.hips++; + } + } + } else if (physicalAgeSwap === 10) { + if (actor.hips < 2) { + if (random(1, 100) > 90 / uterineHypersensitivityMod) { + actor.hips++; + } + } + } else if (physicalAgeSwap === 11) { + if (actor.hips < 2) { + if (random(1, 100) > 20 / uterineHypersensitivityMod) { + actor.hips++; + } + } + } else if (physicalAgeSwap === 12) { + if (actor.hips < 2) { + if (random(1, 100) > 20 / uterineHypersensitivityMod) { + actor.hips++; + } + } + } else if (physicalAgeSwap === 13) { + if (actor.hips < 2) { + if (random(1, 100) > 20 / uterineHypersensitivityMod) { + actor.hips++; + } + } + } else if (physicalAgeSwap === 14) { + if (actor.hips < 2) { + if (random(1, 100) > 20 / uterineHypersensitivityMod) { + actor.hips++; + } + } + } else if (physicalAgeSwap === 15) { + if (actor.hips < 2) { + if (random(1, 100) > 20 / uterineHypersensitivityMod) { + actor.hips++; + } + } + } else if (physicalAgeSwap === 16) { + if (actor.hips < 2) { + if (random(1, 100) > 20 / uterineHypersensitivityMod) { + actor.hips++; + } + } + } else if (physicalAgeSwap === 17) { + if (actor.hips < 2) { + if (random(1, 100) > 20 / uterineHypersensitivityMod) { + actor.hips++; + } + } + } else if (physicalAgeSwap === 18) { + if (actor.hips < 2) { + if (random(1, 100) > 20 / uterineHypersensitivityMod) { + actor.hips++; + } + } + } + } else if (actor.hormoneBalance >= 100) { + if (physicalAgeSwap === 8) { + if (actor.hips < 2) { + if (random(1, 100) > 95 / uterineHypersensitivityMod) { + actor.hips++; + } + } + } else if (physicalAgeSwap === 9) { + if (actor.hips < 2) { + if (random(1, 100) > 95 / uterineHypersensitivityMod) { + actor.hips++; + } + } + } else if (physicalAgeSwap === 10) { + if (actor.hips < 2) { + if (random(1, 100) > 95 / uterineHypersensitivityMod) { + actor.hips++; + } + } + } else if (physicalAgeSwap === 11) { + if (actor.hips < 2) { + if (random(1, 100) > 40 / uterineHypersensitivityMod) { + actor.hips++; + } + } + } else if (physicalAgeSwap === 12) { + if (actor.hips < 2) { + if (random(1, 100) > 40 / uterineHypersensitivityMod) { + actor.hips++; + } + } + } else if (physicalAgeSwap === 13) { + if (actor.hips < 2) { + if (random(1, 100) > 40 / uterineHypersensitivityMod) { + actor.hips++; + } + } + } else if (physicalAgeSwap === 14) { + if (actor.hips < 2) { + if (random(1, 100) > 40 / uterineHypersensitivityMod) { + actor.hips++; + } + } + } else if (physicalAgeSwap === 15) { + if (actor.hips < 2) { + if (random(1, 100) > 40 / uterineHypersensitivityMod) { + actor.hips++; + } + } + } else if (physicalAgeSwap === 16) { + if (actor.hips < 2) { + if (random(1, 100) > 40 / uterineHypersensitivityMod) { + actor.hips++; + } + } + } else if (physicalAgeSwap === 17) { + if (actor.hips < 2) { + if (random(1, 100) > 40 / uterineHypersensitivityMod) { + actor.hips++; + } + } + } else if (physicalAgeSwap === 18) { + if (actor.hips < 2) { + if (random(1, 100) > 40 / uterineHypersensitivityMod) { + actor.hips++; + } + } + } + } else if (actor.hormoneBalance <= -200) { + if (physicalAgeSwap === 8) { + if (actor.hips < 2) { + if (random(1, 100) > 99 / uterineHypersensitivityMod) { + actor.hips++; + } + } + } else if (physicalAgeSwap === 11) { + if (actor.hips < 2) { + if (random(1, 100) > 95 / uterineHypersensitivityMod) { + actor.hips++; + } + } + } else if (physicalAgeSwap === 12) { + if (actor.hips < 2) { + if (random(1, 100) > 95 / uterineHypersensitivityMod) { + actor.hips++; + } + } + } else if (physicalAgeSwap === 13) { + if (actor.hips < 2) { + if (random(1, 100) > 95 / uterineHypersensitivityMod) { + actor.hips++; + } + } + } + } else if (actor.hormoneBalance <= -100) { + if (physicalAgeSwap === 8) { + if (actor.hips < 2) { + if (random(1, 100) > 95 / uterineHypersensitivityMod) { + actor.hips++; + } + } + } else if (physicalAgeSwap === 11) { + if (actor.hips < 2) { + if (random(1, 100) > 90 / uterineHypersensitivityMod) { + actor.hips++; + } + } + } else if (physicalAgeSwap === 12) { + if (actor.hips < 2) { + if (random(1, 100) > 90 / uterineHypersensitivityMod) { + actor.hips++; + } + } + } else if (physicalAgeSwap === 13) { + if (actor.hips < 2) { + if (random(1, 100) > 90 / uterineHypersensitivityMod) { + actor.hips++; + } + } + } + } else { + if (physicalAgeSwap === 8) { + if (actor.hips < 2) { + if (random(1, 100) > 90 / uterineHypersensitivityMod) { + actor.hips++; + } + } + } else if (physicalAgeSwap === 11) { + if (actor.hips < 2) { + if (random(1, 100) > 60 / uterineHypersensitivityMod) { + actor.hips++; + } + } + } else if (physicalAgeSwap === 12) { + if (actor.hips < 2) { + if (random(1, 100) > 60 / uterineHypersensitivityMod) { + actor.hips++; + } + } + } else if (physicalAgeSwap === 13) { + if (actor.hips < 2) { + if (random(1, 100) > 60 / uterineHypersensitivityMod) { + actor.hips++; + } + } + } else if (physicalAgeSwap === 14) { + if (actor.hips < 2) { + if (random(1, 100) > 60 / uterineHypersensitivityMod) { + actor.hips++; + } + } + } + } + } + + /** + * @param {FC.HumanState} actor + */ + function increaseHipsXY(actor) { + if (actor.geneticQuirks.uterineHypersensitivity === 2) { + uterineHypersensitivityMod = 1.3; + } else if (actor.geneticQuirks.uterineHypersensitivity === 1) { + uterineHypersensitivityMod = 1.15; + } else { + uterineHypersensitivityMod = 1; + } + if (actor.hormoneBalance >= 200) { + if (physicalAgeSwap === 8) { + if (actor.hips < 2) { + if (random(1, 100) > 90 / uterineHypersensitivityMod) { + actor.hips++; + } + } + } else if (physicalAgeSwap === 9) { + if (actor.hips < 2) { + if (random(1, 100) > 90 / uterineHypersensitivityMod) { + actor.hips++; + } + } + } else if (physicalAgeSwap === 10) { + if (actor.hips < 2) { + if (random(1, 100) > 90 / uterineHypersensitivityMod) { + actor.hips++; + } + } + } else if (physicalAgeSwap === 11) { + if (actor.hips < 2) { + if (random(1, 100) > 20 / uterineHypersensitivityMod) { + actor.hips++; + } + } + } else if (physicalAgeSwap === 12) { + if (actor.hips < 2) { + if (random(1, 100) > 20 / uterineHypersensitivityMod) { + actor.hips++; + } + } + } else if (physicalAgeSwap === 13) { + if (actor.hips < 2) { + if (random(1, 100) > 20 / uterineHypersensitivityMod) { + actor.hips++; + } + } + } else if (physicalAgeSwap === 14) { + if (actor.hips < 2) { + if (random(1, 100) > 20 / uterineHypersensitivityMod) { + actor.hips++; + } + } + } else if (physicalAgeSwap === 15) { + if (actor.hips < 2) { + if (random(1, 100) > 20 / uterineHypersensitivityMod) { + actor.hips++; + } + } + } else if (physicalAgeSwap === 16) { + if (actor.hips < 2) { + if (random(1, 100) > 20 / uterineHypersensitivityMod) { + actor.hips++; + } + } + } else if (physicalAgeSwap === 17) { + if (actor.hips < 2) { + if (random(1, 100) > 20 / uterineHypersensitivityMod) { + actor.hips++; + } + } + } else if (physicalAgeSwap === 18) { + if (actor.hips < 2) { + if (random(1, 100) > 20 / uterineHypersensitivityMod) { + actor.hips++; + } + } + } + } else if (actor.hormoneBalance >= 100) { + if (physicalAgeSwap === 8) { + if (actor.hips < 2) { + if (random(1, 100) > 95 / uterineHypersensitivityMod) { + actor.hips++; + } + } + } else if (physicalAgeSwap === 9) { + if (actor.hips < 2) { + if (random(1, 100) > 95 / uterineHypersensitivityMod) { + actor.hips++; + } + } + } else if (physicalAgeSwap === 10) { + if (actor.hips < 2) { + if (random(1, 100) > 95 / uterineHypersensitivityMod) { + actor.hips++; + } + } + } else if (physicalAgeSwap === 11) { + if (actor.hips < 2) { + if (random(1, 100) > 40 / uterineHypersensitivityMod) { + actor.hips++; + } + } + } else if (physicalAgeSwap === 12) { + if (actor.hips < 2) { + if (random(1, 100) > 40 / uterineHypersensitivityMod) { + actor.hips++; + } + } + } else if (physicalAgeSwap === 13) { + if (actor.hips < 2) { + if (random(1, 100) > 40 / uterineHypersensitivityMod) { + actor.hips++; + } + } + } else if (physicalAgeSwap === 14) { + if (actor.hips < 2) { + if (random(1, 100) > 40 / uterineHypersensitivityMod) { + actor.hips++; + } + } + } else if (physicalAgeSwap === 15) { + if (actor.hips < 2) { + if (random(1, 100) > 40 / uterineHypersensitivityMod) { + actor.hips++; + } + } + } else if (physicalAgeSwap === 16) { + if (actor.hips < 2) { + if (random(1, 100) > 40 / uterineHypersensitivityMod) { + actor.hips++; + } + } + } else if (physicalAgeSwap === 17) { + if (actor.hips < 2) { + if (random(1, 100) > 40 / uterineHypersensitivityMod) { + actor.hips++; + } + } + } else if (physicalAgeSwap === 18) { + if (actor.hips < 2) { + if (random(1, 100) > 40 / uterineHypersensitivityMod) { + actor.hips++; + } + } + } + } else if (actor.hormoneBalance <= -200) { + if (physicalAgeSwap === 14) { + if (actor.hips < 2) { + if (random(1, 100) > 99 / uterineHypersensitivityMod) { + actor.hips++; + } + } + } + } else if (actor.hormoneBalance <= -100) { + if (physicalAgeSwap === 14) { + if (actor.hips < 2) { + if (random(1, 100) > 95 / uterineHypersensitivityMod) { + actor.hips++; + } + } + } + } else { + if (physicalAgeSwap === 14) { + if (actor.hips < 2) { + if (random(1, 100) > 60 / uterineHypersensitivityMod) { + actor.hips++; + } + } + } + } + } + + /** + * @param {FC.HumanState} actor + */ + function increaseButtXX(actor) { + if (actor.hormoneBalance >= 200) { + if (physicalAgeSwap === 8) { + if (actor.butt < (3 + rearQuirk)) { + if (random(1, 100) > (80 / rearQuirkDivider)) { + actor.butt++; + } + } + } else if (physicalAgeSwap === 9) { + if (actor.butt < (3 + rearQuirk)) { + if (random(1, 100) > (80 / rearQuirkDivider)) { + actor.butt++; + } + } + } else if (physicalAgeSwap === 10) { + if (actor.butt < (3 + rearQuirk)) { + if (random(1, 100) > (80 / rearQuirkDivider)) { + actor.butt++; + } + } + } else if (physicalAgeSwap === 11) { + if (actor.butt < (3 + rearQuirk)) { + if (random(1, 100) > (20 / rearQuirkDivider)) { + actor.butt++; + } + } + } else if (physicalAgeSwap === 12) { + if (actor.butt < (4 + rearQuirk)) { + if (random(1, 100) > (20 / rearQuirkDivider)) { + actor.butt++; + } + } + } else if (physicalAgeSwap === 13) { + if (actor.butt < (4 + rearQuirk)) { + if (random(1, 100) > (20 / rearQuirkDivider)) { + actor.butt++; + } + } + } + } else if (actor.hormoneBalance >= 100) { + if (physicalAgeSwap === 8) { + if (actor.butt < (3 + rearQuirk)) { + if (random(1, 100) > (90 / rearQuirkDivider)) { + actor.butt++; + } + } + } else if (physicalAgeSwap === 9) { + if (actor.butt < (3 + rearQuirk)) { + if (random(1, 100) > (90 / rearQuirkDivider)) { + actor.butt++; + } + } + } else if (physicalAgeSwap === 10) { + if (actor.butt < (3 + rearQuirk)) { + if (random(1, 100) > (90 / rearQuirkDivider)) { + actor.butt++; + } + } + } else if (physicalAgeSwap === 11) { + if (actor.butt < (3 + rearQuirk)) { + if (random(1, 100) > (40 / rearQuirkDivider)) { + actor.butt++; + } + } + } else if (physicalAgeSwap === 12) { + if (actor.butt < (4 + rearQuirk)) { + if (random(1, 100) > (40 / rearQuirkDivider)) { + actor.butt++; + } + } + } else if (physicalAgeSwap === 13) { + if (actor.butt < (4 + rearQuirk)) { + if (random(1, 100) > (40 / rearQuirkDivider)) { + actor.butt++; + } + } + } + } else if (actor.hormoneBalance <= -200) { + if (physicalAgeSwap === 8) { + if (actor.butt < (3 + rearQuirk)) { + if (random(1, 100) > (90 / rearQuirkDivider)) { + actor.butt++; + } + } + } else if (physicalAgeSwap === 11) { + if (actor.butt < (3 + rearQuirk)) { + if (random(1, 100) > (95 / rearQuirkDivider)) { + actor.butt++; + } + } + } else if (physicalAgeSwap === 12) { + if (actor.butt < (3 + rearQuirk)) { + if (random(1, 100) > (95 / rearQuirkDivider)) { + actor.butt++; + } + } + } else if (physicalAgeSwap === 13) { + if (actor.butt < (3 + rearQuirk)) { + if (random(1, 100) > (95 / rearQuirkDivider)) { + actor.butt++; + } + } + } + } else if (actor.hormoneBalance <= -100) { + if (physicalAgeSwap === 8) { + if (actor.butt < (3 + rearQuirk)) { + if (random(1, 100) > (80 / rearQuirkDivider)) { + actor.butt++; + } + } + } else if (physicalAgeSwap === 11) { + if (actor.butt < (3 + rearQuirk)) { + if (random(1, 100) > (90 / rearQuirkDivider)) { + actor.butt++; + } + } + } else if (physicalAgeSwap === 12) { + if (actor.butt < (3 + rearQuirk)) { + if (random(1, 100) > (90 / rearQuirkDivider)) { + actor.butt++; + } + } + } else if (physicalAgeSwap === 13) { + if (actor.butt < (3 + rearQuirk)) { + if (random(1, 100) > (90 / rearQuirkDivider)) { + actor.butt++; + } + } + } + } else { + if (physicalAgeSwap === 8) { + if (actor.butt < (3 + rearQuirk)) { + if (random(1, 100) > (60 / rearQuirkDivider)) { + actor.butt++; + } + } + } else if (physicalAgeSwap === 11) { + if (actor.butt < (3 + rearQuirk)) { + if (random(1, 100) > (60 / rearQuirkDivider)) { + actor.butt++; + } + } + } else if (physicalAgeSwap === 12) { + if (actor.butt < (3 + rearQuirk)) { + if (random(1, 100) > (60 / rearQuirkDivider)) { + actor.butt++; + } + } + } else if (physicalAgeSwap === 13) { + if (actor.butt < (3 + rearQuirk)) { + if (random(1, 100) > (60 / rearQuirkDivider)) { + actor.butt++; + } + } + } + } + } + + /** + * @param {FC.HumanState} actor + */ + function increaseButtXY(actor) { + if (actor.hormoneBalance >= 200) { + if (physicalAgeSwap === 8) { + if (actor.butt < (3 + rearQuirk)) { + if (random(1, 100) > (80 / rearQuirkDivider)) { + actor.butt++; + } + } + } else if (physicalAgeSwap === 9) { + if (actor.butt < (3 + rearQuirk)) { + if (random(1, 100) > (80 / rearQuirkDivider)) { + actor.butt++; + } + } + } else if (physicalAgeSwap === 10) { + if (actor.butt < (3 + rearQuirk)) { + if (random(1, 100) > (80 / rearQuirkDivider)) { + actor.butt++; + } + } + } else if (physicalAgeSwap === 11) { + if (actor.butt < (3 + rearQuirk)) { + if (random(1, 100) > (20 / rearQuirkDivider)) { + actor.butt++; + } + } + } else if (physicalAgeSwap === 12) { + if (actor.butt < (4 + rearQuirk)) { + if (random(1, 100) > (20 / rearQuirkDivider)) { + actor.butt++; + } + } + } else if (physicalAgeSwap === 13) { + if (actor.butt < (4 + rearQuirk)) { + if (random(1, 100) > (20 / rearQuirkDivider)) { + actor.butt++; + } + } + } + } else if (actor.hormoneBalance >= 100) { + if (physicalAgeSwap === 8) { + if (actor.butt < (3 + rearQuirk)) { + if (random(1, 100) > (90 / rearQuirkDivider)) { + actor.butt++; + } + } + } else if (physicalAgeSwap === 9) { + if (actor.butt < (3 + rearQuirk)) { + if (random(1, 100) > (90 / rearQuirkDivider)) { + actor.butt++; + } + } + } else if (physicalAgeSwap === 10) { + if (actor.butt < (3 + rearQuirk)) { + if (random(1, 100) > (90 / rearQuirkDivider)) { + actor.butt++; + } + } + } else if (physicalAgeSwap === 11) { + if (actor.butt < (3 + rearQuirk)) { + if (random(1, 100) > (40 / rearQuirkDivider)) { + actor.butt++; + } + } + } else if (physicalAgeSwap === 13) { + if (actor.butt < (4 + rearQuirk)) { + if (random(1, 100) > (40 / rearQuirkDivider)) { + actor.butt++; + } + } + } + } else if (actor.hormoneBalance <= -200) { + if (physicalAgeSwap === 8) { + if (actor.butt < (3 + rearQuirk)) { + if (random(1, 100) > (90 / rearQuirkDivider)) { + actor.butt++; + } + } + } + } else if (actor.hormoneBalance <= -100) { + if (physicalAgeSwap === 8) { + if (actor.butt < (3 + rearQuirk)) { + if (random(1, 100) > (80 / rearQuirkDivider)) { + actor.butt++; + } + } + } + } + } + + /** + * @param {FC.HumanState} actor + */ + function increaseDick(actor) { + if (actor.hormoneBalance >= 200) { + // + } else if (actor.hormoneBalance >= 100) { + // + } else if (actor.hormoneBalance <= -200) { + if (physicalAgeSwap === 8) { + if (actor.dick < 6) { + if (random(1, 100) > (70 / dickMod)) { + actor.dick++; + if (actor.foreskin > 0) { + actor.foreskin++; + } + } + } + } else if (physicalAgeSwap === 9) { + if (actor.dick < 6 && dickMod === 2) { + if (random(1, 100) > 70) { + actor.dick++; + if (actor.foreskin > 0) { + actor.foreskin++; + } + } + } + } else if (physicalAgeSwap === 10) { + if (actor.dick < 6) { + if (random(1, 100) > (70 / dickMod)) { + actor.dick++; + if (actor.foreskin > 0) { + actor.foreskin++; + } + } + } + } else if (physicalAgeSwap === 11) { + if (actor.dick < 6) { + if (random(1, 100) > (70 / dickMod)) { + actor.dick++; + if (actor.foreskin > 0) { + actor.foreskin++; + } + } + } + } else if (physicalAgeSwap === 12) { + if (actor.dick < 6) { + if (random(1, 100) > (70 / dickMod)) { + actor.dick++; + if (actor.foreskin > 0) { + actor.foreskin++; + } + } + } + } else if (physicalAgeSwap === 13) { + if (actor.dick < 6) { + if (random(1, 100) > (50 / dickMod)) { + actor.dick++; + if (actor.foreskin > 0) { + actor.foreskin++; + } + } + } + } else if (physicalAgeSwap === 14) { + if (actor.dick < 6) { + if (random(1, 100) > (20 / dickMod)) { + actor.dick++; + if (actor.foreskin > 0) { + actor.foreskin++; + } + } + } + } else if (physicalAgeSwap === 15) { + if (actor.dick < 6) { + if (random(1, 100) > (20 / dickMod)) { + actor.dick++; + if (actor.foreskin > 0) { + actor.foreskin++; + } + } + } + } else if (physicalAgeSwap === 16) { + if (actor.dick < 6) { + if (random(1, 100) > (70 / dickMod)) { + actor.dick++; + if (actor.foreskin > 0) { + actor.foreskin++; + } + } + } + } else if (physicalAgeSwap === 17) { + if (actor.dick < 6) { + if (random(1, 100) > (70 / dickMod)) { + actor.dick++; + if (actor.foreskin > 0) { + actor.foreskin++; + } + } + } + } else if (physicalAgeSwap === 18) { + if (actor.dick < 6) { + if (random(1, 100) > (70 / dickMod)) { + actor.dick++; + if (actor.foreskin > 0) { + actor.foreskin++; + } + } + } + } + } else if (actor.hormoneBalance <= -100) { + if (physicalAgeSwap === 8) { + if (actor.dick < 6) { + if (random(1, 100) > (90 / dickMod)) { + actor.dick++; + if (actor.foreskin > 0) { + actor.foreskin++; + } + } + } + } else if (physicalAgeSwap === 9) { + if (actor.dick < 6 && dickMod === 2) { + if (random(1, 100) > 70) { + actor.dick++; + if (actor.foreskin > 0) { + actor.foreskin++; + } + } + } + } else if (physicalAgeSwap === 10) { + if (actor.dick < 6) { + if (random(1, 100) > (90 / dickMod)) { + actor.dick++; + if (actor.foreskin > 0) { + actor.foreskin++; + } + } + } + } else if (physicalAgeSwap === 11) { + if (actor.dick < 6) { + if (random(1, 100) > (90 / dickMod)) { + actor.dick++; + if (actor.foreskin > 0) { + actor.foreskin++; + } + } + } + } else if (physicalAgeSwap === 12) { + if (actor.dick < 6) { + if (random(1, 100) > (90 / dickMod)) { + actor.dick++; + if (actor.foreskin > 0) { + actor.foreskin++; + } + } + } + } else if (physicalAgeSwap === 13) { + if (actor.dick < 6) { + if (random(1, 100) > (70 / dickMod)) { + actor.dick++; + if (actor.foreskin > 0) { + actor.foreskin++; + } + } + } + } else if (physicalAgeSwap === 14) { + if (actor.dick < 6) { + if (random(1, 100) > (40 / dickMod)) { + actor.dick++; + if (actor.foreskin > 0) { + actor.foreskin++; + } + } + } + } else if (physicalAgeSwap === 15) { + if (actor.dick < 6) { + if (random(1, 100) > (40 / dickMod)) { + actor.dick++; + if (actor.foreskin > 0) { + actor.foreskin++; + } + } + } + } else if (physicalAgeSwap === 16) { + if (actor.dick < 6) { + if (random(1, 100) > (90 / dickMod)) { + actor.dick++; + if (actor.foreskin > 0) { + actor.foreskin++; + } + } + } + } else if (physicalAgeSwap === 17) { + if (actor.dick < 6) { + if (random(1, 100) > (90 / dickMod)) { + actor.dick++; + if (actor.foreskin > 0) { + actor.foreskin++; + } + } + } + } else if (physicalAgeSwap === 18) { + if (actor.dick < 6) { + if (random(1, 100) > (90 / dickMod)) { + actor.dick++; + if (actor.foreskin > 0) { + actor.foreskin++; + } + } + } + } + } else { + if (physicalAgeSwap === 9) { + if (actor.dick < 6 && dickMod === 2) { + if (random(1, 100) > 70) { + actor.dick++; + if (actor.foreskin > 0) { + actor.foreskin++; + } + } + } + } else if (physicalAgeSwap === 10) { + if (actor.dick < 6 && dickMod === 2) { + if (random(1, 100) > 70) { + actor.dick++; + if (actor.foreskin > 0) { + actor.foreskin++; + } + } + } + } else if (physicalAgeSwap === 11) { + if (actor.dick < 6 && dickMod === 2) { + if (random(1, 100) > 70) { + actor.dick++; + if (actor.foreskin > 0) { + actor.foreskin++; + } + } + } + } else if (physicalAgeSwap === 12) { + if (actor.dick < 6 && dickMod === 2) { + if (random(1, 100) > 70) { + actor.dick++; + if (actor.foreskin > 0) { + actor.foreskin++; + } + } + } + } else if (physicalAgeSwap === 13) { + if (actor.dick < 6) { + if (random(1, 100) > (50 / dickMod)) { + actor.dick++; + if (actor.foreskin > 0) { + actor.foreskin++; + } + } + } + } else if (physicalAgeSwap === 14) { + if (actor.dick < 6) { + if (random(1, 100) > (50 / dickMod)) { + actor.dick++; + if (actor.foreskin > 0) { + actor.foreskin++; + } + } + } + } else if (physicalAgeSwap === 15) { + if (actor.dick < 6) { + if (random(1, 100) > (50 / dickMod)) { + actor.dick++; + if (actor.foreskin > 0) { + actor.foreskin++; + } + } + } + } + } + } + + /** + * @param {FC.HumanState} actor + */ + function increaseBalls(actor) { + if (actor.hormoneBalance >= 200) { + // + } else if (actor.hormoneBalance >= 100) { + // + } else if (actor.hormoneBalance <= -200) { + if (physicalAgeSwap === 8) { + if (actor.balls < 6) { + if (random(1, 100) > 10) { + actor.balls++; + if (actor.scrotum > 0) { + actor.scrotum++; + } + } + } + } else if (physicalAgeSwap === 10) { + if (actor.balls < 6) { + if (random(1, 100) > 70) { + actor.balls++; + if (actor.scrotum > 0) { + actor.scrotum++; + } + } + } + } else if (physicalAgeSwap === 11) { + if (actor.balls < 6) { + if (random(1, 100) > 70) { + actor.balls++; + if (actor.scrotum > 0) { + actor.scrotum++; + } + } + } + } else if (physicalAgeSwap === 12) { + if (actor.balls < 6) { + if (random(1, 100) > 70) { + actor.balls++; + if (actor.scrotum > 0) { + actor.scrotum++; + } + } + } + } else if (physicalAgeSwap === 13) { + if (actor.balls < 6) { + if (random(1, 100) > 50) { + actor.balls++; + if (actor.scrotum > 0) { + actor.scrotum++; + } + } + } + } else if (physicalAgeSwap === 14) { + if (actor.balls < 6) { + if (random(1, 100) > 20) { + actor.balls++; + if (actor.scrotum > 0) { + actor.scrotum++; + } + } + } + } else if (physicalAgeSwap === 15) { + if (actor.balls < 6) { + if (random(1, 100) > 20) { + actor.balls++; + if (actor.scrotum > 0) { + actor.scrotum++; + } + } + } + } else if (physicalAgeSwap === 16) { + if (actor.balls < 6) { + if (random(1, 100) > 70) { + actor.balls++; + if (actor.scrotum > 0) { + actor.scrotum++; + } + } + } + } else if (physicalAgeSwap === 17) { + if (actor.balls < 6) { + if (random(1, 100) > 70) { + actor.balls++; + if (actor.scrotum > 0) { + actor.scrotum++; + } + } + } + } else if (physicalAgeSwap === 18) { + if (actor.balls < 6) { + if (random(1, 100) > 70) { + actor.balls++; + if (actor.scrotum > 0) { + actor.scrotum++; + } + } + } + } + } else if (actor.hormoneBalance <= -100) { + if (physicalAgeSwap === 8) { + if (actor.balls < 6) { + if (random(1, 100) > 30) { + actor.balls++; + if (actor.scrotum > 0) { + actor.scrotum++; + } + } + } + } else if (physicalAgeSwap === 10) { + if (actor.balls < 6) { + if (random(1, 100) > 90) { + actor.balls++; + if (actor.scrotum > 0) { + actor.scrotum++; + } + } + } + } else if (physicalAgeSwap === 11) { + if (actor.balls < 6) { + if (random(1, 100) > 90) { + actor.balls++; + if (actor.scrotum > 0) { + actor.scrotum++; + } + } + } + } else if (physicalAgeSwap === 12) { + if (actor.balls < 6) { + if (random(1, 100) > 90) { + actor.balls++; + if (actor.scrotum > 0) { + actor.scrotum++; + } + } + } + } else if (physicalAgeSwap === 13) { + if (actor.balls < 6) { + if (random(1, 100) > 70) { + actor.balls++; + if (actor.scrotum > 0) { + actor.scrotum++; + } + } + } + } else if (physicalAgeSwap === 14) { + if (actor.balls < 6) { + if (random(1, 100) > 40) { + actor.balls++; + if (actor.scrotum > 0) { + actor.scrotum++; + } + } + } + } else if (physicalAgeSwap === 15) { + if (actor.balls < 6) { + if (random(1, 100) > 40) { + actor.balls++; + if (actor.scrotum > 0) { + actor.scrotum++; + } + } + } + } else if (physicalAgeSwap === 16) { + if (actor.balls < 6) { + if (random(1, 100) > 90) { + actor.balls++; + if (actor.scrotum > 0) { + actor.scrotum++; + } + } + } + } else if (physicalAgeSwap === 17) { + if (actor.balls < 6) { + if (random(1, 100) > 90) { + actor.balls++; + if (actor.scrotum > 0) { + actor.scrotum++; + } + } + } + } else if (physicalAgeSwap === 18) { + if (actor.balls < 6) { + if (random(1, 100) > 90) { + actor.balls++; + if (actor.scrotum > 0) { + actor.scrotum++; + } + } + } + } + } else { + if (physicalAgeSwap === 8) { + if (actor.balls < 6) { + if (random(1, 100) > 50) { + actor.balls++; + if (actor.scrotum > 0) { + actor.scrotum++; + } + } + } + } else if (physicalAgeSwap === 13) { + if (actor.balls < 6) { + if (random(1, 100) > 50) { + actor.balls++; + if (actor.scrotum > 0) { + actor.scrotum++; + } + } + } + } else if (physicalAgeSwap === 14) { + if (actor.balls < 6) { + if (random(1, 100) > 50) { + actor.balls++; + if (actor.scrotum > 0) { + actor.scrotum++; + } + } + } + } else if (physicalAgeSwap === 15) { + if (actor.balls < 6) { + if (random(1, 100) > 50) { + actor.balls++; + if (actor.scrotum > 0) { + actor.scrotum++; + } + } + } + } + } + } + + /** + * @param {FC.HumanState} actor + */ + function increaseClit(actor) { + if (actor.hormoneBalance <= -200) { + if (physicalAgeSwap === 8) { + if (actor.clit < 4) { + if (random(1, 100) > 70) { + actor.clit++; + } + } + } else if (physicalAgeSwap === 9) { + if (actor.clit < 4) { + if (random(1, 100) > 70) { + actor.clit++; + } + } + } else if (physicalAgeSwap === 10) { + if (actor.clit < 4) { + if (random(1, 100) > 70) { + actor.clit++; + } + } + } else if (physicalAgeSwap === 11) { + if (actor.clit < 4) { + if (random(1, 100) > 50) { + actor.clit++; + } + } + } else if (physicalAgeSwap === 12) { + if (actor.clit < 4) { + if (random(1, 100) > 50) { + actor.clit++; + } + } + } else if (physicalAgeSwap === 13) { + if (actor.clit < 4) { + if (random(1, 100) > 50) { + actor.clit++; + } + } + } else if (physicalAgeSwap === 14) { + if (actor.clit < 4) { + if (random(1, 100) > 50) { + actor.clit++; + } + } + } else if (physicalAgeSwap === 15) { + if (actor.clit < 4) { + if (random(1, 100) > 50) { + actor.clit++; + } + } + } else if (physicalAgeSwap === 16) { + if (actor.clit < 4) { + if (random(1, 100) > 50) { + actor.clit++; + } + } + } else if (physicalAgeSwap === 17) { + if (actor.clit < 4) { + if (random(1, 100) > 50) { + actor.clit++; + } + } + } else if (physicalAgeSwap === 18) { + if (actor.clit < 4) { + if (random(1, 100) > 50) { + actor.clit++; + } + } + } + } else if (actor.hormoneBalance <= -100) { + if (physicalAgeSwap === 8) { + if (actor.clit.isBetween(0, 4)) { + if (random(1, 100) > 90) { + actor.clit++; + } + } + } else if (physicalAgeSwap === 9) { + if (actor.clit.isBetween(0, 4)) { + if (random(1, 100) > 90) { + actor.clit++; + } + } + } else if (physicalAgeSwap === 10) { + if (actor.clit.isBetween(0, 4)) { + if (random(1, 100) > 90) { + actor.clit++; + } + } + } else if (physicalAgeSwap === 11) { + if (actor.clit.isBetween(0, 4)) { + if (random(1, 100) > 70) { + actor.clit++; + } + } + } else if (physicalAgeSwap === 12) { + if (actor.clit.isBetween(0, 4)) { + if (random(1, 100) > 70) { + actor.clit++; + } + } + } else if (physicalAgeSwap === 13) { + if (actor.clit.isBetween(0, 4)) { + if (random(1, 100) > 70) { + actor.clit++; + } + } + } else if (physicalAgeSwap === 14) { + if (actor.clit.isBetween(0, 4)) { + if (random(1, 100) > 70) { + actor.clit++; + } + } + } else if (physicalAgeSwap === 15) { + if (actor.clit.isBetween(0, 4)) { + if (random(1, 100) > 70) { + actor.clit++; + } + } + } else if (physicalAgeSwap === 16) { + if (actor.clit.isBetween(0, 4)) { + if (random(1, 100) > 70) { + actor.clit++; + } + } + } else if (physicalAgeSwap === 17) { + if (actor.clit.isBetween(0, 4)) { + if (random(1, 100) > 70) { + actor.clit++; + } + } + } else if (physicalAgeSwap === 18) { + if (actor.clit.isBetween(0, 4)) { + if (random(1, 100) > 70) { + actor.clit++; + } + } + } + } + if (physicalAgeSwap >= 11 && actor.geneticQuirks.wellHung === 2 && actor.clit < 5 && random(1, 100) > 60) { + actor.clit++; + } + } + + /** + * @param {FC.HumanState} actor + */ + function increaseWetness(actor) { + if (actor.geneticQuirks.uterineHypersensitivity === 2) { + uterineHypersensitivityMod = 1.5; + } else if (actor.geneticQuirks.uterineHypersensitivity === 1) { + uterineHypersensitivityMod = 1.2; + } else { + uterineHypersensitivityMod = 1; + } + if (actor.hormoneBalance >= 200) { + if (physicalAgeSwap === 8 || physicalAgeSwap === 9) { + if (actor.vaginaLube < 1) { + if (random(1, 100) > 90 / uterineHypersensitivityMod) { + actor.vaginaLube++; + } + } + } else if (physicalAgeSwap <= 12) { + if (actor.vaginaLube < 1) { + if (random(1, 100) > 60 / uterineHypersensitivityMod) { + actor.vaginaLube++; + } + } else if (actor.vaginaLube < 2) { + if (random(1, 100) > 80 / uterineHypersensitivityMod) { + actor.vaginaLube++; + } + } + } else if (physicalAgeSwap <= 15) { + if (actor.vaginaLube < 1) { + if (random(1, 100) > 30 / uterineHypersensitivityMod) { + actor.vaginaLube++; + } + } else if (actor.vaginaLube < 2) { + if (random(1, 100) > 50 / uterineHypersensitivityMod) { + actor.vaginaLube++; + } + } + } else if (physicalAgeSwap <= 18) { + if (actor.vaginaLube < 1) { + if (random(1, 100) > 10 / uterineHypersensitivityMod) { + actor.vaginaLube++; + } + } else if (actor.vaginaLube < 2) { + if (random(1, 100) > 20 / uterineHypersensitivityMod) { + actor.vaginaLube++; + } + } + } + } else if (actor.hormoneBalance >= 100) { + if (physicalAgeSwap > 9 && physicalAgeSwap <= 12) { + if (actor.vaginaLube < 1) { + if (random(1, 100) > 70 / uterineHypersensitivityMod) { + actor.vaginaLube++; + } + } + } else if (physicalAgeSwap <= 15) { + if (actor.vaginaLube < 1) { + if (random(1, 100) > 40 / uterineHypersensitivityMod) { + actor.vaginaLube++; + } + } else if (actor.vaginaLube < 2) { + if (random(1, 100) > 70 / uterineHypersensitivityMod) { + actor.vaginaLube++; + } + } + } else if (physicalAgeSwap <= 18) { + if (actor.vaginaLube < 1) { + if (random(1, 100) > 20 / uterineHypersensitivityMod) { + actor.vaginaLube++; + } + } else if (actor.vaginaLube < 2) { + if (random(1, 100) > 40 / uterineHypersensitivityMod) { + actor.vaginaLube++; + } + } + } + } else if (actor.hormoneBalance >= -20) { + if (physicalAgeSwap > 15 && physicalAgeSwap <= 18) { + if (actor.vaginaLube < 1) { + if (random(1, 100) > 50 / uterineHypersensitivityMod) { + actor.vaginaLube++; + } + } + } + } + } + + /** + * @param {FC.HumanState} actor + */ + function increaseWaistXX(actor) { + if (actor.hormoneBalance >= 200) { + if (physicalAgeSwap >= 12) { + if (actor.waist > -60) { + if (random(1, 100) > 20) { + actor.waist -= 5; + } + } + } + } else if (actor.hormoneBalance >= 100) { + if (physicalAgeSwap >= 12) { + if (actor.waist > -30) { + if (random(1, 100) > 20) { + actor.waist -= 5; + } + } + } + } else if (actor.hormoneBalance <= -200) { + if (physicalAgeSwap >= 12) { + if (actor.waist < 60) { + if (random(1, 100) > 20) { + actor.waist += 5; + } + } + } + } else if (actor.hormoneBalance <= -100) { + if (physicalAgeSwap >= 12) { + if (actor.waist < 30) { + if (random(1, 100) > 20) { + actor.waist += 5; + } + } + } + } else { + if (physicalAgeSwap >= 12) { + if (actor.waist > -20) { + if (random(1, 100) > 60) { + actor.waist -= 5; + } + } + } + } + } + + /** + * @param {FC.HumanState} actor + */ + function increaseWaistXY(actor) { + if (actor.hormoneBalance >= 200) { + if (physicalAgeSwap >= 12) { + if (actor.waist > -30) { + if (random(1, 100) > 20) { + actor.waist -= 5; + } + } + } + } else if (actor.hormoneBalance >= 100) { + if (physicalAgeSwap >= 12) { + if (actor.waist > -15) { + if (random(1, 100) > 20) { + actor.waist -= 5; + } + } + } + } else if (actor.hormoneBalance <= -200) { + if (physicalAgeSwap >= 12) { + if (actor.waist < 90) { + if (random(1, 100) > 20) { + actor.waist += 5; + } + } + } + } else if (actor.hormoneBalance <= -100) { + if (physicalAgeSwap >= 12) { + if (actor.waist < 60) { + if (random(1, 100) > 20) { + actor.waist += 5; + } + } + } + } else { + if (physicalAgeSwap >= 12) { + if (actor.waist < 20) { + if (random(1, 100) > 60) { + actor.waist += 5; + } + } + } + } + } + + /** + * @param {FC.HumanState} actor + */ + function increaseFaceXX(actor) { + if (actor.hormoneBalance >= 200) { + if (actor.face > 60) { + if (random(1, 100) > 80) { + actor.face += 5; + } + } else if (actor.face <= 60) { + if (random(1, 100) > 30) { + actor.face += 10; + } + } + } else if (actor.hormoneBalance >= 100) { + if (actor.face > 60) { + if (random(1, 100) > 80) { + actor.face += 5; + } + } else if (actor.face <= 60) { + if (random(1, 100) > 30) { + actor.face += 10; + } + } + } else if (actor.hormoneBalance <= -200) { + if (actor.face < 100) { + if (random(1, 100) > 50) { + actor.face -= 20; + } + } + } else if (actor.hormoneBalance <= -100) { + if (actor.face < 100) { + if (random(1, 100) > 70) { + actor.face -= 20; + } + } + } else { + if (actor.face > 60) { + if (random(1, 100) > 90) { + actor.face += 5; + } + } else if (actor.face <= 60) { + if (random(1, 100) > 40) { + actor.face += 10; + } + } + } + } + + /** + * @param {FC.HumanState} actor + */ + function increaseFaceXY(actor) { + if (actor.hormoneBalance >= 200) { + if (actor.face > 60) { + if (random(1, 100) > 80) { + actor.face += 5; + } + } else if (actor.face <= 60) { + if (random(1, 100) > 50) { + actor.face += 10; + } + } + } else if (actor.hormoneBalance >= 100) { + if (actor.face > 60) { + if (random(1, 100) > 80) { + actor.face += 10; + } + } + } + } + + /** + * @param {FC.HumanState} actor + */ + function increaseVoiceXX(actor) { + if (actor.hormoneBalance >= 200) { + if (actor.voice === 3) { + if (random(1, 100) > 90) { + actor.voice--; + } + } + } else if (actor.hormoneBalance >= 100) { + if (actor.voice === 3) { + if (random(1, 100) > 80) { + actor.voice--; + } + } + } else if (actor.hormoneBalance <= -200) { + if (actor.voice <= 3) { + if (random(1, 100) > 30) { + actor.voice--; + } + } + } else if (actor.hormoneBalance <= -100) { + if (actor.voice <= 3) { + if (random(1, 100) > 60) { + actor.voice--; + } + } + } else { + if (actor.voice === 3) { + if (random(1, 100) > 60) { + actor.voice--; + } + } + } + } + + /** + * @param {FC.HumanState} actor + */ + function increaseVoiceXY(actor) { + if (actor.hormoneBalance >= 200) { + if (actor.voice < 2) { + if (random(1, 100) > 50) { + actor.voice--; + } + } + } else if (actor.hormoneBalance >= 100) { + if (actor.voice < 3) { + if (random(1, 100) > 50) { + actor.voice--; + } + } + } else if (actor.hormoneBalance <= -200) { + if (actor.voice > 1) { + if (random(1, 100) > 10) { + actor.voice--; + } + } + } else if (actor.hormoneBalance <= -100) { + if (actor.voice > 1) { + if (random(1, 100) > 30) { + actor.voice--; + } + } + } else { + if (actor.voice > 1) { + if (random(1, 100) > 60) { + actor.voice--; + } + } + } + } + + /** + * @param {FC.HumanState} actor + */ + function increasePregAdaptationXX(actor) { + if (physicalAgeSwap === 3) { + if (actor.pregAdaptation < 5) { + actor.pregAdaptation = 5; + } + } else if (physicalAgeSwap === 4) { + if (actor.pregAdaptation < 5) { + actor.pregAdaptation++; + } + } else if (physicalAgeSwap === 5) { + if (actor.pregAdaptation < 5) { + actor.pregAdaptation++; + } + } else if (physicalAgeSwap === 6) { + if (actor.pregAdaptation < 5) { + actor.pregAdaptation++; + } + } else if (physicalAgeSwap === 7) { + if (actor.pregAdaptation < 6) { + actor.pregAdaptation++; + } + } else if (physicalAgeSwap === 8) { + if (actor.pregAdaptation < 7) { + actor.pregAdaptation++; + } + } else if (physicalAgeSwap === 9) { + if (actor.pregAdaptation < 8) { + actor.pregAdaptation++; + } + } else if (physicalAgeSwap === 10) { + if (actor.pregAdaptation < 9) { + actor.pregAdaptation++; + } + } else if (physicalAgeSwap === 11) { + if (actor.pregAdaptation < 10) { + actor.pregAdaptation++; + } + } else if (physicalAgeSwap === 12) { + if (actor.pregAdaptation < 14) { + actor.pregAdaptation += 4; + } + } else if (physicalAgeSwap === 13) { + if (actor.pregAdaptation < 18) { + actor.pregAdaptation += 4; + } + } else if (physicalAgeSwap === 14) { + if (actor.pregAdaptation < 22) { + actor.pregAdaptation += 4; + } + } else if (physicalAgeSwap === 15) { + if (actor.pregAdaptation < 28) { + actor.pregAdaptation += 6; + } + } else if (physicalAgeSwap === 16) { + if (actor.pregAdaptation < 34) { + actor.pregAdaptation += 6; + } + } else if (physicalAgeSwap === 17) { + if (actor.pregAdaptation < 42) { + actor.pregAdaptation += 8; + } + } else if (physicalAgeSwap === 18) { + if (actor.pregAdaptation < 50) { + actor.pregAdaptation += 8; + } + } + } + + /** + * @param {FC.HumanState} actor + */ + function increasePregAdaptationXY(actor) { + if (physicalAgeSwap === 3) { + if (actor.pregAdaptation < 5) { + actor.pregAdaptation = 5; + } + } else if (physicalAgeSwap === 4) { + if (actor.pregAdaptation < 5) { + actor.pregAdaptation++; + } + } else if (physicalAgeSwap === 5) { + if (actor.pregAdaptation < 5) { + actor.pregAdaptation++; + } + } else if (physicalAgeSwap === 6) { + if (actor.pregAdaptation < 5) { + actor.pregAdaptation++; + } + } else if (physicalAgeSwap === 7) { + if (actor.pregAdaptation < 6) { + actor.pregAdaptation++; + } + } else if (physicalAgeSwap === 8) { + if (actor.pregAdaptation < 7) { + actor.pregAdaptation++; + } + } else if (physicalAgeSwap === 9) { + if (actor.pregAdaptation < 8) { + actor.pregAdaptation++; + } + } else if (physicalAgeSwap === 10) { + if (actor.pregAdaptation < 9) { + actor.pregAdaptation++; + } + } else if (physicalAgeSwap === 11) { + if (actor.pregAdaptation < 10) { + actor.pregAdaptation++; + } + } else if (physicalAgeSwap === 12) { + if (actor.pregAdaptation < 12) { + actor.pregAdaptation += 2; + } + } else if (physicalAgeSwap === 13) { + if (actor.pregAdaptation < 14) { + actor.pregAdaptation += 2; + } + } else if (physicalAgeSwap === 14) { + if (actor.pregAdaptation < 16) { + actor.pregAdaptation += 2; + } + } else if (physicalAgeSwap === 15) { + if (actor.pregAdaptation < 18) { + actor.pregAdaptation += 2; + } + } else if (physicalAgeSwap === 16) { + if (actor.pregAdaptation < 20) { + actor.pregAdaptation += 2; + } + } else if (physicalAgeSwap === 17) { + if (actor.pregAdaptation < 20) { + actor.pregAdaptation += 2; + } + } else if (physicalAgeSwap === 18) { + if (actor.pregAdaptation < 20) { + actor.pregAdaptation += 2; + } + } + } +}; diff --git a/src/js/physicalDevelopment.js b/src/js/physicalDevelopment.js deleted file mode 100644 index 9e5308e027d7579829044960852376b89c81fb53..0000000000000000000000000000000000000000 --- a/src/js/physicalDevelopment.js +++ /dev/null @@ -1,3752 +0,0 @@ -globalThis.physicalDevelopment = (function physicalDevelopment() { - "use strict"; - - let gigantomastiaMod; - let uterineHypersensitivityMod; - let rearQuirk; - let rearQuirkDivider; - let dickMod; - let physicalAgeSwap; - - return physicalDevelopment; - - /** - * @param {App.Entity.SlaveState} slave - */ - function physicalDevelopment(slave) { - if (slave.geneticQuirks.progeria === 2) { - // since progeria increases .physicalAge, we need to work around it. - // nothing other than the incubator drastically desyncs it, and progeria slaves do not live through incubation, so this should be fine. - physicalAgeSwap = slave.actualAge; - } else { - physicalAgeSwap = slave.physicalAge; - } - if (slave.geneMods.NCS !== 1) { - /* NCS completely blocks all natural physical growth: no height increases. It also blocks all hormonal secondary sexual * characteristics. So, on the female side: no boobs, no butt, no hips, and no labia. And on the male side: no dick, no clit, no balls, no scrotum, no shoulders. */ - /* so this is a big old NO-OP to skip the physical development. */ - if (slave.geneticQuirks.androgyny === 2) { /* takes a mix of both to create a very androgynous slave */ - if (slave.geneticQuirks.dwarfism === 2 && slave.geneticQuirks.gigantism !== 2) { - increaseHeightDwarf(slave); - } else if (slave.geneticQuirks.gigantism === 2) { - increaseHeightGiant(slave); - } else if (slave.geneticQuirks.neoteny === 2) { - increaseHeightNeoteny(slave); - } else { - increaseHeightXX(slave); - } - if (slave.geneticQuirks.neoteny !== 2) { - if (slave.boobs - slave.boobsImplant <= 300) { - increaseBoobsXX(slave); - } - if (slave.dick.isBetween(0, 3) || slave.geneticQuirks.wellHung === 2) { - increaseDick(slave); - } - if (slave.balls.isBetween(0, 3)) { - increaseBalls(slave); - } - if (slave.vagina > 0 && slave.ovaries > 0 && physicalAgeSwap > slave.pubertyAgeXX) { - increaseWetness(slave); - } - if (slave.waist < 10) { - increaseWaistXY(slave); - } - if (slave.hips - slave.hipsImplant < 0) { - increaseHipsXX(slave); - } - if (slave.butt - slave.buttImplant < 3) { - increaseButtXX(slave); - } - } - increasePregAdaptationXX(slave); - } else if (slave.genes === "XX") { /* loli becoming a woman */ - if (slave.geneticQuirks.dwarfism === 2 && slave.geneticQuirks.gigantism !== 2) { - increaseHeightDwarf(slave); - } else if (slave.geneticQuirks.gigantism === 2) { - increaseHeightGiant(slave); - } else if (slave.geneticQuirks.neoteny === 2) { - increaseHeightNeoteny(slave); - } else { - increaseHeightXX(slave); - } - if (physicalAgeSwap === 13 || (physicalAgeSwap > 13 && (slave.hormoneBalance >= 100 || slave.hormoneBalance <= -100))) { - increaseFaceXX(slave); - if (slave.voice > 0) { - increaseVoiceXX(slave); - } - } - if (slave.geneticQuirks.neoteny !== 2) { - increaseBoobsXX(slave); - if (slave.clit > 0) { - increaseClit(slave); - } - if (slave.vagina > 0 && slave.ovaries > 0 && physicalAgeSwap > slave.pubertyAgeXX) { - increaseWetness(slave); - } - increaseWaistXX(slave); - increaseHipsXX(slave); - increaseButtXX(slave); - } - increasePregAdaptationXX(slave); - } else { - /* shota becoming a man */ - if (slave.geneticQuirks.dwarfism === 2 && slave.geneticQuirks.gigantism !== 2) { - increaseHeightDwarf(slave); - } else if (slave.geneticQuirks.gigantism === 2) { - increaseHeightGiant(slave); - } else if (slave.geneticQuirks.neoteny === 2) { - increaseHeightNeoteny(slave); - } else { - increaseHeightXY(slave); - } - if (physicalAgeSwap === 13 || (physicalAgeSwap > 13 && (slave.hormoneBalance >= 100 || slave.hormoneBalance <= -100))) { - increaseFaceXY(slave); - if (slave.voice > 1) { - increaseVoiceXY(slave); - } - } - if (slave.geneticQuirks.neoteny !== 2) { - increaseBoobsXY(slave); - if (slave.dick > 0) { - increaseDick(slave); - } - if (slave.balls > 0) { - increaseBalls(slave); - } - increaseWaistXY(slave); - increaseHipsXY(slave); - increaseButtXY(slave); - } - increasePregAdaptationXY(slave); - } - } - } - - /** - * @param {App.Entity.SlaveState} slave - */ - function increaseHeightXX(slave) { - if (slave.hormoneBalance >= 200) { - if (physicalAgeSwap === 3) { - if (slave.height <= 91) { - slave.height += jsEither([8, 8, 9, 9]); - } else if (slave.height <= 101) { - slave.height += 5; - } - } else if (physicalAgeSwap === 4) { - if (slave.height <= 101) { - slave.height += jsEither([6, 6, 7, 7]); - } else if (slave.height <= 109) { - slave.height += 4; - } - } else if (physicalAgeSwap === 5) { - if (slave.height <= 109) { - slave.height += jsEither([6, 6, 7, 7]); - } else if (slave.height <= 116) { - slave.height += 4; - } - } else if (physicalAgeSwap === 6) { - if (slave.height <= 116) { - slave.height += jsEither([5, 5, 6, 6]); - } else if (slave.height <= 124) { - slave.height += 3; - } - } else if (physicalAgeSwap === 7) { - if (slave.height <= 124) { - slave.height += jsEither([7, 7, 8, 8]); - } else if (slave.height <= 131) { - slave.height += 3; - } - } else if (physicalAgeSwap === 8) { - if (slave.height <= 131) { - slave.height += jsEither([5, 5, 6, 6]); - } else if (slave.height <= 137) { - slave.height += 3; - } - } else if (physicalAgeSwap === 9) { - if (slave.height <= 137) { - slave.height += jsEither([4, 4, 5, 5]); - } else if (slave.height <= 144) { - slave.height += 3; - } - } else if (physicalAgeSwap === 10) { - if (slave.height <= 144) { - slave.height += jsEither([6, 6, 7, 7]); - } else if (slave.height <= 156) { - slave.height += 3; - } - } else if (physicalAgeSwap === 11) { - if (slave.height <= 156) { - slave.height += jsEither([5, 5, 6, 6]); - } else if (slave.height <= 163) { - slave.height += 3; - } - } else if (physicalAgeSwap === 12) { - if (slave.height <= 163) { - slave.height += jsEither([6, 6, 7, 7]); - } else if (slave.height <= 168) { - slave.height += 3; - } - } else if (physicalAgeSwap === 13) { - if (slave.height <= 168) { - slave.height += jsEither([5, 5, 6, 6]); - } else if (slave.height <= 171) { - slave.height += 3; - } - } else if (physicalAgeSwap === 14) { - if (slave.height <= 171) { - slave.height += jsEither([4, 4, 5, 5]); - } else if (slave.height <= 173) { - slave.height += 3; - } - } else if (physicalAgeSwap === 15) { - if (slave.height <= 174) { - slave.height += jsEither([0, 0, 1, 1]); - } - } else if (physicalAgeSwap === 16) { - if (slave.height <= 174) { - slave.height += jsEither([0, 0, 1, 1]); - } - } else if (physicalAgeSwap === 17) { - if (slave.height <= 174) { - slave.height += jsEither([0, 0, 1, 1]); - } - } else if (physicalAgeSwap === 18) { - if (slave.height <= 174) { - slave.height += jsEither([0, 0, 1, 1]); - } - } - } else if (slave.hormoneBalance >= 100) { - if (physicalAgeSwap === 3) { - if (slave.height <= 91) { - slave.height += jsEither([8, 8, 9, 9, 9]); - } else if (slave.height <= 101) { - slave.height += 5; - } - } else if (physicalAgeSwap === 4) { - if (slave.height <= 101) { - slave.height += jsEither([6, 6, 7, 7, 7]); - } else if (slave.height <= 109) { - slave.height += 4; - } - } else if (physicalAgeSwap === 5) { - if (slave.height <= 109) { - slave.height += jsEither([6, 6, 7, 7, 7]); - } else if (slave.height <= 116) { - slave.height += 4; - } - } else if (physicalAgeSwap === 6) { - if (slave.height <= 116) { - slave.height += jsEither([5, 5, 6, 6, 6]); - } else if (slave.height <= 124) { - slave.height += 3; - } - } else if (physicalAgeSwap === 7) { - if (slave.height <= 124) { - slave.height += jsEither([7, 7, 8, 8, 8]); - } else if (slave.height <= 131) { - slave.height += 3; - } - } else if (physicalAgeSwap === 8) { - if (slave.height <= 131) { - slave.height += jsEither([5, 5, 6, 6, 6]); - } else if (slave.height <= 137) { - slave.height += 3; - } - } else if (physicalAgeSwap === 9) { - if (slave.height <= 137) { - slave.height += jsEither([4, 4, 5, 5, 5]); - } else if (slave.height <= 144) { - slave.height += 3; - } - } else if (physicalAgeSwap === 10) { - if (slave.height <= 144) { - slave.height += jsEither([6, 6, 7, 7, 7]); - } else if (slave.height <= 156) { - slave.height += 3; - } - } else if (physicalAgeSwap === 11) { - if (slave.height <= 156) { - slave.height += jsEither([5, 5, 6, 6, 6]); - } else if (slave.height <= 163) { - slave.height += 3; - } - } else if (physicalAgeSwap === 12) { - if (slave.height <= 163) { - slave.height += jsEither([6, 6, 7, 7, 7]); - } else if (slave.height <= 168) { - slave.height += 3; - } - } else if (physicalAgeSwap === 13) { - if (slave.height <= 168) { - slave.height += jsEither([5, 5, 6, 6, 6]); - } else if (slave.height <= 171) { - slave.height += 3; - } - } else if (physicalAgeSwap === 14) { - if (slave.height <= 171) { - slave.height += jsEither([4, 4, 5, 5, 5]); - } else if (slave.height <= 173) { - slave.height += 3; - } - } else if (physicalAgeSwap === 15) { - if (slave.height <= 174) { - slave.height += jsEither([0, 0, 1, 1, 1]); - } - } else if (physicalAgeSwap === 16) { - if (slave.height <= 174) { - slave.height += jsEither([0, 0, 1, 1, 1]); - } - } else if (physicalAgeSwap === 17) { - if (slave.height <= 174) { - slave.height += jsEither([0, 0, 1, 1, 1]); - } - } else if (physicalAgeSwap === 18) { - if (slave.height <= 174) { - slave.height += jsEither([0, 0, 1, 1, 1]); - } - } - } else if (slave.hormoneBalance <= -200) { - if (physicalAgeSwap === 3) { - if (slave.height <= 91) { - slave.height += jsEither([9, 9, 9, 10, 10]); - } else if (slave.height <= 101) { - slave.height += 5; - } - } else if (physicalAgeSwap === 4) { - if (slave.height <= 101) { - slave.height += jsEither([7, 7, 7, 8, 8]); - } else if (slave.height <= 109) { - slave.height += 4; - } - } else if (physicalAgeSwap === 5) { - if (slave.height <= 109) { - slave.height += jsEither([7, 7, 7, 8, 8]); - } else if (slave.height <= 116) { - slave.height += 4; - } - } else if (physicalAgeSwap === 6) { - if (slave.height <= 116) { - slave.height += jsEither([6, 6, 6, 7, 7]); - } else if (slave.height <= 124) { - slave.height += 3; - } - } else if (physicalAgeSwap === 7) { - if (slave.height <= 124) { - slave.height += jsEither([8, 8, 8, 9, 9]); - } else if (slave.height <= 131) { - slave.height += 3; - } - } else if (physicalAgeSwap === 8) { - if (slave.height <= 131) { - slave.height += jsEither([6, 6, 6, 7, 7]); - } else if (slave.height <= 137) { - slave.height += 3; - } - } else if (physicalAgeSwap === 9) { - if (slave.height <= 137) { - slave.height += jsEither([5, 5, 5, 6, 6]); - } else if (slave.height <= 144) { - slave.height += 3; - } - } else if (physicalAgeSwap === 10) { - if (slave.height <= 144) { - slave.height += jsEither([7, 7, 7, 8, 8]); - } else if (slave.height <= 156) { - slave.height += 3; - } - } else if (physicalAgeSwap === 11) { - if (slave.height <= 156) { - slave.height += jsEither([6, 6, 6, 7, 7]); - } else if (slave.height <= 163) { - slave.height += 3; - } - } else if (physicalAgeSwap === 12) { - if (slave.height <= 163) { - slave.height += jsEither([7, 7, 7, 8, 8]); - } else if (slave.height <= 168) { - slave.height += 3; - } - } else if (physicalAgeSwap === 13) { - if (slave.height <= 168) { - slave.height += jsEither([6, 6, 6, 7, 7]); - } else if (slave.height <= 171) { - slave.height += 3; - } - } else if (physicalAgeSwap === 14) { - if (slave.height <= 171) { - slave.height += jsEither([5, 5, 5, 6, 6]); - } else if (slave.height <= 173) { - slave.height += 3; - } - } else if (physicalAgeSwap === 15) { - if (slave.height <= 174) { - slave.height += jsEither([1, 1, 1, 2, 2]); - } - } else if (physicalAgeSwap === 16) { - if (slave.height <= 174) { - slave.height += jsEither([1, 1, 1, 2, 2]); - } - } else if (physicalAgeSwap === 17) { - if (slave.height <= 174) { - slave.height += jsEither([1, 1, 1, 2, 2]); - } - } else if (physicalAgeSwap === 18) { - if (slave.height <= 174) { - slave.height += jsEither([1, 1, 1, 2, 2]); - } - } - } else if (slave.hormoneBalance <= -100) { - if (physicalAgeSwap === 3) { - if (slave.height <= 91) { - slave.height += jsEither([8, 9, 9, 10, 10]); - } else if (slave.height <= 101) { - slave.height += 5; - } - } else if (physicalAgeSwap === 4) { - if (slave.height <= 101) { - slave.height += jsEither([6, 7, 7, 8, 8]); - } else if (slave.height <= 109) { - slave.height += 4; - } - } else if (physicalAgeSwap === 5) { - if (slave.height <= 109) { - slave.height += jsEither([6, 7, 7, 8, 8]); - } else if (slave.height <= 116) { - slave.height += 4; - } - } else if (physicalAgeSwap === 6) { - if (slave.height <= 116) { - slave.height += jsEither([5, 6, 6, 7, 7]); - } else if (slave.height <= 124) { - slave.height += 3; - } - } else if (physicalAgeSwap === 7) { - if (slave.height <= 124) { - slave.height += jsEither([7, 8, 8, 9, 9]); - } else if (slave.height <= 131) { - slave.height += 3; - } - } else if (physicalAgeSwap === 8) { - if (slave.height <= 131) { - slave.height += jsEither([5, 6, 6, 7, 7]); - } else if (slave.height <= 137) { - slave.height += 3; - } - } else if (physicalAgeSwap === 9) { - if (slave.height <= 137) { - slave.height += jsEither([4, 5, 5, 6, 6]); - } else if (slave.height <= 144) { - slave.height += 3; - } - } else if (physicalAgeSwap === 10) { - if (slave.height <= 144) { - slave.height += jsEither([6, 7, 7, 8, 8]); - } else if (slave.height <= 156) { - slave.height += 3; - } - } else if (physicalAgeSwap === 11) { - if (slave.height <= 156) { - slave.height += jsEither([5, 6, 6, 7, 7]); - } else if (slave.height <= 163) { - slave.height += 3; - } - } else if (physicalAgeSwap === 12) { - if (slave.height <= 163) { - slave.height += jsEither([6, 7, 7, 8, 8]); - } else if (slave.height <= 168) { - slave.height += 3; - } - } else if (physicalAgeSwap === 13) { - if (slave.height <= 168) { - slave.height += jsEither([5, 6, 6, 7, 7]); - } else if (slave.height <= 171) { - slave.height += 3; - } - } else if (physicalAgeSwap === 14) { - if (slave.height <= 171) { - slave.height += jsEither([4, 5, 5, 6, 6]); - } else if (slave.height <= 173) { - slave.height += 3; - } - } else if (physicalAgeSwap === 15) { - if (slave.height <= 174) { - slave.height += jsEither([0, 1, 1, 2, 2]); - } - } else if (physicalAgeSwap === 16) { - if (slave.height <= 174) { - slave.height += jsEither([0, 1, 1, 2, 2]); - } - } else if (physicalAgeSwap === 17) { - if (slave.height <= 174) { - slave.height += jsEither([0, 1, 1, 2, 2]); - } - } else if (physicalAgeSwap === 18) { - if (slave.height <= 174) { - slave.height += jsEither([0, 1, 1, 2, 2]); - } - } - } else { - if (physicalAgeSwap === 3) { - if (slave.height <= 91) { - slave.height += jsEither([8, 8, 9, 9, 9, 10]); - } else if (slave.height <= 101) { - slave.height += 5; - } - } else if (physicalAgeSwap === 4) { - if (slave.height <= 101) { - slave.height += jsEither([6, 6, 7, 7, 8, 8]); - } else if (slave.height <= 109) { - slave.height += 4; - } - } else if (physicalAgeSwap === 5) { - if (slave.height <= 109) { - slave.height += jsEither([6, 6, 7, 7, 7, 8]); - } else if (slave.height <= 116) { - slave.height += 4; - } - } else if (physicalAgeSwap === 6) { - if (slave.height <= 116) { - slave.height += jsEither([5, 5, 6, 6, 6, 7]); - } else if (slave.height <= 124) { - slave.height += 3; - } - } else if (physicalAgeSwap === 7) { - if (slave.height <= 124) { - slave.height += jsEither([7, 7, 8, 8, 8, 9]); - } else if (slave.height <= 131) { - slave.height += 3; - } - } else if (physicalAgeSwap === 8) { - if (slave.height <= 131) { - slave.height += jsEither([5, 5, 6, 6, 6, 7]); - } else if (slave.height <= 137) { - slave.height += 3; - } - } else if (physicalAgeSwap === 9) { - if (slave.height <= 137) { - slave.height += jsEither([4, 4, 5, 5, 5, 6]); - } else if (slave.height <= 144) { - slave.height += 3; - } - } else if (physicalAgeSwap === 10) { - if (slave.height <= 144) { - slave.height += jsEither([6, 6, 7, 7, 7, 8]); - } else if (slave.height <= 156) { - slave.height += 3; - } - } else if (physicalAgeSwap === 11) { - if (slave.height <= 156) { - slave.height += jsEither([5, 5, 6, 6, 6, 7]); - } else if (slave.height <= 163) { - slave.height += 3; - } - } else if (physicalAgeSwap === 12) { - if (slave.height <= 163) { - slave.height += jsEither([6, 6, 7, 7, 7, 8]); - } else if (slave.height <= 168) { - slave.height += 3; - } - } else if (physicalAgeSwap === 13) { - if (slave.height <= 168) { - slave.height += jsEither([5, 5, 6, 6, 6, 7]); - } else if (slave.height <= 171) { - slave.height += 3; - } - } else if (physicalAgeSwap === 14) { - if (slave.height <= 171) { - slave.height += jsEither([4, 4, 5, 5, 5, 6]); - } else if (slave.height <= 173) { - slave.height += 3; - } - } else if (physicalAgeSwap === 15) { - if (slave.height <= 174) { - slave.height += jsEither([0, 0, 1, 1, 1, 2]); - } - } else if (physicalAgeSwap === 16) { - if (slave.height <= 174) { - slave.height += jsEither([0, 0, 1, 1, 1, 2]); - } - } else if (physicalAgeSwap === 17) { - if (slave.height <= 174) { - slave.height += jsEither([0, 0, 1, 1, 1, 2]); - } - } else if (physicalAgeSwap === 18) { - if (slave.height <= 174) { - slave.height += jsEither([0, 0, 1, 1, 1, 2]); - } - } - } - } - - /** - * @param {App.Entity.SlaveState} slave - */ - function increaseHeightXY(slave) { - if (slave.hormoneBalance >= 200) { - if (physicalAgeSwap === 3) { - if (slave.height <= 93) { - slave.height += jsEither([9, 9, 10, 10]); - } else if (slave.height <= 103) { - slave.height += 6; - } - } else if (physicalAgeSwap === 4) { - if (slave.height <= 103) { - slave.height += jsEither([7, 7, 8, 8]); - } else if (slave.height <= 110) { - slave.height += 5; - } - } else if (physicalAgeSwap === 5) { - if (slave.height <= 110) { - slave.height += jsEither([6, 6, 7, 7]); - } else if (slave.height <= 117) { - slave.height += 4; - } - } else if (physicalAgeSwap === 6) { - if (slave.height <= 117) { - slave.height += jsEither([6, 6, 7, 7]); - } else if (slave.height <= 124) { - slave.height += 4; - } - } else if (physicalAgeSwap === 7) { - if (slave.height <= 124) { - slave.height += jsEither([6, 6, 7, 7]); - } else if (slave.height <= 131) { - slave.height += 4; - } - } else if (physicalAgeSwap === 8) { - if (slave.height <= 131) { - slave.height += jsEither([5, 5, 6, 6]); - } else if (slave.height <= 137) { - slave.height += 3; - } - } else if (physicalAgeSwap === 9) { - if (slave.height <= 137) { - slave.height += jsEither([4, 4, 5, 5]); - } else if (slave.height <= 144) { - slave.height += 3; - } - } else if (physicalAgeSwap === 10) { - if (slave.height <= 144) { - slave.height += jsEither([5, 5, 6, 6]); - } else if (slave.height <= 150) { - slave.height += 3; - } - } else if (physicalAgeSwap === 11) { - if (slave.height <= 150) { - slave.height += jsEither([5, 5, 6, 6]); - } else if (slave.height <= 156) { - slave.height += 3; - } - } else if (physicalAgeSwap === 12) { - if (slave.height <= 156) { - slave.height += jsEither([5, 5, 6, 6]); - } else if (slave.height <= 162) { - slave.height += 3; - } - } else if (physicalAgeSwap === 13) { - if (slave.height <= 162) { - slave.height += jsEither([7, 7, 8, 8]); - } else if (slave.height <= 170) { - slave.height += 5; - } - } else if (physicalAgeSwap === 14) { - if (slave.height <= 170) { - slave.height += jsEither([6, 6, 7, 7]); - } else if (slave.height <= 177) { - slave.height += 4; - } - } else if (physicalAgeSwap === 15) { - if (slave.height <= 177) { - slave.height += jsEither([6, 6, 7, 7]); - } else if (slave.height <= 184) { - slave.height += 4; - } - } else if (physicalAgeSwap === 16) { - if (slave.height <= 184) { - slave.height += jsEither([2, 2, 3, 3]); - } - } else if (physicalAgeSwap === 17) { - if (slave.height <= 185) { - slave.height += jsEither([1, 1, 2, 2]); - } - } else if (physicalAgeSwap === 18) { - if (slave.height <= 186) { - slave.height += jsEither([0, 0, 1, 1]); - } - } - } else if (slave.hormoneBalance >= 100) { - if (physicalAgeSwap === 3) { - if (slave.height <= 93) { - slave.height += jsEither([9, 9, 9, 10, 10]); - } else if (slave.height <= 103) { - slave.height += 6; - } - } else if (physicalAgeSwap === 4) { - if (slave.height <= 103) { - slave.height += jsEither([7, 7, 8, 8, 8]); - } else if (slave.height <= 110) { - slave.height += 5; - } - } else if (physicalAgeSwap === 5) { - if (slave.height <= 110) { - slave.height += jsEither([6, 6, 7, 7, 7]); - } else if (slave.height <= 117) { - slave.height += 4; - } - } else if (physicalAgeSwap === 6) { - if (slave.height <= 117) { - slave.height += jsEither([6, 6, 7, 7, 7]); - } else if (slave.height <= 124) { - slave.height += 4; - } - } else if (physicalAgeSwap === 7) { - if (slave.height <= 124) { - slave.height += jsEither([6, 6, 7, 7, 7]); - } else if (slave.height <= 131) { - slave.height += 4; - } - } else if (physicalAgeSwap === 8) { - if (slave.height <= 131) { - slave.height += jsEither([5, 5, 6, 6, 6]); - } else if (slave.height <= 137) { - slave.height += 3; - } - } else if (physicalAgeSwap === 9) { - if (slave.height <= 137) { - slave.height += jsEither([4, 4, 5, 5, 5]); - } else if (slave.height <= 144) { - slave.height += 3; - } - } else if (physicalAgeSwap === 10) { - if (slave.height <= 144) { - slave.height += jsEither([5, 5, 6, 6, 6]); - } else if (slave.height <= 150) { - slave.height += 3; - } - } else if (physicalAgeSwap === 11) { - if (slave.height <= 150) { - slave.height += jsEither([5, 5, 6, 6, 6]); - } else if (slave.height <= 156) { - slave.height += 3; - } - } else if (physicalAgeSwap === 12) { - if (slave.height <= 156) { - slave.height += jsEither([5, 5, 6, 6, 6]); - } else if (slave.height <= 162) { - slave.height += 3; - } - } else if (physicalAgeSwap === 13) { - if (slave.height <= 162) { - slave.height += jsEither([7, 7, 8, 8, 8]); - } else if (slave.height <= 170) { - slave.height += 5; - } - } else if (physicalAgeSwap === 14) { - if (slave.height <= 170) { - slave.height += jsEither([6, 6, 7, 7, 7]); - } else if (slave.height <= 177) { - slave.height += 4; - } - } else if (physicalAgeSwap === 15) { - if (slave.height <= 177) { - slave.height += jsEither([6, 6, 7, 7, 7]); - } else if (slave.height <= 184) { - slave.height += 4; - } - } else if (physicalAgeSwap === 16) { - if (slave.height <= 184) { - slave.height += jsEither([2, 2, 3, 3, 3]); - } - } else if (physicalAgeSwap === 17) { - if (slave.height <= 185) { - slave.height += jsEither([1, 1, 2, 2, 2]); - } - } else if (physicalAgeSwap === 18) { - if (slave.height <= 186) { - slave.height += jsEither([0, 0, 1, 1, 1]); - } - } - } else if (slave.hormoneBalance <= -200) { - if (physicalAgeSwap === 3) { - if (slave.height <= 93) { - slave.height += jsEither([10, 10, 11, 11]); - } else if (slave.height <= 103) { - slave.height += 6; - } - } else if (physicalAgeSwap === 4) { - if (slave.height <= 103) { - slave.height += jsEither([8, 8, 9, 9]); - } else if (slave.height <= 110) { - slave.height += 5; - } - } else if (physicalAgeSwap === 5) { - if (slave.height <= 110) { - slave.height += jsEither([7, 7, 8, 8]); - } else if (slave.height <= 117) { - slave.height += 4; - } - } else if (physicalAgeSwap === 6) { - if (slave.height <= 117) { - slave.height += jsEither([7, 7, 8, 8]); - } else if (slave.height <= 124) { - slave.height += 4; - } - } else if (physicalAgeSwap === 7) { - if (slave.height <= 124) { - slave.height += jsEither([7, 7, 8, 8]); - } else if (slave.height <= 131) { - slave.height += 4; - } - } else if (physicalAgeSwap === 8) { - if (slave.height <= 131) { - slave.height += jsEither([6, 6, 7, 7]); - } else if (slave.height <= 137) { - slave.height += 3; - } - } else if (physicalAgeSwap === 9) { - if (slave.height <= 137) { - slave.height += jsEither([5, 5, 6, 6]); - } else if (slave.height <= 144) { - slave.height += 3; - } - } else if (physicalAgeSwap === 10) { - if (slave.height <= 144) { - slave.height += jsEither([6, 6, 7, 7]); - } else if (slave.height <= 150) { - slave.height += 3; - } - } else if (physicalAgeSwap === 11) { - if (slave.height <= 150) { - slave.height += jsEither([6, 6, 7, 7]); - } else if (slave.height <= 156) { - slave.height += 3; - } - } else if (physicalAgeSwap === 12) { - if (slave.height <= 156) { - slave.height += jsEither([6, 6, 7, 7]); - } else if (slave.height <= 162) { - slave.height += 3; - } - } else if (physicalAgeSwap === 13) { - if (slave.height <= 162) { - slave.height += jsEither([8, 8, 9, 9]); - } else if (slave.height <= 170) { - slave.height += 5; - } - } else if (physicalAgeSwap === 14) { - if (slave.height <= 170) { - slave.height += jsEither([7, 7, 8, 8]); - } else if (slave.height <= 177) { - slave.height += 4; - } - } else if (physicalAgeSwap === 15) { - if (slave.height <= 177) { - slave.height += jsEither([7, 7, 8, 8]); - } else if (slave.height <= 184) { - slave.height += 4; - } - } else if (physicalAgeSwap === 16) { - if (slave.height <= 184) { - slave.height += jsEither([3, 3, 4, 4]); - } - } else if (physicalAgeSwap === 17) { - if (slave.height <= 185) { - slave.height += jsEither([2, 2, 3, 3]); - } - } else if (physicalAgeSwap === 18) { - if (slave.height <= 186) { - slave.height += jsEither([1, 1, 2, 2]); - } - } - } else if (slave.hormoneBalance <= -100) { - if (physicalAgeSwap === 3) { - if (slave.height <= 93) { - slave.height += jsEither([10, 10, 10, 11, 11]); - } else if (slave.height <= 103) { - slave.height += 6; - } - } else if (physicalAgeSwap === 4) { - if (slave.height <= 103) { - slave.height += jsEither([8, 8, 8, 9, 9]); - } else if (slave.height <= 110) { - slave.height += 5; - } - } else if (physicalAgeSwap === 5) { - if (slave.height <= 110) { - slave.height += jsEither([7, 7, 7, 8, 8]); - } else if (slave.height <= 117) { - slave.height += 4; - } - } else if (physicalAgeSwap === 6) { - if (slave.height <= 117) { - slave.height += jsEither([7, 7, 7, 8, 8]); - } else if (slave.height <= 124) { - slave.height += 4; - } - } else if (physicalAgeSwap === 7) { - if (slave.height <= 124) { - slave.height += jsEither([7, 7, 7, 8, 8]); - } else if (slave.height <= 131) { - slave.height += 4; - } - } else if (physicalAgeSwap === 8) { - if (slave.height <= 131) { - slave.height += jsEither([6, 6, 6, 7, 7]); - } else if (slave.height <= 137) { - slave.height += 3; - } - } else if (physicalAgeSwap === 9) { - if (slave.height <= 137) { - slave.height += jsEither([5, 5, 5, 6, 6]); - } else if (slave.height <= 144) { - slave.height += 3; - } - } else if (physicalAgeSwap === 10) { - if (slave.height <= 144) { - slave.height += jsEither([6, 6, 6, 7, 7]); - } else if (slave.height <= 150) { - slave.height += 3; - } - } else if (physicalAgeSwap === 11) { - if (slave.height <= 150) { - slave.height += jsEither([6, 6, 6, 7, 7]); - } else if (slave.height <= 156) { - slave.height += 3; - } - } else if (physicalAgeSwap === 12) { - if (slave.height <= 156) { - slave.height += jsEither([6, 6, 6, 7, 7]); - } else if (slave.height <= 162) { - slave.height += 3; - } - } else if (physicalAgeSwap === 13) { - if (slave.height <= 162) { - slave.height += jsEither([8, 8, 8, 9, 9]); - } else if (slave.height <= 170) { - slave.height += 5; - } - } else if (physicalAgeSwap === 14) { - if (slave.height <= 170) { - slave.height += jsEither([7, 7, 7, 8, 8]); - } else if (slave.height <= 177) { - slave.height += 4; - } - } else if (physicalAgeSwap === 15) { - if (slave.height <= 177) { - slave.height += jsEither([7, 7, 7, 8, 8]); - } else if (slave.height <= 184) { - slave.height += 4; - } - } else if (physicalAgeSwap === 16) { - if (slave.height <= 184) { - slave.height += jsEither([3, 3, 3, 4, 4]); - } - } else if (physicalAgeSwap === 17) { - if (slave.height <= 185) { - slave.height += jsEither([2, 2, 2, 3, 3]); - } - } else if (physicalAgeSwap === 18) { - if (slave.height <= 186) { - slave.height += jsEither([1, 1, 1, 2, 2]); - } - } - } else { - if (physicalAgeSwap === 3) { - if (slave.height <= 93) { - slave.height += jsEither([9, 9, 10, 10, 10, 11]); - } else if (slave.height <= 103) { - slave.height += 6; - } - } else if (physicalAgeSwap === 4) { - if (slave.height <= 103) { - slave.height += jsEither([7, 7, 8, 8, 9, 9]); - } else if (slave.height <= 110) { - slave.height += 5; - } - } else if (physicalAgeSwap === 5) { - if (slave.height <= 110) { - slave.height += jsEither([6, 6, 7, 7, 8, 8]); - } else if (slave.height <= 117) { - slave.height += 4; - } - } else if (physicalAgeSwap === 6) { - if (slave.height <= 117) { - slave.height += jsEither([6, 6, 7, 7, 8, 8]); - } else if (slave.height <= 124) { - slave.height += 4; - } - } else if (physicalAgeSwap === 7) { - if (slave.height <= 124) { - slave.height += jsEither([6, 6, 7, 7, 8, 8]); - } else if (slave.height <= 131) { - slave.height += 4; - } - } else if (physicalAgeSwap === 8) { - if (slave.height <= 131) { - slave.height += jsEither([5, 5, 6, 6, 7, 7]); - } else if (slave.height <= 137) { - slave.height += 3; - } - } else if (physicalAgeSwap === 9) { - if (slave.height <= 137) { - slave.height += jsEither([4, 4, 5, 5, 5, 6]); - } else if (slave.height <= 144) { - slave.height += 3; - } - } else if (physicalAgeSwap === 10) { - if (slave.height <= 144) { - slave.height += jsEither([5, 5, 6, 6, 7, 7]); - } else if (slave.height <= 150) { - slave.height += 3; - } - } else if (physicalAgeSwap === 11) { - if (slave.height <= 150) { - slave.height += jsEither([5, 5, 6, 6, 6, 7]); - } else if (slave.height <= 156) { - slave.height += 3; - } - } else if (physicalAgeSwap === 12) { - if (slave.height <= 156) { - slave.height += jsEither([5, 5, 6, 6, 7, 7]); - } else if (slave.height <= 162) { - slave.height += 3; - } - } else if (physicalAgeSwap === 13) { - if (slave.height <= 162) { - slave.height += jsEither([7, 7, 8, 8, 9, 9]); - } else if (slave.height <= 170) { - slave.height += 5; - } - } else if (physicalAgeSwap === 14) { - if (slave.height <= 170) { - slave.height += jsEither([6, 6, 7, 7, 8, 8]); - } else if (slave.height <= 177) { - slave.height += 4; - } - } else if (physicalAgeSwap === 15) { - if (slave.height <= 177) { - slave.height += jsEither([6, 6, 7, 7, 8, 8]); - } else if (slave.height <= 184) { - slave.height += 4; - } - } else if (physicalAgeSwap === 16) { - if (slave.height <= 184) { - slave.height += jsEither([2, 2, 3, 3, 4, 4]); - } - } else if (physicalAgeSwap === 17) { - if (slave.height <= 185) { - slave.height += jsEither([1, 1, 2, 2, 3, 3]); - } - } else if (physicalAgeSwap === 18) { - if (slave.height <= 186) { - slave.height += jsEither([0, 0, 1, 1, 2, 2]); - } - } - } - } - - /** - * @param {App.Entity.SlaveState} slave - */ - function increaseHeightDwarf(slave) { - if (slave.hormoneBalance >= 200) { - if (physicalAgeSwap === 3) { - if (slave.height <= 80) { - slave.height += jsEither([1, 1, 2, 2]); - } else if (slave.height <= 84) { - slave.height += 1; - } - } else if (physicalAgeSwap === 4) { - if (slave.height <= 84) { - slave.height += jsEither([4, 4, 5, 5]); - } else if (slave.height <= 90) { - slave.height += 2; - } - } else if (physicalAgeSwap === 5) { - if (slave.height <= 90) { - slave.height += jsEither([8, 8, 9, 9]); - } else if (slave.height <= 100) { - slave.height += 5; - } - } else if (physicalAgeSwap === 6) { - if (slave.height <= 100) { - slave.height += jsEither([3, 3, 4, 4]); - } else if (slave.height <= 105) { - slave.height += 2; - } - } else if (physicalAgeSwap === 7) { - if (slave.height <= 105) { - slave.height += jsEither([2, 2, 3, 3]); - } else if (slave.height <= 109) { - slave.height += 1; - } - } else if (physicalAgeSwap === 8) { - if (slave.height <= 109) { - slave.height += jsEither([3, 3, 4, 4]); - } else if (slave.height <= 114) { - slave.height += 1; - } - } else if (physicalAgeSwap === 9) { - if (slave.height <= 114) { - slave.height += jsEither([2, 2, 3, 3]); - } else if (slave.height <= 118) { - slave.height += 1; - } - } else if (physicalAgeSwap === 10) { - if (slave.height <= 118) { - slave.height += jsEither([2, 2, 3, 3]); - } else if (slave.height <= 122) { - slave.height += 1; - } - } else if (physicalAgeSwap === 11) { - if (slave.height <= 122) { - slave.height += jsEither([3, 3, 4, 4]); - } else if (slave.height <= 127) { - slave.height += 2; - } - } else if (physicalAgeSwap === 12) { - if (slave.height <= 127) { - slave.height += jsEither([3, 3, 4, 4]); - } else if (slave.height <= 132) { - slave.height += 2; - } - } else if (physicalAgeSwap === 13) { - if (slave.height <= 132) { - slave.height += jsEither([1, 1, 2, 2]); - } else if (slave.height <= 135) { - slave.height += 1; - } - } else if (physicalAgeSwap === 14) { - if (slave.height <= 135) { - slave.height += jsEither([1, 1, 2, 2]); - } else if (slave.height <= 138) { - slave.height += 1; - } - } else if (physicalAgeSwap === 15) { - if (slave.height <= 138) { - slave.height += jsEither([1, 1, 2, 2]); - } else if (slave.height <= 141) { - slave.height += 1; - } - } else if (physicalAgeSwap === 16) { - if (slave.height <= 143) { - slave.height += jsEither([0, 0, 1, 1]); - } - } else if (physicalAgeSwap === 17) { - if (slave.height <= 143) { - slave.height += jsEither([0, 0, 1, 1]); - } - } else if (physicalAgeSwap === 18) { - if (slave.height <= 143) { - slave.height += jsEither([0, 0, 1, 1]); - } - } - } else if (slave.hormoneBalance >= 100) { - if (physicalAgeSwap === 3) { - if (slave.height <= 80) { - slave.height += jsEither([1, 1, 2, 2, 2]); - } else if (slave.height <= 84) { - slave.height += 1; - } - } else if (physicalAgeSwap === 4) { - if (slave.height <= 84) { - slave.height += jsEither([4, 4, 5, 5, 5]); - } else if (slave.height <= 90) { - slave.height += 2; - } - } else if (physicalAgeSwap === 5) { - if (slave.height <= 90) { - slave.height += jsEither([8, 8, 9, 9, 9]); - } else if (slave.height <= 100) { - slave.height += 5; - } - } else if (physicalAgeSwap === 6) { - if (slave.height <= 100) { - slave.height += jsEither([3, 3, 4, 4, 4]); - } else if (slave.height <= 105) { - slave.height += 2; - } - } else if (physicalAgeSwap === 7) { - if (slave.height <= 105) { - slave.height += jsEither([2, 2, 3, 3, 3]); - } else if (slave.height <= 109) { - slave.height += 1; - } - } else if (physicalAgeSwap === 8) { - if (slave.height <= 109) { - slave.height += jsEither([3, 3, 4, 4, 4]); - } else if (slave.height <= 114) { - slave.height += 1; - } - } else if (physicalAgeSwap === 9) { - if (slave.height <= 114) { - slave.height += jsEither([2, 2, 3, 3, 3]); - } else if (slave.height <= 118) { - slave.height += 1; - } - } else if (physicalAgeSwap === 10) { - if (slave.height <= 118) { - slave.height += jsEither([2, 2, 3, 3, 3]); - } else if (slave.height <= 122) { - slave.height += 1; - } - } else if (physicalAgeSwap === 11) { - if (slave.height <= 122) { - slave.height += jsEither([3, 3, 4, 4, 4]); - } else if (slave.height <= 127) { - slave.height += 2; - } - } else if (physicalAgeSwap === 12) { - if (slave.height <= 127) { - slave.height += jsEither([3, 3, 4, 4, 4]); - } else if (slave.height <= 132) { - slave.height += 2; - } - } else if (physicalAgeSwap === 13) { - if (slave.height <= 132) { - slave.height += jsEither([1, 1, 2, 2, 2]); - } else if (slave.height <= 135) { - slave.height += 1; - } - } else if (physicalAgeSwap === 14) { - if (slave.height <= 135) { - slave.height += jsEither([1, 1, 2, 2, 2]); - } else if (slave.height <= 138) { - slave.height += 1; - } - } else if (physicalAgeSwap === 15) { - if (slave.height <= 138) { - slave.height += jsEither([1, 1, 2, 2, 2]); - } else if (slave.height <= 141) { - slave.height += 1; - } - } else if (physicalAgeSwap === 16) { - if (slave.height <= 143) { - slave.height += jsEither([0, 0, 1, 1, 1]); - } - } else if (physicalAgeSwap === 17) { - if (slave.height <= 143) { - slave.height += jsEither([0, 0, 1, 1, 1]); - } - } else if (physicalAgeSwap === 18) { - if (slave.height <= 143) { - slave.height += jsEither([0, 0, 1, 1, 1]); - } - } - } else if (slave.hormoneBalance <= -200) { - if (physicalAgeSwap === 3) { - if (slave.height <= 80) { - slave.height += jsEither([2, 2, 3, 3]); - } else if (slave.height <= 84) { - slave.height += 1; - } - } else if (physicalAgeSwap === 4) { - if (slave.height <= 84) { - slave.height += jsEither([5, 5, 6, 6]); - } else if (slave.height <= 90) { - slave.height += 2; - } - } else if (physicalAgeSwap === 5) { - if (slave.height <= 90) { - slave.height += jsEither([9, 9, 10, 10]); - } else if (slave.height <= 100) { - slave.height += 5; - } - } else if (physicalAgeSwap === 6) { - if (slave.height <= 100) { - slave.height += jsEither([4, 4, 5, 5]); - } else if (slave.height <= 105) { - slave.height += 2; - } - } else if (physicalAgeSwap === 7) { - if (slave.height <= 105) { - slave.height += jsEither([3, 3, 4, 4]); - } else if (slave.height <= 109) { - slave.height += 1; - } - } else if (physicalAgeSwap === 8) { - if (slave.height <= 109) { - slave.height += jsEither([4, 4, 5, 5]); - } else if (slave.height <= 114) { - slave.height += 1; - } - } else if (physicalAgeSwap === 9) { - if (slave.height <= 114) { - slave.height += jsEither([3, 3, 4, 4]); - } else if (slave.height <= 118) { - slave.height += 1; - } - } else if (physicalAgeSwap === 10) { - if (slave.height <= 118) { - slave.height += jsEither([3, 3, 4, 4]); - } else if (slave.height <= 122) { - slave.height += 1; - } - } else if (physicalAgeSwap === 11) { - if (slave.height <= 122) { - slave.height += jsEither([4, 4, 5, 5]); - } else if (slave.height <= 127) { - slave.height += 2; - } - } else if (physicalAgeSwap === 12) { - if (slave.height <= 127) { - slave.height += jsEither([4, 4, 5, 5]); - } else if (slave.height <= 132) { - slave.height += 2; - } - } else if (physicalAgeSwap === 13) { - if (slave.height <= 132) { - slave.height += jsEither([2, 2, 3, 3]); - } else if (slave.height <= 135) { - slave.height += 1; - } - } else if (physicalAgeSwap === 14) { - if (slave.height <= 135) { - slave.height += jsEither([2, 2, 3, 3]); - } else if (slave.height <= 138) { - slave.height += 1; - } - } else if (physicalAgeSwap === 15) { - if (slave.height <= 138) { - slave.height += jsEither([2, 2, 3, 3]); - } else if (slave.height <= 141) { - slave.height += 1; - } - } else if (physicalAgeSwap === 16) { - if (slave.height <= 143) { - slave.height += jsEither([1, 1, 2, 2]); - } - } else if (physicalAgeSwap === 17) { - if (slave.height <= 143) { - slave.height += jsEither([1, 1, 2, 2]); - } - } else if (physicalAgeSwap === 18) { - if (slave.height <= 143) { - slave.height += jsEither([1, 1, 2, 2]); - } - } - } else if (slave.hormoneBalance <= -100) { - if (physicalAgeSwap === 3) { - if (slave.height <= 80) { - slave.height += jsEither([2, 2, 2, 3, 3]); - } else if (slave.height <= 84) { - slave.height += 1; - } - } else if (physicalAgeSwap === 4) { - if (slave.height <= 84) { - slave.height += jsEither([5, 5, 5, 6, 6]); - } else if (slave.height <= 90) { - slave.height += 2; - } - } else if (physicalAgeSwap === 5) { - if (slave.height <= 90) { - slave.height += jsEither([9, 9, 9, 10, 10]); - } else if (slave.height <= 100) { - slave.height += 5; - } - } else if (physicalAgeSwap === 6) { - if (slave.height <= 100) { - slave.height += jsEither([4, 4, 4, 5, 5]); - } else if (slave.height <= 105) { - slave.height += 2; - } - } else if (physicalAgeSwap === 7) { - if (slave.height <= 105) { - slave.height += jsEither([3, 3, 3, 4, 4]); - } else if (slave.height <= 109) { - slave.height += 1; - } - } else if (physicalAgeSwap === 8) { - if (slave.height <= 109) { - slave.height += jsEither([4, 4, 4, 5, 5]); - } else if (slave.height <= 114) { - slave.height += 1; - } - } else if (physicalAgeSwap === 9) { - if (slave.height <= 114) { - slave.height += jsEither([3, 3, 3, 4, 4]); - } else if (slave.height <= 118) { - slave.height += 1; - } - } else if (physicalAgeSwap === 10) { - if (slave.height <= 118) { - slave.height += jsEither([3, 3, 3, 4, 4]); - } else if (slave.height <= 122) { - slave.height += 1; - } - } else if (physicalAgeSwap === 11) { - if (slave.height <= 122) { - slave.height += jsEither([4, 4, 4, 5, 5]); - } else if (slave.height <= 127) { - slave.height += 2; - } - } else if (physicalAgeSwap === 12) { - if (slave.height <= 127) { - slave.height += jsEither([4, 4, 4, 5, 5]); - } else if (slave.height <= 132) { - slave.height += 2; - } - } else if (physicalAgeSwap === 13) { - if (slave.height <= 132) { - slave.height += jsEither([2, 2, 2, 3, 3]); - } else if (slave.height <= 135) { - slave.height += 1; - } - } else if (physicalAgeSwap === 14) { - if (slave.height <= 135) { - slave.height += jsEither([2, 2, 2, 3, 3]); - } else if (slave.height <= 138) { - slave.height += 1; - } - } else if (physicalAgeSwap === 15) { - if (slave.height <= 138) { - slave.height += jsEither([2, 2, 2, 3, 3]); - } else if (slave.height <= 141) { - slave.height += 1; - } - } else if (physicalAgeSwap === 16) { - if (slave.height <= 143) { - slave.height += jsEither([1, 1, 1, 2, 2]); - } - } else if (physicalAgeSwap === 17) { - if (slave.height <= 143) { - slave.height += jsEither([1, 1, 1, 2, 2]); - } - } else if (physicalAgeSwap === 18) { - if (slave.height <= 143) { - slave.height += jsEither([1, 1, 1, 2, 2]); - } - } - } else { - if (physicalAgeSwap === 3) { - if (slave.height <= 80) { - slave.height += jsEither([1, 1, 2, 2, 3, 3]); - } else if (slave.height <= 84) { - slave.height += 1; - } - } else if (physicalAgeSwap === 4) { - if (slave.height <= 84) { - slave.height += jsEither([4, 4, 5, 5, 6, 6]); - } else if (slave.height <= 90) { - slave.height += 2; - } - } else if (physicalAgeSwap === 5) { - if (slave.height <= 90) { - slave.height += jsEither([8, 8, 9, 9, 10, 10]); - } else if (slave.height <= 100) { - slave.height += 5; - } - } else if (physicalAgeSwap === 6) { - if (slave.height <= 100) { - slave.height += jsEither([3, 3, 4, 4, 5, 5]); - } else if (slave.height <= 105) { - slave.height += 2; - } - } else if (physicalAgeSwap === 7) { - if (slave.height <= 105) { - slave.height += jsEither([2, 2, 3, 3, 4, 4]); - } else if (slave.height <= 109) { - slave.height += 1; - } - } else if (physicalAgeSwap === 8) { - if (slave.height <= 109) { - slave.height += jsEither([3, 3, 4, 4, 5, 5]); - } else if (slave.height <= 114) { - slave.height += 1; - } - } else if (physicalAgeSwap === 9) { - if (slave.height <= 114) { - slave.height += jsEither([2, 2, 3, 3, 4, 4]); - } else if (slave.height <= 118) { - slave.height += 1; - } - } else if (physicalAgeSwap === 10) { - if (slave.height <= 118) { - slave.height += jsEither([2, 2, 3, 3, 4, 4]); - } else if (slave.height <= 122) { - slave.height += 1; - } - } else if (physicalAgeSwap === 11) { - if (slave.height <= 122) { - slave.height += jsEither([3, 3, 4, 4, 5, 5]); - } else if (slave.height <= 127) { - slave.height += 2; - } - } else if (physicalAgeSwap === 12) { - if (slave.height <= 127) { - slave.height += jsEither([3, 3, 4, 4, 5, 5]); - } else if (slave.height <= 132) { - slave.height += 2; - } - } else if (physicalAgeSwap === 13) { - if (slave.height <= 132) { - slave.height += jsEither([1, 1, 2, 2, 3, 3]); - } else if (slave.height <= 135) { - slave.height += 1; - } - } else if (physicalAgeSwap === 14) { - if (slave.height <= 135) { - slave.height += jsEither([1, 1, 2, 2, 3, 3]); - } else if (slave.height <= 138) { - slave.height += 1; - } - } else if (physicalAgeSwap === 15) { - if (slave.height <= 138) { - slave.height += jsEither([1, 1, 2, 2, 3, 3]); - } else if (slave.height <= 141) { - slave.height += 1; - } - } else if (physicalAgeSwap === 16) { - if (slave.height <= 143) { - slave.height += jsEither([0, 0, 1, 1, 2, 2]); - } - } else if (physicalAgeSwap === 17) { - if (slave.height <= 143) { - slave.height += jsEither([0, 0, 1, 1, 2, 2]); - } - } else if (physicalAgeSwap === 18) { - if (slave.height <= 143) { - slave.height += jsEither([0, 0, 1, 1, 2, 2]); - } - } - } - } - - /** - * @param {App.Entity.SlaveState} slave - */ - function increaseHeightGiant(slave) { - if (slave.hormoneBalance >= 200) { - if (physicalAgeSwap < 16) { - if (slave.height <= 270) { - slave.height += jsRandom(5, 12); - } - } else { - if (slave.height <= 270) { - slave.height += jsRandom(3, 7); - } - } - } else if (slave.hormoneBalance >= 100) { - if (physicalAgeSwap < 16) { - if (slave.height <= 270) { - slave.height += jsRandom(7, 15); - } - } else { - if (slave.height <= 270) { - slave.height += jsRandom(5, 7); - } - } - } else if (slave.hormoneBalance <= -200) { - if (physicalAgeSwap < 16) { - if (slave.height <= 270) { - slave.height += jsRandom(10, 25); - } - } else { - if (slave.height <= 270) { - slave.height += jsRandom(7, 13); - } - } - } else if (slave.hormoneBalance <= -100) { - if (physicalAgeSwap < 16) { - if (slave.height <= 270) { - slave.height += jsRandom(7, 22); - } - } else { - if (slave.height <= 270) { - slave.height += jsRandom(7, 12); - } - } - } else { - if (physicalAgeSwap < 16) { - if (slave.height <= 270) { - slave.height += jsRandom(7, 20); - } - } else { - if (slave.height <= 270) { - slave.height += jsRandom(5, 10); - } - } - } - } - - /** - * @param {App.Entity.SlaveState} slave - */ - function increaseHeightNeoteny(slave) { - if (physicalAgeSwap <= 12) { - if (slave.height <= 120) { - slave.height += jsEither([0, 0, 1, 1, 2, 2]); - } - } else if (physicalAgeSwap === 13) { - if (slave.height <= 120) { - slave.height += jsEither([0, 0, 1, 1, 2, 2]); - } - } else if (physicalAgeSwap === 14) { - if (slave.height <= 120) { - slave.height += jsEither([0, 0, 1, 1, 2, 2]); - } - } else if (physicalAgeSwap === 15) { - if (slave.height <= 120) { - slave.height += jsEither([0, 0, 1, 1, 2, 2]); - } - } else if (physicalAgeSwap === 16) { - if (slave.height <= 130) { - slave.height += jsEither([0, 0, 1, 1, 2, 2]); - } - } else if (physicalAgeSwap === 17) { - if (slave.height <= 130) { - slave.height += jsEither([0, 0, 1, 1, 2, 2]); - } - } else if (physicalAgeSwap === 18) { - if (slave.height <= 130) { - slave.height += jsEither([0, 0, 1, 1, 2, 2]); - } - } - } - - /** - * @param {App.Entity.SlaveState} slave - */ - function increaseBoobsXX(slave) { - if (slave.geneticQuirks.gigantomastia === 2 && slave.geneticQuirks.macromastia === 2) { - gigantomastiaMod = 3; - } else if (slave.geneticQuirks.gigantomastia === 2) { - gigantomastiaMod = 2; - } else if (slave.geneticQuirks.macromastia === 2) { - gigantomastiaMod = 1.5; - } else if (slave.geneticQuirks.gigantomastia === 3) { - gigantomastiaMod = 1.2; - } else if (slave.geneticQuirks.macromastia === 3) { - gigantomastiaMod = 1.1; - } else { - gigantomastiaMod = 1; - } - if (slave.hormoneBalance >= 200) { - if (physicalAgeSwap === 8) { - slave.boobs += 50; - } else if (physicalAgeSwap === 9) { - slave.boobs += 50; - } else if (physicalAgeSwap === 10) { - slave.boobs += 50; - } else if (physicalAgeSwap === 11) { - if (slave.boobs < (600 * gigantomastiaMod)) { - if (jsRandom(1, 100) > (40 / gigantomastiaMod)) { - slave.boobs += 100; - } - } - slave.boobs += 100; - } else if (physicalAgeSwap === 12) { - if (slave.boobs < (700 * gigantomastiaMod)) { - if (jsRandom(1, 100) > (40 / gigantomastiaMod)) { - slave.boobs += 100; - } - } - slave.boobs += 100; - } else if (physicalAgeSwap === 13) { - if (slave.boobs < (1000 * gigantomastiaMod)) { - if (jsRandom(1, 100) > (40 / gigantomastiaMod)) { - slave.boobs += 100; - } - } - slave.boobs += 100; - } else if (physicalAgeSwap === 14) { - if (slave.boobs < (800 * gigantomastiaMod)) { - if (jsRandom(1, 100) > (40 / gigantomastiaMod)) { - slave.boobs += 100; - } - } - slave.boobs += 100; - } else if (physicalAgeSwap === 15) { - if (slave.boobs < (900 * gigantomastiaMod)) { - if (jsRandom(1, 100) > (40 / gigantomastiaMod)) { - slave.boobs += 100; - } - } - slave.boobs += 100; - } else if (physicalAgeSwap === 16) { - if (slave.boobs < (1200 * gigantomastiaMod)) { - if (jsRandom(1, 100) > (40 / gigantomastiaMod)) { - slave.boobs += 100; - } - } - slave.boobs += 100; - } else if (physicalAgeSwap === 17) { - if (slave.boobs < (1600 * gigantomastiaMod)) { - if (jsRandom(1, 100) > (40 / gigantomastiaMod)) { - slave.boobs += 100; - } - } - slave.boobs += 100; - } else if (physicalAgeSwap === 18) { - if (slave.boobs < (2000 * gigantomastiaMod)) { - if (jsRandom(1, 100) > (40 / gigantomastiaMod)) { - slave.boobs += 100; - } - } - slave.boobs += 100; - } - } else if (slave.hormoneBalance >= 100) { - if (physicalAgeSwap === 8) { - slave.boobs += 25; - } else if (physicalAgeSwap === 9) { - slave.boobs += 25; - } else if (physicalAgeSwap === 10) { - slave.boobs += 25; - } else if (physicalAgeSwap === 11) { - if (slave.boobs < (500 * gigantomastiaMod)) { - if (jsRandom(1, 100) > (40 / gigantomastiaMod)) { - slave.boobs += 100; - } - } - slave.boobs += 50; - } else if (physicalAgeSwap === 12) { - if (slave.boobs < (600 * gigantomastiaMod)) { - if (jsRandom(1, 100) > (40 / gigantomastiaMod)) { - slave.boobs += 100; - } - } - slave.boobs += 50; - } else if (physicalAgeSwap === 13) { - if (slave.boobs < (900 * gigantomastiaMod)) { - if (jsRandom(1, 100) > (40 / gigantomastiaMod)) { - slave.boobs += 100; - } - } - slave.boobs += 50; - } else if (physicalAgeSwap === 14) { - if (slave.boobs < (700 * gigantomastiaMod)) { - if (jsRandom(1, 100) > (40 / gigantomastiaMod)) { - slave.boobs += 100; - } - } - slave.boobs += 50; - } else if (physicalAgeSwap === 15) { - if (slave.boobs < (800 * gigantomastiaMod)) { - if (jsRandom(1, 100) > (40 / gigantomastiaMod)) { - slave.boobs += 100; - } - } - slave.boobs += 50; - } else if (physicalAgeSwap === 16) { - if (slave.boobs < (1000 * gigantomastiaMod)) { - if (jsRandom(1, 100) > (40 / gigantomastiaMod)) { - slave.boobs += 100; - } - } - slave.boobs += 50; - } else if (physicalAgeSwap === 17) { - if (slave.boobs < (1200 * gigantomastiaMod)) { - if (jsRandom(1, 100) > (40 / gigantomastiaMod)) { - slave.boobs += 100; - } - } - slave.boobs += 50; - } else if (physicalAgeSwap === 18) { - if (slave.boobs < (1600 * gigantomastiaMod)) { - if (jsRandom(1, 100) > (40 / gigantomastiaMod)) { - slave.boobs += 100; - } - } - slave.boobs += 50; - } - } else if (slave.hormoneBalance <= -200) { - if (physicalAgeSwap >= 11) { - if (slave.boobs > 200 && gigantomastiaMod !== 3) { - slave.boobs -= 100; - } - } - } else if (slave.hormoneBalance <= -100) { - if (physicalAgeSwap >= 11) { - if (slave.boobs > 200 && gigantomastiaMod !== 3) { - slave.boobs -= 50; - } - } - } else { - if (physicalAgeSwap === 11) { - if (slave.boobs < (300 * gigantomastiaMod)) { - if (jsRandom(1, 100) > (40 / gigantomastiaMod)) { - slave.boobs += 100; - } - } - } else if (physicalAgeSwap === 12) { - if (slave.boobs < (300 * gigantomastiaMod)) { - if (jsRandom(1, 100) > (40 / gigantomastiaMod)) { - slave.boobs += 100; - } - } - } else if (physicalAgeSwap === 13) { - if (slave.boobs < (400 * gigantomastiaMod)) { - if (jsRandom(1, 100) > (40 / gigantomastiaMod)) { - slave.boobs += 100; - } - } - } else if (physicalAgeSwap === 14) { - if (slave.boobs < (500 * gigantomastiaMod)) { - if (jsRandom(1, 100) > (40 / gigantomastiaMod)) { - slave.boobs += 100; - } - } - } else if (physicalAgeSwap === 15) { - if (slave.boobs < (500 * gigantomastiaMod)) { - if (jsRandom(1, 100) > (40 / gigantomastiaMod)) { - slave.boobs += 100; - } - } - } else if (physicalAgeSwap === 16) { - if (slave.boobs < (800 * gigantomastiaMod)) { - if (jsRandom(1, 100) > (50 / gigantomastiaMod)) { - slave.boobs += 100; - } - } - } else if (physicalAgeSwap === 17) { - if (slave.boobs < (800 * gigantomastiaMod)) { - if (jsRandom(1, 100) > (60 / gigantomastiaMod)) { - slave.boobs += 100; - } - } - } else if (physicalAgeSwap === 18) { - if (slave.boobs < (800 * gigantomastiaMod)) { - if (jsRandom(1, 100) > (70 / gigantomastiaMod)) { - slave.boobs += 100; - } - } - } - } - } - - /** - * @param {App.Entity.SlaveState} slave - */ - function increaseBoobsXY(slave) { - if (slave.geneticQuirks.gigantomastia === 2 && slave.geneticQuirks.macromastia === 2) { - gigantomastiaMod = 3; - } else if (slave.geneticQuirks.gigantomastia === 2) { - gigantomastiaMod = 2; - } else if (slave.geneticQuirks.macromastia === 2) { - gigantomastiaMod = 1.5; - } else if (slave.geneticQuirks.gigantomastia === 3) { - gigantomastiaMod = 1.2; - } else if (slave.geneticQuirks.macromastia === 3) { - gigantomastiaMod = 1.1; - } else { - gigantomastiaMod = 1; - } - if (slave.hormoneBalance >= 200) { - if (physicalAgeSwap === 8) { - slave.boobs += 50; - } else if (physicalAgeSwap === 9) { - slave.boobs += 50; - } else if (physicalAgeSwap === 10) { - slave.boobs += 50; - } else if (physicalAgeSwap === 11) { - slave.boobs += 50; - } else if (physicalAgeSwap === 12) { - slave.boobs += 50; - } else if (physicalAgeSwap === 13) { - if (slave.boobs < (1000 * gigantomastiaMod)) { - if (jsRandom(1, 100) > (40 / gigantomastiaMod)) { - slave.boobs += 100; - } - } - slave.boobs += 50; - } else if (physicalAgeSwap === 14) { - if (slave.boobs < (800 * gigantomastiaMod)) { - if (jsRandom(1, 100) > (40 / gigantomastiaMod)) { - slave.boobs += 100; - } - } - slave.boobs += 100; - } else if (physicalAgeSwap === 15) { - if (slave.boobs < (900 * gigantomastiaMod)) { - if (jsRandom(1, 100) > (40 / gigantomastiaMod)) { - slave.boobs += 100; - } - } - slave.boobs += 100; - } else if (physicalAgeSwap === 16) { - if (slave.boobs < (1200 * gigantomastiaMod)) { - if (jsRandom(1, 100) > (40 / gigantomastiaMod)) { - slave.boobs += 100; - } - } - slave.boobs += 100; - } else if (physicalAgeSwap === 17) { - if (slave.boobs < (1600 * gigantomastiaMod)) { - if (jsRandom(1, 100) > (40 / gigantomastiaMod)) { - slave.boobs += 100; - } - } - slave.boobs += 100; - } else if (physicalAgeSwap === 18) { - if (slave.boobs < (2000 * gigantomastiaMod)) { - if (jsRandom(1, 100) > (40 / gigantomastiaMod)) { - slave.boobs += 100; - } - } - slave.boobs += 100; - } - } else if (slave.hormoneBalance >= 100) { - if (physicalAgeSwap === 8) { - slave.boobs += 25; - } else if (physicalAgeSwap === 9) { - slave.boobs += 25; - } else if (physicalAgeSwap === 10) { - slave.boobs += 25; - } else if (physicalAgeSwap === 11) { - slave.boobs += 25; - } else if (physicalAgeSwap === 12) { - slave.boobs += 25; - } else if (physicalAgeSwap === 13) { - if (slave.boobs < (900 * gigantomastiaMod)) { - if (jsRandom(1, 100) > (40 / gigantomastiaMod)) { - slave.boobs += 100; - } - } - slave.boobs += 25; - } else if (physicalAgeSwap === 14) { - if (slave.boobs < (700 * gigantomastiaMod)) { - if (jsRandom(1, 100) > (40 / gigantomastiaMod)) { - slave.boobs += 100; - } - } - slave.boobs += 50; - } else if (physicalAgeSwap === 15) { - if (slave.boobs < (800 * gigantomastiaMod)) { - if (jsRandom(1, 100) > (40 / gigantomastiaMod)) { - slave.boobs += 100; - } - } - slave.boobs += 50; - } else if (physicalAgeSwap === 16) { - if (slave.boobs < (1000 * gigantomastiaMod)) { - if (jsRandom(1, 100) > (40 / gigantomastiaMod)) { - slave.boobs += 100; - } - } - slave.boobs += 50; - } else if (physicalAgeSwap === 17) { - if (slave.boobs < (1200 * gigantomastiaMod)) { - if (jsRandom(1, 100) > (40 / gigantomastiaMod)) { - slave.boobs += 100; - } - } - slave.boobs += 50; - } else if (physicalAgeSwap === 18) { - if (slave.boobs < (1600 * gigantomastiaMod)) { - if (jsRandom(1, 100) > (40 / gigantomastiaMod)) { - slave.boobs += 100; - } - } - slave.boobs += 50; - } - } else if (slave.hormoneBalance <= -200) { - if (physicalAgeSwap >= 11) { - if (slave.boobs > 200 && gigantomastiaMod !== 3) { - slave.boobs -= 100; - } - } - } else if (slave.hormoneBalance <= -100) { - if (physicalAgeSwap >= 11) { - if (slave.boobs > 200 && gigantomastiaMod !== 3) { - slave.boobs -= 50; - } - } - } - } - - /** - * @param {App.Entity.SlaveState} slave - */ - function increaseHipsXX(slave) { - if (slave.geneticQuirks.uterineHypersensitivity === 2) { - uterineHypersensitivityMod = 1.5; - } else if (slave.geneticQuirks.uterineHypersensitivity === 1) { - uterineHypersensitivityMod = 1.2; - } else { - uterineHypersensitivityMod = 1; - } - if (slave.hormoneBalance >= 200) { - if (physicalAgeSwap === 8) { - if (slave.hips < 2) { - if (jsRandom(1, 100) > 90 / uterineHypersensitivityMod) { - slave.hips++; - } - } - } else if (physicalAgeSwap === 9) { - if (slave.hips < 2) { - if (jsRandom(1, 100) > 90 / uterineHypersensitivityMod) { - slave.hips++; - } - } - } else if (physicalAgeSwap === 10) { - if (slave.hips < 2) { - if (jsRandom(1, 100) > 90 / uterineHypersensitivityMod) { - slave.hips++; - } - } - } else if (physicalAgeSwap === 11) { - if (slave.hips < 2) { - if (jsRandom(1, 100) > 20 / uterineHypersensitivityMod) { - slave.hips++; - } - } - } else if (physicalAgeSwap === 12) { - if (slave.hips < 2) { - if (jsRandom(1, 100) > 20 / uterineHypersensitivityMod) { - slave.hips++; - } - } - } else if (physicalAgeSwap === 13) { - if (slave.hips < 2) { - if (jsRandom(1, 100) > 20 / uterineHypersensitivityMod) { - slave.hips++; - } - } - } else if (physicalAgeSwap === 14) { - if (slave.hips < 2) { - if (jsRandom(1, 100) > 20 / uterineHypersensitivityMod) { - slave.hips++; - } - } - } else if (physicalAgeSwap === 15) { - if (slave.hips < 2) { - if (jsRandom(1, 100) > 20 / uterineHypersensitivityMod) { - slave.hips++; - } - } - } else if (physicalAgeSwap === 16) { - if (slave.hips < 2) { - if (jsRandom(1, 100) > 20 / uterineHypersensitivityMod) { - slave.hips++; - } - } - } else if (physicalAgeSwap === 17) { - if (slave.hips < 2) { - if (jsRandom(1, 100) > 20 / uterineHypersensitivityMod) { - slave.hips++; - } - } - } else if (physicalAgeSwap === 18) { - if (slave.hips < 2) { - if (jsRandom(1, 100) > 20 / uterineHypersensitivityMod) { - slave.hips++; - } - } - } - } else if (slave.hormoneBalance >= 100) { - if (physicalAgeSwap === 8) { - if (slave.hips < 2) { - if (jsRandom(1, 100) > 95 / uterineHypersensitivityMod) { - slave.hips++; - } - } - } else if (physicalAgeSwap === 9) { - if (slave.hips < 2) { - if (jsRandom(1, 100) > 95 / uterineHypersensitivityMod) { - slave.hips++; - } - } - } else if (physicalAgeSwap === 10) { - if (slave.hips < 2) { - if (jsRandom(1, 100) > 95 / uterineHypersensitivityMod) { - slave.hips++; - } - } - } else if (physicalAgeSwap === 11) { - if (slave.hips < 2) { - if (jsRandom(1, 100) > 40 / uterineHypersensitivityMod) { - slave.hips++; - } - } - } else if (physicalAgeSwap === 12) { - if (slave.hips < 2) { - if (jsRandom(1, 100) > 40 / uterineHypersensitivityMod) { - slave.hips++; - } - } - } else if (physicalAgeSwap === 13) { - if (slave.hips < 2) { - if (jsRandom(1, 100) > 40 / uterineHypersensitivityMod) { - slave.hips++; - } - } - } else if (physicalAgeSwap === 14) { - if (slave.hips < 2) { - if (jsRandom(1, 100) > 40 / uterineHypersensitivityMod) { - slave.hips++; - } - } - } else if (physicalAgeSwap === 15) { - if (slave.hips < 2) { - if (jsRandom(1, 100) > 40 / uterineHypersensitivityMod) { - slave.hips++; - } - } - } else if (physicalAgeSwap === 16) { - if (slave.hips < 2) { - if (jsRandom(1, 100) > 40 / uterineHypersensitivityMod) { - slave.hips++; - } - } - } else if (physicalAgeSwap === 17) { - if (slave.hips < 2) { - if (jsRandom(1, 100) > 40 / uterineHypersensitivityMod) { - slave.hips++; - } - } - } else if (physicalAgeSwap === 18) { - if (slave.hips < 2) { - if (jsRandom(1, 100) > 40 / uterineHypersensitivityMod) { - slave.hips++; - } - } - } - } else if (slave.hormoneBalance <= -200) { - if (physicalAgeSwap === 8) { - if (slave.hips < 2) { - if (jsRandom(1, 100) > 99 / uterineHypersensitivityMod) { - slave.hips++; - } - } - } else if (physicalAgeSwap === 11) { - if (slave.hips < 2) { - if (jsRandom(1, 100) > 95 / uterineHypersensitivityMod) { - slave.hips++; - } - } - } else if (physicalAgeSwap === 12) { - if (slave.hips < 2) { - if (jsRandom(1, 100) > 95 / uterineHypersensitivityMod) { - slave.hips++; - } - } - } else if (physicalAgeSwap === 13) { - if (slave.hips < 2) { - if (jsRandom(1, 100) > 95 / uterineHypersensitivityMod) { - slave.hips++; - } - } - } - } else if (slave.hormoneBalance <= -100) { - if (physicalAgeSwap === 8) { - if (slave.hips < 2) { - if (jsRandom(1, 100) > 95 / uterineHypersensitivityMod) { - slave.hips++; - } - } - } else if (physicalAgeSwap === 11) { - if (slave.hips < 2) { - if (jsRandom(1, 100) > 90 / uterineHypersensitivityMod) { - slave.hips++; - } - } - } else if (physicalAgeSwap === 12) { - if (slave.hips < 2) { - if (jsRandom(1, 100) > 90 / uterineHypersensitivityMod) { - slave.hips++; - } - } - } else if (physicalAgeSwap === 13) { - if (slave.hips < 2) { - if (jsRandom(1, 100) > 90 / uterineHypersensitivityMod) { - slave.hips++; - } - } - } - } else { - if (physicalAgeSwap === 8) { - if (slave.hips < 2) { - if (jsRandom(1, 100) > 90 / uterineHypersensitivityMod) { - slave.hips++; - } - } - } else if (physicalAgeSwap === 11) { - if (slave.hips < 2) { - if (jsRandom(1, 100) > 60 / uterineHypersensitivityMod) { - slave.hips++; - } - } - } else if (physicalAgeSwap === 12) { - if (slave.hips < 2) { - if (jsRandom(1, 100) > 60 / uterineHypersensitivityMod) { - slave.hips++; - } - } - } else if (physicalAgeSwap === 13) { - if (slave.hips < 2) { - if (jsRandom(1, 100) > 60 / uterineHypersensitivityMod) { - slave.hips++; - } - } - } else if (physicalAgeSwap === 14) { - if (slave.hips < 2) { - if (jsRandom(1, 100) > 60 / uterineHypersensitivityMod) { - slave.hips++; - } - } - } - } - } - - /** - * @param {App.Entity.SlaveState} slave - */ - function increaseHipsXY(slave) { - if (slave.geneticQuirks.uterineHypersensitivity === 2) { - uterineHypersensitivityMod = 1.3; - } else if (slave.geneticQuirks.uterineHypersensitivity === 1) { - uterineHypersensitivityMod = 1.15; - } else { - uterineHypersensitivityMod = 1; - } - if (slave.hormoneBalance >= 200) { - if (physicalAgeSwap === 8) { - if (slave.hips < 2) { - if (jsRandom(1, 100) > 90 / uterineHypersensitivityMod) { - slave.hips++; - } - } - } else if (physicalAgeSwap === 9) { - if (slave.hips < 2) { - if (jsRandom(1, 100) > 90 / uterineHypersensitivityMod) { - slave.hips++; - } - } - } else if (physicalAgeSwap === 10) { - if (slave.hips < 2) { - if (jsRandom(1, 100) > 90 / uterineHypersensitivityMod) { - slave.hips++; - } - } - } else if (physicalAgeSwap === 11) { - if (slave.hips < 2) { - if (jsRandom(1, 100) > 20 / uterineHypersensitivityMod) { - slave.hips++; - } - } - } else if (physicalAgeSwap === 12) { - if (slave.hips < 2) { - if (jsRandom(1, 100) > 20 / uterineHypersensitivityMod) { - slave.hips++; - } - } - } else if (physicalAgeSwap === 13) { - if (slave.hips < 2) { - if (jsRandom(1, 100) > 20 / uterineHypersensitivityMod) { - slave.hips++; - } - } - } else if (physicalAgeSwap === 14) { - if (slave.hips < 2) { - if (jsRandom(1, 100) > 20 / uterineHypersensitivityMod) { - slave.hips++; - } - } - } else if (physicalAgeSwap === 15) { - if (slave.hips < 2) { - if (jsRandom(1, 100) > 20 / uterineHypersensitivityMod) { - slave.hips++; - } - } - } else if (physicalAgeSwap === 16) { - if (slave.hips < 2) { - if (jsRandom(1, 100) > 20 / uterineHypersensitivityMod) { - slave.hips++; - } - } - } else if (physicalAgeSwap === 17) { - if (slave.hips < 2) { - if (jsRandom(1, 100) > 20 / uterineHypersensitivityMod) { - slave.hips++; - } - } - } else if (physicalAgeSwap === 18) { - if (slave.hips < 2) { - if (jsRandom(1, 100) > 20 / uterineHypersensitivityMod) { - slave.hips++; - } - } - } - } else if (slave.hormoneBalance >= 100) { - if (physicalAgeSwap === 8) { - if (slave.hips < 2) { - if (jsRandom(1, 100) > 95 / uterineHypersensitivityMod) { - slave.hips++; - } - } - } else if (physicalAgeSwap === 9) { - if (slave.hips < 2) { - if (jsRandom(1, 100) > 95 / uterineHypersensitivityMod) { - slave.hips++; - } - } - } else if (physicalAgeSwap === 10) { - if (slave.hips < 2) { - if (jsRandom(1, 100) > 95 / uterineHypersensitivityMod) { - slave.hips++; - } - } - } else if (physicalAgeSwap === 11) { - if (slave.hips < 2) { - if (jsRandom(1, 100) > 40 / uterineHypersensitivityMod) { - slave.hips++; - } - } - } else if (physicalAgeSwap === 12) { - if (slave.hips < 2) { - if (jsRandom(1, 100) > 40 / uterineHypersensitivityMod) { - slave.hips++; - } - } - } else if (physicalAgeSwap === 13) { - if (slave.hips < 2) { - if (jsRandom(1, 100) > 40 / uterineHypersensitivityMod) { - slave.hips++; - } - } - } else if (physicalAgeSwap === 14) { - if (slave.hips < 2) { - if (jsRandom(1, 100) > 40 / uterineHypersensitivityMod) { - slave.hips++; - } - } - } else if (physicalAgeSwap === 15) { - if (slave.hips < 2) { - if (jsRandom(1, 100) > 40 / uterineHypersensitivityMod) { - slave.hips++; - } - } - } else if (physicalAgeSwap === 16) { - if (slave.hips < 2) { - if (jsRandom(1, 100) > 40 / uterineHypersensitivityMod) { - slave.hips++; - } - } - } else if (physicalAgeSwap === 17) { - if (slave.hips < 2) { - if (jsRandom(1, 100) > 40 / uterineHypersensitivityMod) { - slave.hips++; - } - } - } else if (physicalAgeSwap === 18) { - if (slave.hips < 2) { - if (jsRandom(1, 100) > 40 / uterineHypersensitivityMod) { - slave.hips++; - } - } - } - } else if (slave.hormoneBalance <= -200) { - if (physicalAgeSwap === 14) { - if (slave.hips < 2) { - if (jsRandom(1, 100) > 99 / uterineHypersensitivityMod) { - slave.hips++; - } - } - } - } else if (slave.hormoneBalance <= -100) { - if (physicalAgeSwap === 14) { - if (slave.hips < 2) { - if (jsRandom(1, 100) > 95 / uterineHypersensitivityMod) { - slave.hips++; - } - } - } - } else { - if (physicalAgeSwap === 14) { - if (slave.hips < 2) { - if (jsRandom(1, 100) > 60 / uterineHypersensitivityMod) { - slave.hips++; - } - } - } - } - } - - /** - * @param {App.Entity.SlaveState} slave - */ - function increaseButtXX(slave) { - rearQuirk = slave.geneticQuirks.rearLipedema === 2 ? 2 : 0; - rearQuirkDivider = rearQuirk === 0 ? 1 : rearQuirk; - - if (slave.hormoneBalance >= 200) { - if (physicalAgeSwap === 8) { - if (slave.butt < (3 + rearQuirk)) { - if (jsRandom(1, 100) > (80 / rearQuirkDivider)) { - slave.butt++; - } - } - } else if (physicalAgeSwap === 9) { - if (slave.butt < (3 + rearQuirk)) { - if (jsRandom(1, 100) > (80 / rearQuirkDivider)) { - slave.butt++; - } - } - } else if (physicalAgeSwap === 10) { - if (slave.butt < (3 + rearQuirk)) { - if (jsRandom(1, 100) > (80 / rearQuirkDivider)) { - slave.butt++; - } - } - } else if (physicalAgeSwap === 11) { - if (slave.butt < (3 + rearQuirk)) { - if (jsRandom(1, 100) > (20 / rearQuirkDivider)) { - slave.butt++; - } - } - } else if (physicalAgeSwap === 12) { - if (slave.butt < (4 + rearQuirk)) { - if (jsRandom(1, 100) > (20 / rearQuirkDivider)) { - slave.butt++; - } - } - } else if (physicalAgeSwap === 13) { - if (slave.butt < (4 + rearQuirk)) { - if (jsRandom(1, 100) > (20 / rearQuirkDivider)) { - slave.butt++; - } - } - } - } else if (slave.hormoneBalance >= 100) { - if (physicalAgeSwap === 8) { - if (slave.butt < (3 + rearQuirk)) { - if (jsRandom(1, 100) > (90 / rearQuirkDivider)) { - slave.butt++; - } - } - } else if (physicalAgeSwap === 9) { - if (slave.butt < (3 + rearQuirk)) { - if (jsRandom(1, 100) > (90 / rearQuirkDivider)) { - slave.butt++; - } - } - } else if (physicalAgeSwap === 10) { - if (slave.butt < (3 + rearQuirk)) { - if (jsRandom(1, 100) > (90 / rearQuirkDivider)) { - slave.butt++; - } - } - } else if (physicalAgeSwap === 11) { - if (slave.butt < (3 + rearQuirk)) { - if (jsRandom(1, 100) > (40 / rearQuirkDivider)) { - slave.butt++; - } - } - } else if (physicalAgeSwap === 12) { - if (slave.butt < (4 + rearQuirk)) { - if (jsRandom(1, 100) > (40 / rearQuirkDivider)) { - slave.butt++; - } - } - } else if (physicalAgeSwap === 13) { - if (slave.butt < (4 + rearQuirk)) { - if (jsRandom(1, 100) > (40 / rearQuirkDivider)) { - slave.butt++; - } - } - } - } else if (slave.hormoneBalance <= -200) { - if (physicalAgeSwap === 8) { - if (slave.butt < (3 + rearQuirk)) { - if (jsRandom(1, 100) > (90 / rearQuirkDivider)) { - slave.butt++; - } - } - } else if (physicalAgeSwap === 11) { - if (slave.butt < (3 + rearQuirk)) { - if (jsRandom(1, 100) > (95 / rearQuirkDivider)) { - slave.butt++; - } - } - } else if (physicalAgeSwap === 12) { - if (slave.butt < (3 + rearQuirk)) { - if (jsRandom(1, 100) > (95 / rearQuirkDivider)) { - slave.butt++; - } - } - } else if (physicalAgeSwap === 13) { - if (slave.butt < (3 + rearQuirk)) { - if (jsRandom(1, 100) > (95 / rearQuirkDivider)) { - slave.butt++; - } - } - } - } else if (slave.hormoneBalance <= -100) { - if (physicalAgeSwap === 8) { - if (slave.butt < (3 + rearQuirk)) { - if (jsRandom(1, 100) > (80 / rearQuirkDivider)) { - slave.butt++; - } - } - } else if (physicalAgeSwap === 11) { - if (slave.butt < (3 + rearQuirk)) { - if (jsRandom(1, 100) > (90 / rearQuirkDivider)) { - slave.butt++; - } - } - } else if (physicalAgeSwap === 12) { - if (slave.butt < (3 + rearQuirk)) { - if (jsRandom(1, 100) > (90 / rearQuirkDivider)) { - slave.butt++; - } - } - } else if (physicalAgeSwap === 13) { - if (slave.butt < (3 + rearQuirk)) { - if (jsRandom(1, 100) > (90 / rearQuirkDivider)) { - slave.butt++; - } - } - } - } else { - if (physicalAgeSwap === 8) { - if (slave.butt < (3 + rearQuirk)) { - if (jsRandom(1, 100) > (60 / rearQuirkDivider)) { - slave.butt++; - } - } - } else if (physicalAgeSwap === 11) { - if (slave.butt < (3 + rearQuirk)) { - if (jsRandom(1, 100) > (60 / rearQuirkDivider)) { - slave.butt++; - } - } - } else if (physicalAgeSwap === 12) { - if (slave.butt < (3 + rearQuirk)) { - if (jsRandom(1, 100) > (60 / rearQuirkDivider)) { - slave.butt++; - } - } - } else if (physicalAgeSwap === 13) { - if (slave.butt < (3 + rearQuirk)) { - if (jsRandom(1, 100) > (60 / rearQuirkDivider)) { - slave.butt++; - } - } - } - } - } - - /** - * @param {App.Entity.SlaveState} slave - */ - function increaseButtXY(slave) { - rearQuirk = slave.geneticQuirks.rearLipedema === 2 ? 2 : 0; - rearQuirkDivider = rearQuirk === 0 ? 1 : rearQuirk; - if (slave.hormoneBalance >= 200) { - if (physicalAgeSwap === 8) { - if (slave.butt < (3 + rearQuirk)) { - if (jsRandom(1, 100) > (80 / rearQuirkDivider)) { - slave.butt++; - } - } - } else if (physicalAgeSwap === 9) { - if (slave.butt < (3 + rearQuirk)) { - if (jsRandom(1, 100) > (80 / rearQuirkDivider)) { - slave.butt++; - } - } - } else if (physicalAgeSwap === 10) { - if (slave.butt < (3 + rearQuirk)) { - if (jsRandom(1, 100) > (80 / rearQuirkDivider)) { - slave.butt++; - } - } - } else if (physicalAgeSwap === 11) { - if (slave.butt < (3 + rearQuirk)) { - if (jsRandom(1, 100) > (20 / rearQuirkDivider)) { - slave.butt++; - } - } - } else if (physicalAgeSwap === 12) { - if (slave.butt < (4 + rearQuirk)) { - if (jsRandom(1, 100) > (20 / rearQuirkDivider)) { - slave.butt++; - } - } - } else if (physicalAgeSwap === 13) { - if (slave.butt < (4 + rearQuirk)) { - if (jsRandom(1, 100) > (20 / rearQuirkDivider)) { - slave.butt++; - } - } - } - } else if (slave.hormoneBalance >= 100) { - if (physicalAgeSwap === 8) { - if (slave.butt < (3 + rearQuirk)) { - if (jsRandom(1, 100) > (90 / rearQuirkDivider)) { - slave.butt++; - } - } - } else if (physicalAgeSwap === 9) { - if (slave.butt < (3 + rearQuirk)) { - if (jsRandom(1, 100) > (90 / rearQuirkDivider)) { - slave.butt++; - } - } - } else if (physicalAgeSwap === 10) { - if (slave.butt < (3 + rearQuirk)) { - if (jsRandom(1, 100) > (90 / rearQuirkDivider)) { - slave.butt++; - } - } - } else if (physicalAgeSwap === 11) { - if (slave.butt < (3 + rearQuirk)) { - if (jsRandom(1, 100) > (40 / rearQuirkDivider)) { - slave.butt++; - } - } - } else if (physicalAgeSwap === 13) { - if (slave.butt < (4 + rearQuirk)) { - if (jsRandom(1, 100) > (40 / rearQuirkDivider)) { - slave.butt++; - } - } - } - } else if (slave.hormoneBalance <= -200) { - if (physicalAgeSwap === 8) { - if (slave.butt < (3 + rearQuirk)) { - if (jsRandom(1, 100) > (90 / rearQuirkDivider)) { - slave.butt++; - } - } - } - } else if (slave.hormoneBalance <= -100) { - if (physicalAgeSwap === 8) { - if (slave.butt < (3 + rearQuirk)) { - if (jsRandom(1, 100) > (80 / rearQuirkDivider)) { - slave.butt++; - } - } - } - } - } - - /** - * @param {App.Entity.SlaveState} slave - */ - function increaseDick(slave) { - dickMod = (slave.geneticQuirks.wellHung === 2 ? 2 : 1); - - if (slave.hormoneBalance >= 200) { - // - } else if (slave.hormoneBalance >= 100) { - // - } else if (slave.hormoneBalance <= -200) { - if (physicalAgeSwap === 8) { - if (slave.dick < 6) { - if (jsRandom(1, 100) > (70 / dickMod)) { - slave.dick++; - if (slave.foreskin > 0) { - slave.foreskin++; - } - } - } - } else if (physicalAgeSwap === 9) { - if (slave.dick < 6 && dickMod === 2) { - if (jsRandom(1, 100) > 70) { - slave.dick++; - if (slave.foreskin > 0) { - slave.foreskin++; - } - } - } - } else if (physicalAgeSwap === 10) { - if (slave.dick < 6) { - if (jsRandom(1, 100) > (70 / dickMod)) { - slave.dick++; - if (slave.foreskin > 0) { - slave.foreskin++; - } - } - } - } else if (physicalAgeSwap === 11) { - if (slave.dick < 6) { - if (jsRandom(1, 100) > (70 / dickMod)) { - slave.dick++; - if (slave.foreskin > 0) { - slave.foreskin++; - } - } - } - } else if (physicalAgeSwap === 12) { - if (slave.dick < 6) { - if (jsRandom(1, 100) > (70 / dickMod)) { - slave.dick++; - if (slave.foreskin > 0) { - slave.foreskin++; - } - } - } - } else if (physicalAgeSwap === 13) { - if (slave.dick < 6) { - if (jsRandom(1, 100) > (50 / dickMod)) { - slave.dick++; - if (slave.foreskin > 0) { - slave.foreskin++; - } - } - } - } else if (physicalAgeSwap === 14) { - if (slave.dick < 6) { - if (jsRandom(1, 100) > (20 / dickMod)) { - slave.dick++; - if (slave.foreskin > 0) { - slave.foreskin++; - } - } - } - } else if (physicalAgeSwap === 15) { - if (slave.dick < 6) { - if (jsRandom(1, 100) > (20 / dickMod)) { - slave.dick++; - if (slave.foreskin > 0) { - slave.foreskin++; - } - } - } - } else if (physicalAgeSwap === 16) { - if (slave.dick < 6) { - if (jsRandom(1, 100) > (70 / dickMod)) { - slave.dick++; - if (slave.foreskin > 0) { - slave.foreskin++; - } - } - } - } else if (physicalAgeSwap === 17) { - if (slave.dick < 6) { - if (jsRandom(1, 100) > (70 / dickMod)) { - slave.dick++; - if (slave.foreskin > 0) { - slave.foreskin++; - } - } - } - } else if (physicalAgeSwap === 18) { - if (slave.dick < 6) { - if (jsRandom(1, 100) > (70 / dickMod)) { - slave.dick++; - if (slave.foreskin > 0) { - slave.foreskin++; - } - } - } - } - } else if (slave.hormoneBalance <= -100) { - if (physicalAgeSwap === 8) { - if (slave.dick < 6) { - if (jsRandom(1, 100) > (90 / dickMod)) { - slave.dick++; - if (slave.foreskin > 0) { - slave.foreskin++; - } - } - } - } else if (physicalAgeSwap === 9) { - if (slave.dick < 6 && dickMod === 2) { - if (jsRandom(1, 100) > 70) { - slave.dick++; - if (slave.foreskin > 0) { - slave.foreskin++; - } - } - } - } else if (physicalAgeSwap === 10) { - if (slave.dick < 6) { - if (jsRandom(1, 100) > (90 / dickMod)) { - slave.dick++; - if (slave.foreskin > 0) { - slave.foreskin++; - } - } - } - } else if (physicalAgeSwap === 11) { - if (slave.dick < 6) { - if (jsRandom(1, 100) > (90 / dickMod)) { - slave.dick++; - if (slave.foreskin > 0) { - slave.foreskin++; - } - } - } - } else if (physicalAgeSwap === 12) { - if (slave.dick < 6) { - if (jsRandom(1, 100) > (90 / dickMod)) { - slave.dick++; - if (slave.foreskin > 0) { - slave.foreskin++; - } - } - } - } else if (physicalAgeSwap === 13) { - if (slave.dick < 6) { - if (jsRandom(1, 100) > (70 / dickMod)) { - slave.dick++; - if (slave.foreskin > 0) { - slave.foreskin++; - } - } - } - } else if (physicalAgeSwap === 14) { - if (slave.dick < 6) { - if (jsRandom(1, 100) > (40 / dickMod)) { - slave.dick++; - if (slave.foreskin > 0) { - slave.foreskin++; - } - } - } - } else if (physicalAgeSwap === 15) { - if (slave.dick < 6) { - if (jsRandom(1, 100) > (40 / dickMod)) { - slave.dick++; - if (slave.foreskin > 0) { - slave.foreskin++; - } - } - } - } else if (physicalAgeSwap === 16) { - if (slave.dick < 6) { - if (jsRandom(1, 100) > (90 / dickMod)) { - slave.dick++; - if (slave.foreskin > 0) { - slave.foreskin++; - } - } - } - } else if (physicalAgeSwap === 17) { - if (slave.dick < 6) { - if (jsRandom(1, 100) > (90 / dickMod)) { - slave.dick++; - if (slave.foreskin > 0) { - slave.foreskin++; - } - } - } - } else if (physicalAgeSwap === 18) { - if (slave.dick < 6) { - if (jsRandom(1, 100) > (90 / dickMod)) { - slave.dick++; - if (slave.foreskin > 0) { - slave.foreskin++; - } - } - } - } - } else { - if (physicalAgeSwap === 9) { - if (slave.dick < 6 && dickMod === 2) { - if (jsRandom(1, 100) > 70) { - slave.dick++; - if (slave.foreskin > 0) { - slave.foreskin++; - } - } - } - } else if (physicalAgeSwap === 10) { - if (slave.dick < 6 && dickMod === 2) { - if (jsRandom(1, 100) > 70) { - slave.dick++; - if (slave.foreskin > 0) { - slave.foreskin++; - } - } - } - } else if (physicalAgeSwap === 11) { - if (slave.dick < 6 && dickMod === 2) { - if (jsRandom(1, 100) > 70) { - slave.dick++; - if (slave.foreskin > 0) { - slave.foreskin++; - } - } - } - } else if (physicalAgeSwap === 12) { - if (slave.dick < 6 && dickMod === 2) { - if (jsRandom(1, 100) > 70) { - slave.dick++; - if (slave.foreskin > 0) { - slave.foreskin++; - } - } - } - } else if (physicalAgeSwap === 13) { - if (slave.dick < 6) { - if (jsRandom(1, 100) > (50 / dickMod)) { - slave.dick++; - if (slave.foreskin > 0) { - slave.foreskin++; - } - } - } - } else if (physicalAgeSwap === 14) { - if (slave.dick < 6) { - if (jsRandom(1, 100) > (50 / dickMod)) { - slave.dick++; - if (slave.foreskin > 0) { - slave.foreskin++; - } - } - } - } else if (physicalAgeSwap === 15) { - if (slave.dick < 6) { - if (jsRandom(1, 100) > (50 / dickMod)) { - slave.dick++; - if (slave.foreskin > 0) { - slave.foreskin++; - } - } - } - } - } - } - - /** - * @param {App.Entity.SlaveState} slave - */ - function increaseBalls(slave) { - if (slave.hormoneBalance >= 200) { - // - } else if (slave.hormoneBalance >= 100) { - // - } else if (slave.hormoneBalance <= -200) { - if (physicalAgeSwap === 8) { - if (slave.balls < 6) { - if (jsRandom(1, 100) > 10) { - slave.balls++; - if (slave.scrotum > 0) { - slave.scrotum++; - } - } - } - } else if (physicalAgeSwap === 10) { - if (slave.balls < 6) { - if (jsRandom(1, 100) > 70) { - slave.balls++; - if (slave.scrotum > 0) { - slave.scrotum++; - } - } - } - } else if (physicalAgeSwap === 11) { - if (slave.balls < 6) { - if (jsRandom(1, 100) > 70) { - slave.balls++; - if (slave.scrotum > 0) { - slave.scrotum++; - } - } - } - } else if (physicalAgeSwap === 12) { - if (slave.balls < 6) { - if (jsRandom(1, 100) > 70) { - slave.balls++; - if (slave.scrotum > 0) { - slave.scrotum++; - } - } - } - } else if (physicalAgeSwap === 13) { - if (slave.balls < 6) { - if (jsRandom(1, 100) > 50) { - slave.balls++; - if (slave.scrotum > 0) { - slave.scrotum++; - } - } - } - } else if (physicalAgeSwap === 14) { - if (slave.balls < 6) { - if (jsRandom(1, 100) > 20) { - slave.balls++; - if (slave.scrotum > 0) { - slave.scrotum++; - } - } - } - } else if (physicalAgeSwap === 15) { - if (slave.balls < 6) { - if (jsRandom(1, 100) > 20) { - slave.balls++; - if (slave.scrotum > 0) { - slave.scrotum++; - } - } - } - } else if (physicalAgeSwap === 16) { - if (slave.balls < 6) { - if (jsRandom(1, 100) > 70) { - slave.balls++; - if (slave.scrotum > 0) { - slave.scrotum++; - } - } - } - } else if (physicalAgeSwap === 17) { - if (slave.balls < 6) { - if (jsRandom(1, 100) > 70) { - slave.balls++; - if (slave.scrotum > 0) { - slave.scrotum++; - } - } - } - } else if (physicalAgeSwap === 18) { - if (slave.balls < 6) { - if (jsRandom(1, 100) > 70) { - slave.balls++; - if (slave.scrotum > 0) { - slave.scrotum++; - } - } - } - } - } else if (slave.hormoneBalance <= -100) { - if (physicalAgeSwap === 8) { - if (slave.balls < 6) { - if (jsRandom(1, 100) > 30) { - slave.balls++; - if (slave.scrotum > 0) { - slave.scrotum++; - } - } - } - } else if (physicalAgeSwap === 10) { - if (slave.balls < 6) { - if (jsRandom(1, 100) > 90) { - slave.balls++; - if (slave.scrotum > 0) { - slave.scrotum++; - } - } - } - } else if (physicalAgeSwap === 11) { - if (slave.balls < 6) { - if (jsRandom(1, 100) > 90) { - slave.balls++; - if (slave.scrotum > 0) { - slave.scrotum++; - } - } - } - } else if (physicalAgeSwap === 12) { - if (slave.balls < 6) { - if (jsRandom(1, 100) > 90) { - slave.balls++; - if (slave.scrotum > 0) { - slave.scrotum++; - } - } - } - } else if (physicalAgeSwap === 13) { - if (slave.balls < 6) { - if (jsRandom(1, 100) > 70) { - slave.balls++; - if (slave.scrotum > 0) { - slave.scrotum++; - } - } - } - } else if (physicalAgeSwap === 14) { - if (slave.balls < 6) { - if (jsRandom(1, 100) > 40) { - slave.balls++; - if (slave.scrotum > 0) { - slave.scrotum++; - } - } - } - } else if (physicalAgeSwap === 15) { - if (slave.balls < 6) { - if (jsRandom(1, 100) > 40) { - slave.balls++; - if (slave.scrotum > 0) { - slave.scrotum++; - } - } - } - } else if (physicalAgeSwap === 16) { - if (slave.balls < 6) { - if (jsRandom(1, 100) > 90) { - slave.balls++; - if (slave.scrotum > 0) { - slave.scrotum++; - } - } - } - } else if (physicalAgeSwap === 17) { - if (slave.balls < 6) { - if (jsRandom(1, 100) > 90) { - slave.balls++; - if (slave.scrotum > 0) { - slave.scrotum++; - } - } - } - } else if (physicalAgeSwap === 18) { - if (slave.balls < 6) { - if (jsRandom(1, 100) > 90) { - slave.balls++; - if (slave.scrotum > 0) { - slave.scrotum++; - } - } - } - } - } else { - if (physicalAgeSwap === 8) { - if (slave.balls < 6) { - if (jsRandom(1, 100) > 50) { - slave.balls++; - if (slave.scrotum > 0) { - slave.scrotum++; - } - } - } - } else if (physicalAgeSwap === 13) { - if (slave.balls < 6) { - if (jsRandom(1, 100) > 50) { - slave.balls++; - if (slave.scrotum > 0) { - slave.scrotum++; - } - } - } - } else if (physicalAgeSwap === 14) { - if (slave.balls < 6) { - if (jsRandom(1, 100) > 50) { - slave.balls++; - if (slave.scrotum > 0) { - slave.scrotum++; - } - } - } - } else if (physicalAgeSwap === 15) { - if (slave.balls < 6) { - if (jsRandom(1, 100) > 50) { - slave.balls++; - if (slave.scrotum > 0) { - slave.scrotum++; - } - } - } - } - } - } - - /** - * @param {App.Entity.SlaveState} slave - */ - function increaseClit(slave) { - if (slave.hormoneBalance <= -200) { - if (physicalAgeSwap === 8) { - if (slave.clit < 4) { - if (jsRandom(1, 100) > 70) { - slave.clit++; - } - } - } else if (physicalAgeSwap === 9) { - if (slave.clit < 4) { - if (jsRandom(1, 100) > 70) { - slave.clit++; - } - } - } else if (physicalAgeSwap === 10) { - if (slave.clit < 4) { - if (jsRandom(1, 100) > 70) { - slave.clit++; - } - } - } else if (physicalAgeSwap === 11) { - if (slave.clit < 4) { - if (jsRandom(1, 100) > 50) { - slave.clit++; - } - } - } else if (physicalAgeSwap === 12) { - if (slave.clit < 4) { - if (jsRandom(1, 100) > 50) { - slave.clit++; - } - } - } else if (physicalAgeSwap === 13) { - if (slave.clit < 4) { - if (jsRandom(1, 100) > 50) { - slave.clit++; - } - } - } else if (physicalAgeSwap === 14) { - if (slave.clit < 4) { - if (jsRandom(1, 100) > 50) { - slave.clit++; - } - } - } else if (physicalAgeSwap === 15) { - if (slave.clit < 4) { - if (jsRandom(1, 100) > 50) { - slave.clit++; - } - } - } else if (physicalAgeSwap === 16) { - if (slave.clit < 4) { - if (jsRandom(1, 100) > 50) { - slave.clit++; - } - } - } else if (physicalAgeSwap === 17) { - if (slave.clit < 4) { - if (jsRandom(1, 100) > 50) { - slave.clit++; - } - } - } else if (physicalAgeSwap === 18) { - if (slave.clit < 4) { - if (jsRandom(1, 100) > 50) { - slave.clit++; - } - } - } - } else if (slave.hormoneBalance <= -100) { - if (physicalAgeSwap === 8) { - if (slave.clit.isBetween(0, 4)) { - if (jsRandom(1, 100) > 90) { - slave.clit++; - } - } - } else if (physicalAgeSwap === 9) { - if (slave.clit.isBetween(0, 4)) { - if (jsRandom(1, 100) > 90) { - slave.clit++; - } - } - } else if (physicalAgeSwap === 10) { - if (slave.clit.isBetween(0, 4)) { - if (jsRandom(1, 100) > 90) { - slave.clit++; - } - } - } else if (physicalAgeSwap === 11) { - if (slave.clit.isBetween(0, 4)) { - if (jsRandom(1, 100) > 70) { - slave.clit++; - } - } - } else if (physicalAgeSwap === 12) { - if (slave.clit.isBetween(0, 4)) { - if (jsRandom(1, 100) > 70) { - slave.clit++; - } - } - } else if (physicalAgeSwap === 13) { - if (slave.clit.isBetween(0, 4)) { - if (jsRandom(1, 100) > 70) { - slave.clit++; - } - } - } else if (physicalAgeSwap === 14) { - if (slave.clit.isBetween(0, 4)) { - if (jsRandom(1, 100) > 70) { - slave.clit++; - } - } - } else if (physicalAgeSwap === 15) { - if (slave.clit.isBetween(0, 4)) { - if (jsRandom(1, 100) > 70) { - slave.clit++; - } - } - } else if (physicalAgeSwap === 16) { - if (slave.clit.isBetween(0, 4)) { - if (jsRandom(1, 100) > 70) { - slave.clit++; - } - } - } else if (physicalAgeSwap === 17) { - if (slave.clit.isBetween(0, 4)) { - if (jsRandom(1, 100) > 70) { - slave.clit++; - } - } - } else if (physicalAgeSwap === 18) { - if (slave.clit.isBetween(0, 4)) { - if (jsRandom(1, 100) > 70) { - slave.clit++; - } - } - } - } - if (physicalAgeSwap >= 11 && slave.geneticQuirks.wellHung === 2 && slave.clit < 5 && jsRandom(1, 100) > 60) { - slave.clit++; - } - } - - /** - * @param {App.Entity.SlaveState} slave - */ - function increaseWetness(slave) { - if (slave.geneticQuirks.uterineHypersensitivity === 2) { - uterineHypersensitivityMod = 1.5; - } else if (slave.geneticQuirks.uterineHypersensitivity === 1) { - uterineHypersensitivityMod = 1.2; - } else { - uterineHypersensitivityMod = 1; - } - if (slave.hormoneBalance >= 200) { - if (physicalAgeSwap === 8 || physicalAgeSwap === 9) { - if (slave.vaginaLube < 1) { - if (jsRandom(1, 100) > 90 / uterineHypersensitivityMod) { - slave.vaginaLube++; - } - } - } else if (physicalAgeSwap <= 12) { - if (slave.vaginaLube < 1) { - if (jsRandom(1, 100) > 60 / uterineHypersensitivityMod) { - slave.vaginaLube++; - } - } else if (slave.vaginaLube < 2) { - if (jsRandom(1, 100) > 80 / uterineHypersensitivityMod) { - slave.vaginaLube++; - } - } - } else if (physicalAgeSwap <= 15) { - if (slave.vaginaLube < 1) { - if (jsRandom(1, 100) > 30 / uterineHypersensitivityMod) { - slave.vaginaLube++; - } - } else if (slave.vaginaLube < 2) { - if (jsRandom(1, 100) > 50 / uterineHypersensitivityMod) { - slave.vaginaLube++; - } - } - } else if (physicalAgeSwap <= 18) { - if (slave.vaginaLube < 1) { - if (jsRandom(1, 100) > 10 / uterineHypersensitivityMod) { - slave.vaginaLube++; - } - } else if (slave.vaginaLube < 2) { - if (jsRandom(1, 100) > 20 / uterineHypersensitivityMod) { - slave.vaginaLube++; - } - } - } - } else if (slave.hormoneBalance >= 100) { - if (physicalAgeSwap > 9 && physicalAgeSwap <= 12) { - if (slave.vaginaLube < 1) { - if (jsRandom(1, 100) > 70 / uterineHypersensitivityMod) { - slave.vaginaLube++; - } - } - } else if (physicalAgeSwap <= 15) { - if (slave.vaginaLube < 1) { - if (jsRandom(1, 100) > 40 / uterineHypersensitivityMod) { - slave.vaginaLube++; - } - } else if (slave.vaginaLube < 2) { - if (jsRandom(1, 100) > 70 / uterineHypersensitivityMod) { - slave.vaginaLube++; - } - } - } else if (physicalAgeSwap <= 18) { - if (slave.vaginaLube < 1) { - if (jsRandom(1, 100) > 20 / uterineHypersensitivityMod) { - slave.vaginaLube++; - } - } else if (slave.vaginaLube < 2) { - if (jsRandom(1, 100) > 40 / uterineHypersensitivityMod) { - slave.vaginaLube++; - } - } - } - } else if (slave.hormoneBalance >= -20) { - if (physicalAgeSwap > 15 && physicalAgeSwap <= 18) { - if (slave.vaginaLube < 1) { - if (jsRandom(1, 100) > 50 / uterineHypersensitivityMod) { - slave.vaginaLube++; - } - } - } - } - } - - /** - * @param {App.Entity.SlaveState} slave - */ - function increaseWaistXX(slave) { - if (slave.hormoneBalance >= 200) { - if (physicalAgeSwap >= 12) { - if (slave.waist > -60) { - if (jsRandom(1, 100) > 20) { - slave.waist -= 5; - } - } - } - } else if (slave.hormoneBalance >= 100) { - if (physicalAgeSwap >= 12) { - if (slave.waist > -30) { - if (jsRandom(1, 100) > 20) { - slave.waist -= 5; - } - } - } - } else if (slave.hormoneBalance <= -200) { - if (physicalAgeSwap >= 12) { - if (slave.waist < 60) { - if (jsRandom(1, 100) > 20) { - slave.waist += 5; - } - } - } - } else if (slave.hormoneBalance <= -100) { - if (physicalAgeSwap >= 12) { - if (slave.waist < 30) { - if (jsRandom(1, 100) > 20) { - slave.waist += 5; - } - } - } - } else { - if (physicalAgeSwap >= 12) { - if (slave.waist > -20) { - if (jsRandom(1, 100) > 60) { - slave.waist -= 5; - } - } - } - } - } - - /** - * @param {App.Entity.SlaveState} slave - */ - function increaseWaistXY(slave) { - if (slave.hormoneBalance >= 200) { - if (physicalAgeSwap >= 12) { - if (slave.waist > -30) { - if (jsRandom(1, 100) > 20) { - slave.waist -= 5; - } - } - } - } else if (slave.hormoneBalance >= 100) { - if (physicalAgeSwap >= 12) { - if (slave.waist > -15) { - if (jsRandom(1, 100) > 20) { - slave.waist -= 5; - } - } - } - } else if (slave.hormoneBalance <= -200) { - if (physicalAgeSwap >= 12) { - if (slave.waist < 90) { - if (jsRandom(1, 100) > 20) { - slave.waist += 5; - } - } - } - } else if (slave.hormoneBalance <= -100) { - if (physicalAgeSwap >= 12) { - if (slave.waist < 60) { - if (jsRandom(1, 100) > 20) { - slave.waist += 5; - } - } - } - } else { - if (physicalAgeSwap >= 12) { - if (slave.waist < 20) { - if (jsRandom(1, 100) > 60) { - slave.waist += 5; - } - } - } - } - } - - /** - * @param {App.Entity.SlaveState} slave - */ - function increaseFaceXX(slave) { - if (slave.hormoneBalance >= 200) { - if (slave.face > 60) { - if (jsRandom(1, 100) > 80) { - slave.face += 5; - } - } else if (slave.face <= 60) { - if (jsRandom(1, 100) > 30) { - slave.face += 10; - } - } - } else if (slave.hormoneBalance >= 100) { - if (slave.face > 60) { - if (jsRandom(1, 100) > 80) { - slave.face += 5; - } - } else if (slave.face <= 60) { - if (jsRandom(1, 100) > 30) { - slave.face += 10; - } - } - } else if (slave.hormoneBalance <= -200) { - if (slave.face < 100) { - if (jsRandom(1, 100) > 50) { - slave.face -= 20; - } - } - } else if (slave.hormoneBalance <= -100) { - if (slave.face < 100) { - if (jsRandom(1, 100) > 70) { - slave.face -= 20; - } - } - } else { - if (slave.face > 60) { - if (jsRandom(1, 100) > 90) { - slave.face += 5; - } - } else if (slave.face <= 60) { - if (jsRandom(1, 100) > 40) { - slave.face += 10; - } - } - } - } - - /** - * @param {App.Entity.SlaveState} slave - */ - function increaseFaceXY(slave) { - if (slave.hormoneBalance >= 200) { - if (slave.face > 60) { - if (jsRandom(1, 100) > 80) { - slave.face += 5; - } - } else if (slave.face <= 60) { - if (jsRandom(1, 100) > 50) { - slave.face += 10; - } - } - } else if (slave.hormoneBalance >= 100) { - if (slave.face > 60) { - if (jsRandom(1, 100) > 80) { - slave.face += 10; - } - } - } - } - - /** - * @param {App.Entity.SlaveState} slave - */ - function increaseVoiceXX(slave) { - if (slave.hormoneBalance >= 200) { - if (slave.voice === 3) { - if (jsRandom(1, 100) > 90) { - slave.voice--; - } - } - } else if (slave.hormoneBalance >= 100) { - if (slave.voice === 3) { - if (jsRandom(1, 100) > 80) { - slave.voice--; - } - } - } else if (slave.hormoneBalance <= -200) { - if (slave.voice <= 3) { - if (jsRandom(1, 100) > 30) { - slave.voice--; - } - } - } else if (slave.hormoneBalance <= -100) { - if (slave.voice <= 3) { - if (jsRandom(1, 100) > 60) { - slave.voice--; - } - } - } else { - if (slave.voice === 3) { - if (jsRandom(1, 100) > 60) { - slave.voice--; - } - } - } - } - - /** - * @param {App.Entity.SlaveState} slave - */ - function increaseVoiceXY(slave) { - if (slave.hormoneBalance >= 200) { - if (slave.voice < 2) { - if (jsRandom(1, 100) > 50) { - slave.voice--; - } - } - } else if (slave.hormoneBalance >= 100) { - if (slave.voice < 3) { - if (jsRandom(1, 100) > 50) { - slave.voice--; - } - } - } else if (slave.hormoneBalance <= -200) { - if (slave.voice > 1) { - if (jsRandom(1, 100) > 10) { - slave.voice--; - } - } - } else if (slave.hormoneBalance <= -100) { - if (slave.voice > 1) { - if (jsRandom(1, 100) > 30) { - slave.voice--; - } - } - } else { - if (slave.voice > 1) { - if (jsRandom(1, 100) > 60) { - slave.voice--; - } - } - } - } - - /** - * @param {App.Entity.SlaveState} slave - */ - function increasePregAdaptationXX(slave) { - if (physicalAgeSwap === 3) { - if (slave.pregAdaptation < 5) { - slave.pregAdaptation = 5; - } - } else if (physicalAgeSwap === 4) { - if (slave.pregAdaptation < 5) { - slave.pregAdaptation++; - } - } else if (physicalAgeSwap === 5) { - if (slave.pregAdaptation < 5) { - slave.pregAdaptation++; - } - } else if (physicalAgeSwap === 6) { - if (slave.pregAdaptation < 5) { - slave.pregAdaptation++; - } - } else if (physicalAgeSwap === 7) { - if (slave.pregAdaptation < 6) { - slave.pregAdaptation++; - } - } else if (physicalAgeSwap === 8) { - if (slave.pregAdaptation < 7) { - slave.pregAdaptation++; - } - } else if (physicalAgeSwap === 9) { - if (slave.pregAdaptation < 8) { - slave.pregAdaptation++; - } - } else if (physicalAgeSwap === 10) { - if (slave.pregAdaptation < 9) { - slave.pregAdaptation++; - } - } else if (physicalAgeSwap === 11) { - if (slave.pregAdaptation < 10) { - slave.pregAdaptation++; - } - } else if (physicalAgeSwap === 12) { - if (slave.pregAdaptation < 14) { - slave.pregAdaptation += 4; - } - } else if (physicalAgeSwap === 13) { - if (slave.pregAdaptation < 18) { - slave.pregAdaptation += 4; - } - } else if (physicalAgeSwap === 14) { - if (slave.pregAdaptation < 22) { - slave.pregAdaptation += 4; - } - } else if (physicalAgeSwap === 15) { - if (slave.pregAdaptation < 28) { - slave.pregAdaptation += 6; - } - } else if (physicalAgeSwap === 16) { - if (slave.pregAdaptation < 34) { - slave.pregAdaptation += 6; - } - } else if (physicalAgeSwap === 17) { - if (slave.pregAdaptation < 42) { - slave.pregAdaptation += 8; - } - } else if (physicalAgeSwap === 18) { - if (slave.pregAdaptation < 50) { - slave.pregAdaptation += 8; - } - } - } - - /** - * @param {App.Entity.SlaveState} slave - */ - function increasePregAdaptationXY(slave) { - if (physicalAgeSwap === 3) { - if (slave.pregAdaptation < 5) { - slave.pregAdaptation = 5; - } - } else if (physicalAgeSwap === 4) { - if (slave.pregAdaptation < 5) { - slave.pregAdaptation++; - } - } else if (physicalAgeSwap === 5) { - if (slave.pregAdaptation < 5) { - slave.pregAdaptation++; - } - } else if (physicalAgeSwap === 6) { - if (slave.pregAdaptation < 5) { - slave.pregAdaptation++; - } - } else if (physicalAgeSwap === 7) { - if (slave.pregAdaptation < 6) { - slave.pregAdaptation++; - } - } else if (physicalAgeSwap === 8) { - if (slave.pregAdaptation < 7) { - slave.pregAdaptation++; - } - } else if (physicalAgeSwap === 9) { - if (slave.pregAdaptation < 8) { - slave.pregAdaptation++; - } - } else if (physicalAgeSwap === 10) { - if (slave.pregAdaptation < 9) { - slave.pregAdaptation++; - } - } else if (physicalAgeSwap === 11) { - if (slave.pregAdaptation < 10) { - slave.pregAdaptation++; - } - } else if (physicalAgeSwap === 12) { - if (slave.pregAdaptation < 12) { - slave.pregAdaptation += 2; - } - } else if (physicalAgeSwap === 13) { - if (slave.pregAdaptation < 14) { - slave.pregAdaptation += 2; - } - } else if (physicalAgeSwap === 14) { - if (slave.pregAdaptation < 16) { - slave.pregAdaptation += 2; - } - } else if (physicalAgeSwap === 15) { - if (slave.pregAdaptation < 18) { - slave.pregAdaptation += 2; - } - } else if (physicalAgeSwap === 16) { - if (slave.pregAdaptation < 20) { - slave.pregAdaptation += 2; - } - } else if (physicalAgeSwap === 17) { - if (slave.pregAdaptation < 20) { - slave.pregAdaptation += 2; - } - } else if (physicalAgeSwap === 18) { - if (slave.pregAdaptation < 20) { - slave.pregAdaptation += 2; - } - } - } -})(); diff --git a/src/js/utilsSlave.js b/src/js/utilsSlave.js index 8ae29c3b277f3d7dcf707a9c8be016afbf976812..517aa5f776499e6cb8d71e92a99deeb1baf3cf15 100644 --- a/src/js/utilsSlave.js +++ b/src/js/utilsSlave.js @@ -3299,7 +3299,7 @@ globalThis.ageSlave = function(slave, forceDevelopment = false) { slave.ovaryAge += 0.2; } if (slave.physicalAge <= 18 && (forceDevelopment || V.loliGrow > 0)) { - physicalDevelopment(slave); + App.EndWeek.Shared.physicalDevelopment(slave); } };