only Lv. UP if level is greated than 200

This commit is contained in:
Greenlamp 2024-05-05 15:04:09 +02:00
parent 7060a5a0d2
commit d149e59e8f

View File

@ -40,7 +40,11 @@ export default class PartyExpBar extends Phaser.GameObjects.Container {
this.add(this.pokemonIcon);
if (showOnlyLevelUp) {
this.expText.setText(`Lv. UP : ${newLevel.toString()}`);
if (newLevel > 200) {
this.expText.setText('Lv. UP');
} else {
this.expText.setText(`Lv. UP : ${newLevel.toString()}`);
}
} else {
this.expText.setText(`+${expValue.toString()}`);
}