Update party-exp-bar.ts localizable

This commit is contained in:
Lugiad 2025-02-15 15:38:19 +01:00 committed by GitHub
parent 8555ef7cb7
commit 01a129871a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -43,9 +43,9 @@ export default class PartyExpBar extends Phaser.GameObjects.Container {
// if we want to only display the level in the small frame
if (showOnlyLevelUp) {
if (newLevel > 200) { // if the level is greater than 200, we only display Lv. UP
this.expText.setText("Lv. UP");
this.expText.setText(i18next.t("battleScene:levelUp"));
} else { // otherwise we display Lv. Up and the new level
this.expText.setText(`Lv. UP: ${newLevel.toString()}`);
this.expText.setText(i18next.t("battleScene:levelUpWithLevel", { level: newLevel }));
}
} else {
// if we want to display the exp