mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-21 15:52:18 +02:00
Correctly check if locked upgrade odds is less than 4, rather than if false.
This commit is contained in:
parent
552c603da9
commit
5e4555fa96
@ -3569,7 +3569,7 @@ function getNewModifierTypeOption(
|
|||||||
const partyLuckValue = getPartyLuckValue(party);
|
const partyLuckValue = getPartyLuckValue(party);
|
||||||
const upgradeOdds = Math.floor(128 / ((partyLuckValue + 4) / 4));
|
const upgradeOdds = Math.floor(128 / ((partyLuckValue + 4) / 4));
|
||||||
while (modifierPool.hasOwnProperty(tier + upgradeCount + 1) && modifierPool[tier + upgradeCount + 1].length) {
|
while (modifierPool.hasOwnProperty(tier + upgradeCount + 1) && modifierPool[tier + upgradeCount + 1].length) {
|
||||||
if (!randSeedInt(upgradeOdds)) {
|
if (randSeedInt(upgradeOdds) < 4) {
|
||||||
upgradeCount++;
|
upgradeCount++;
|
||||||
} else {
|
} else {
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user