Fix issue with level cap by using max integer

This commit is contained in:
Flashfyre committed 2024-02-29 16:41:14 -05:00
1 parent ff802d162b
commit 8d314b199f
3 files changed
+5 -3

No files matched your search

+1 -1
View File
@@ -378,7 +378,7 @@ export default class BattleInfo extends Phaser.GameObjects.Container {
const relLevelExp = getLevelRelExp(this.lastLevel + 1, pokemon.species.growthRate);
const levelExp = levelUp ? relLevelExp : pokemon.levelExp;
let ratio = relLevelExp ? levelExp / relLevelExp : 0;
if (this.lastLevel >= (this.scene as BattleScene).getMaxExpLevel()) {
if (this.lastLevel >= (this.scene as BattleScene).getMaxExpLevel(true)) {
if (levelUp)
ratio = 1;
else