Correctly check if locked upgrade odds is less than 4, rather than if false.

This commit is contained in:
Scooom 2025-03-11 05:20:05 -05:00 committed by GitHub
parent 552c603da9
commit 5e4555fa96
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3569,7 +3569,7 @@ function getNewModifierTypeOption(
const partyLuckValue = getPartyLuckValue(party);
const upgradeOdds = Math.floor(128 / ((partyLuckValue + 4) / 4));
while (modifierPool.hasOwnProperty(tier + upgradeCount + 1) && modifierPool[tier + upgradeCount + 1].length) {
if (!randSeedInt(upgradeOdds)) {
if (randSeedInt(upgradeOdds) < 4) {
upgradeCount++;
} else {
break;