mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-05-02 22:44:48 +01:00
[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) {
|
} else if (upgradeCount === undefined && player) {
|
||||||
upgradeCount = 0;
|
upgradeCount = 0;
|
||||||
if (tier < ModifierTier.MASTER && allowLuckUpgrades) {
|
if (tier < ModifierTier.MASTER && allowLuckUpgrades) {
|
||||||
const partyShinyCount = party.filter(p => p.isShiny() && !p.isFainted()).length;
|
const partyLuckValue = getPartyLuckValue(party);
|
||||||
const upgradeOdds = Math.floor(32 / ((partyShinyCount + 2) / 2));
|
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…
x
Reference in New Issue
Block a user