diff --git a/src/Mods/SpecialForce/upgrades/SpecialForceUpgradeFunctions.js b/src/Mods/SpecialForce/upgrades/SpecialForceUpgradeFunctions.js index 7968661430419276579dc9ae884a76e41b225830..b69abda19703cf2d911906dfafc779f22e86b68a 100644 --- a/src/Mods/SpecialForce/upgrades/SpecialForceUpgradeFunctions.js +++ b/src/Mods/SpecialForce/upgrades/SpecialForceUpgradeFunctions.js @@ -233,7 +233,7 @@ App.SF.upgrades = (function() { node.append(`Upgrade ${text}, one level costs`); App.UI.DOM.appendNewElement("span", node, ` ${cashFormat(price)}. `, ["cash", "dec"]); for (const number of multiplier) { - if (V.cash >= price * number) { + if (V.cash >= price * number && (max - V.SF.Squad[unit] >= number)) { App.UI.DOM.appendNewElement("span", node, App.UI.DOM.link(` ,x${number}`, () => { V.SF.Upgrade = 1; V.SF.Squad[unit] += number; diff --git a/src/endWeek/player/prDiet.js b/src/endWeek/player/prDiet.js index 5832a9d3fd9a2d0e09f6812dfdacbe9fc729ffe0..a5659b415c3fc3674a19b0f48c908e8099e4a974 100644 --- a/src/endWeek/player/prDiet.js +++ b/src/endWeek/player/prDiet.js @@ -43,7 +43,7 @@ App.EndWeek.Player.diet = function(PC = V.PC) { PC.weight = Math.max(PC.weight, -100); sharedAssetLoss(weightLoss); if (PC.weight < -95) { - r.push(`You can not physically lose any more weight, so you will <span class="noteworthy">resume a normal diet</span> starting next week.`); + r.push(`You cannot physically lose any more weight, so you will <span class="noteworthy">resume a normal diet</span> starting next week.`); PC.diet = "healthy"; } break; @@ -113,7 +113,7 @@ App.EndWeek.Player.diet = function(PC = V.PC) { PC.weight = Math.max(PC.weight, -100); sharedAssetLoss(weightLoss); if (PC.weight < -95) { - r.push(`You can not physically lose any more weight, so you will <span class="noteworthy">resume a normal diet</span> starting next week.`); + r.push(`You cannot physically lose any more weight, so you will <span class="noteworthy">resume a normal diet</span> starting next week.`); PC.diet = "healthy"; } break; @@ -612,10 +612,10 @@ App.EndWeek.Player.diet = function(PC = V.PC) { if ((PC.geneMods.NCS === 0 && random(1, 100) > 90) || (PC.geneMods.NCS === 1 && random(1, 100) > 45)) { if ((PC.geneMods.NCS === 0 && boobSize >= 200) || (PC.geneMods.NCS === 1 && boobSize > 100)) { if (PC.geneMods.NCS === 0) { - r.push(`All the excercise <span class="change negative">cuts a little fat from your chest.</span>`); + r.push(`All the exercise <span class="change negative">cuts a little fat from your chest.</span>`); PC.boobs -= 50; } else { - r.push(`All the excercise <span class="change negative">cuts some fat off your chest.</span>`); + r.push(`All the exercise <span class="change negative">cuts some fat off your chest.</span>`); PC.boobs -= 100; } } else if (buttSize > 1 && (PC.geneticQuirks.rearLipedema !== 2 || (buttSize > 10 && random(1, 100) > 80))) { @@ -699,10 +699,10 @@ App.EndWeek.Player.diet = function(PC = V.PC) { if ((PC.geneMods.NCS === 0 && random(1, 100) > 90) || (PC.geneMods.NCS === 1 && random(1, 100) > 45)) { if ((PC.geneMods.NCS === 0 && boobSize >= 200) || (PC.geneMods.NCS === 1 && boobSize > 100) && gigantomastiaMod !== 3) { if (PC.geneMods.NCS === 0) { - r.push(`All the excercise <span class="change negative">cuts a little fat from your chest.</span>`); + r.push(`All the exercise <span class="change negative">cuts a little fat from your chest.</span>`); PC.boobs -= 50; } else { - r.push(`All the excercise <span class="change negative">cuts some fat off your chest.</span>`); + r.push(`All the exercise <span class="change negative">cuts some fat off your chest.</span>`); PC.boobs -= 100; } } else if (buttSize > 1 && (PC.geneticQuirks.rearLipedema !== 2 || (buttSize > 10 && random(1, 100) > 80))) { @@ -739,10 +739,10 @@ App.EndWeek.Player.diet = function(PC = V.PC) { } if (((PC.geneMods.NCS === 0 && boobSize >= 200) || (PC.geneMods.NCS === 1 && (boobSize > 100))) && gigantomastiaMod !== 3) { if (PC.geneMods.NCS === 0) { - r.push(`All the excercise <span class="change negative">cuts a little fat from your chest.</span>`); + r.push(`All the exercise <span class="change negative">cuts a little fat from your chest.</span>`); PC.boobs -= 50; } else { - r.push(`All the excercise <span class="change negative">cuts some fat off your chest.</span>`); + r.push(`All the exercise <span class="change negative">cuts some fat off your chest.</span>`); PC.boobs -= 100; } } diff --git a/src/endWeek/player/prInflation.js b/src/endWeek/player/prInflation.js index 64f1377ce67ab621122f12a236e50c663a23b7ed..d467536b04356e1777d790aa34dabc5819d37d1f 100644 --- a/src/endWeek/player/prInflation.js +++ b/src/endWeek/player/prInflation.js @@ -206,7 +206,7 @@ App.EndWeek.Player.inflation = function(PC = V.PC) { } } else if (PC.inflationType === "food") { if (PC.weight < 200) { - r.push(`It should surprise noone that you <span class="lime">rapidly gain weight</span> with all the binge eating.`); + r.push(`It should surprise nobody that you <span class="lime">rapidly gain weight</span> with all the binge eating.`); PC.weight += 4; if (PC.weightDirection === 1) { PC.weight += 2;