only Lv. UP if level is greated than 200
parent
7060a5a0d2
commit
d149e59e8f
|
|
@ -40,7 +40,11 @@ export default class PartyExpBar extends Phaser.GameObjects.Container {
|
||||||
this.add(this.pokemonIcon);
|
this.add(this.pokemonIcon);
|
||||||
|
|
||||||
if (showOnlyLevelUp) {
|
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 {
|
} else {
|
||||||
this.expText.setText(`+${expValue.toString()}`);
|
this.expText.setText(`+${expValue.toString()}`);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue