Reduce instead of Remove

This commit is contained in:
Benjamin Odom 2024-05-20 03:42:20 -05:00
parent 2f3bcf6abb
commit 4c2507bd7a
3 changed files with 5 additions and 3 deletions

View File

@ -1280,6 +1280,7 @@ const modifierPool: ModifierPool = {
new WeightedModifierType(modifierTypes.IV_SCANNER, 4),
new WeightedModifierType(modifierTypes.EXP_CHARM, 8),
new WeightedModifierType(modifierTypes.EXP_SHARE, 12),
new WeightedModifierType(modifierTypes.EXP_BALANCE, 4),
new WeightedModifierType(modifierTypes.TERA_ORB, (party: Pokemon[]) => Math.min(Math.max(Math.floor(party[0].scene.currentBattle.waveIndex / 50) * 2, 1), 4), 4),
new WeightedModifierType(modifierTypes.VOUCHER, (party: Pokemon[], rerollCount: integer) => !party[0].scene.gameMode.isDaily ? Math.max(3 - rerollCount, 0) : 0, 3),
].map(m => { m.setTier(ModifierTier.ULTRA); return m; }),

View File

@ -1423,7 +1423,7 @@ export class ExpBalanceModifier extends PersistentModifier {
}
getMaxStackCount(scene: BattleScene): integer {
return 5;
return 2;
}
}

View File

@ -868,8 +868,9 @@ export class GameData {
if (v === null)
v = [];
for (let md of v) {
if(md?.className !== 'ExpBalanceModifier') // Temporarily disable EXP Balance until it gets reworked
ret.push(new PersistentModifierData(md, player));
if(md?.className === 'ExpBalanceModifier') // Temporarily limit EXP Balance until it gets reworked
md.stackCount = Math.min(md.stackCount, 2);
ret.push(new PersistentModifierData(md, player));
}
return ret;
}