Fix issue with level cap by using max integer
This commit is contained in:
1 parent
ff802d162b
commit
8d314b199f
3 files changed
+5
-3
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user