only Lv. UP if level is greated than 200

pull/488/head
Greenlamp 2024-05-05 15:04:09 +02:00
parent 7060a5a0d2
commit d149e59e8f
1 changed files with 5 additions and 1 deletions

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()}`);
}