[Bug] [Balance] Fix Locked Reroll not using Luck Score (#5502)
This commit is contained in:
parent
f3f43f4a44
commit
85c39754c4
|
@ -3566,10 +3566,10 @@ function getNewModifierTypeOption(
|
|||
} else if (upgradeCount === undefined && player) {
|
||||
upgradeCount = 0;
|
||||
if (tier < ModifierTier.MASTER && allowLuckUpgrades) {
|
||||
const partyShinyCount = party.filter(p => p.isShiny() && !p.isFainted()).length;
|
||||
const upgradeOdds = Math.floor(32 / ((partyShinyCount + 2) / 2));
|
||||
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;
|
||||
|
|
Loading…
Reference in New Issue