mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-07 17:02:16 +02:00
only Lv. UP if level is greated than 200
This commit is contained in:
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) {
|
||||||
|
if (newLevel > 200) {
|
||||||
|
this.expText.setText('Lv. UP');
|
||||||
|
} else {
|
||||||
this.expText.setText(`Lv. UP : ${newLevel.toString()}`);
|
this.expText.setText(`Lv. UP : ${newLevel.toString()}`);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
this.expText.setText(`+${expValue.toString()}`);
|
this.expText.setText(`+${expValue.toString()}`);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user