Commit 85c3975 1 parent f3f43f4 commit 85c3975 Copy full SHA for 85c3975
File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3566,10 +3566,10 @@ function getNewModifierTypeOption(
3566
3566
} else if ( upgradeCount === undefined && player ) {
3567
3567
upgradeCount = 0 ;
3568
3568
if ( tier < ModifierTier . MASTER && allowLuckUpgrades ) {
3569
- const partyShinyCount = party . filter ( p => p . isShiny ( ) && ! p . isFainted ( ) ) . length ;
3570
- const upgradeOdds = Math . floor ( 32 / ( ( partyShinyCount + 2 ) / 2 ) ) ;
3569
+ const partyLuckValue = getPartyLuckValue ( party ) ;
3570
+ const upgradeOdds = Math . floor ( 128 / ( ( partyLuckValue + 4 ) / 4 ) ) ;
3571
3571
while ( modifierPool . hasOwnProperty ( tier + upgradeCount + 1 ) && modifierPool [ tier + upgradeCount + 1 ] . length ) {
3572
- if ( ! randSeedInt ( upgradeOdds ) ) {
3572
+ if ( randSeedInt ( upgradeOdds ) < 4 ) {
3573
3573
upgradeCount ++ ;
3574
3574
} else {
3575
3575
break ;
You can’t perform that action at this time.
0 commit comments