Reduce EXP Balance (#1128)

* Set max to 4
This commit is contained in:
Benjamin Odom 2024-05-20 04:06:20 -05:00 committed by GitHub
parent 60cbd636e6
commit f93f2bfca6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View File

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

View File

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