fix endless end dialogue (#4069)
It was only displaying `ending_endless` because the `PGM` prefix was still present
This commit is contained in:
parent
d58f035287
commit
d8304421cf
|
@ -49,7 +49,9 @@ export class GameOverPhase extends BattlePhase {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.victory && this.scene.gameMode.isEndless) {
|
if (this.victory && this.scene.gameMode.isEndless) {
|
||||||
this.scene.ui.showDialogue(i18next.t("PGMmiscDialogue:ending_endless"), i18next.t("PGMmiscDialogue:ending_name"), 0, () => this.handleGameOver());
|
const genderIndex = this.scene.gameData.gender ?? PlayerGender.UNSET;
|
||||||
|
const genderStr = PlayerGender[genderIndex].toLowerCase();
|
||||||
|
this.scene.ui.showDialogue(i18next.t("miscDialogue:ending_endless", { context: genderStr }), i18next.t("miscDialogue:ending_name"), 0, () => this.handleGameOver());
|
||||||
} else if (this.victory || !this.scene.enableRetries) {
|
} else if (this.victory || !this.scene.enableRetries) {
|
||||||
this.handleGameOver();
|
this.handleGameOver();
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue