[Misc] Eternatus Dialogue reflects # of Classic Sessions Played (#3387)

* Eternatus Dialogue now includes # of Classic sessions played

* Updated gendered messages

* Update src/locales/fr/dialogue.ts

Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>

* Update src/locales/fr/dialogue.ts

Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>

* Update src/phases.ts

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>

* Added comments

* Update src/phases.ts

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>

* Update src/phases.ts

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>

* strict-null changes

* Update phases.ts for null-ish results

* Fixed repeated 'for' in English boss dialogue

* Correcting Boss Dialogue

---------

Co-authored-by: Frutescens <info@laptop>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
This commit is contained in:
Mumble 2024-08-07 17:44:05 -07:00 committed by GitHub
parent 723040208d
commit a272d28cdf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
10 changed files with 26 additions and 17 deletions

View File

@ -2792,7 +2792,7 @@ export const PGFdialogue: DialogueTranslationEntries = PGMdialogue;
export const PGMbattleSpecDialogue: SimpleTranslationEntries = {
"encounter": `Es scheint, als wäre es wieder mal an der Zeit.\nDu weißt, warum du hierher kommen musst, oder?
$Dich hat es hierher gezogen, du warst bereits hier.\nUnzählige Male.
$Obwohl, vielleicht doch nicht unzählig.\nUm genau zu sein, dies ist der 5.643.853te Zyklus.
$Obwohl, vielleicht doch nicht unzählig.\nUm genau zu sein, dies ist der {{cycleCount}}te Zyklus.
$Du verlierst jeden Zyklus dein Gedächtnis. Trotzdem \nbleibt etwas, ein Teil deines ehemaligen Ichs, erhalten.
$Bis jetzt hast du es noch nicht vollbracht zu siegen, aber dieses Mal spüre ich eine andere Präsenz in dir.\n
$Du bist der Einzige hier, aber es kommt mir so vor als wäre da...jemand anderes.

View File

@ -2715,11 +2715,11 @@ export const PGFdialogue: DialogueTranslationEntries = PGMdialogue;
export const PGMbattleSpecDialogue: SimpleTranslationEntries = {
"encounter": `It appears the time has finally come once again.\nYou know why you have come here, do you not?
$You were drawn here, because you have been here before.\nCountless times.
$Though, perhaps it can be counted.\nTo be precise, this is in fact your 5,643,853rd cycle.
$Though, perhaps it can be counted.\nTo be precise, this is in fact your {{cycleCount}} cycle.
$Each cycle your mind reverts to its former state.\nEven so, somehow, remnants of your former selves remain.
$Until now you have yet to succeed, but I sense a different presence in you this time.\n
$You are the only one here, though it is as if there is another.
$Will you finally prove a formidable challenge to me?\nThe challenge I have longed for for millennia?
$Will you finally prove a formidable challenge to me?\nThe challenge I have longed after for millennia?
$We begin.`,
"firstStageWin": `I see. The presence I felt was indeed real.\nIt appears I no longer need to hold back.
$Do not disappoint me.`,

View File

@ -2710,11 +2710,11 @@ export const PGFdialogue: DialogueTranslationEntries = PGMdialogue;
export const PGMbattleSpecDialogue: SimpleTranslationEntries = {
"encounter": `It appears the time has finally come once again.\nYou know why you have come here, do you not?
$You were drawn here, because you have been here before.\nCountless times.
$Though, perhaps it can be counted.\nTo be precise, this is in fact your 5,643,853rd cycle.
$Though, perhaps it can be counted.\nTo be precise, this is in fact your {{cycleCount}} cycle.
$Each cycle your mind reverts to its former state.\nEven so, somehow, remnants of your former selves remain.
$Until now you have yet to succeed, but I sense a different presence in you this time.\n
$You are the only one here, though it is as if there is another.
$Will you finally prove a formidable challenge to me?\nThe challenge I have longed for for millennia?
$Will you finally prove a formidable challenge to me?\nThe challenge I have longed after for millennia?
$We begin.`,
"firstStageWin": `I see. The presence I felt was indeed real.\nIt appears I no longer need to hold back.
$Do not disappoint me.`,

View File

@ -5188,8 +5188,8 @@ export const PGFdialogue: DialogueTranslationEntries = {
// Dialogue of the endboss of the game when the player character is male (Or unset)
export const PGMbattleSpecDialogue: SimpleTranslationEntries = {
"encounter": `Une fois de plus, te revoilà.\nSais-tu que ce nest point là ta première venue ?
$Tu a é appelé ici parce que ty est déjà venu.\nUn nombre inimaginable de fois.
$Mais allons-y, faisons le décompte.\nTu en es très précisément à ton 5 643 853e cycle.
$Tu as é appelé ici parce que ty es déjà venu.\nUn nombre inimaginable de fois.
$Mais allons-y, faisons le décompte.\nTu en es très précisément à ton {{cycleCount}}e cycle.
$Chaque cycle réinitialise ton souvenir du précédent.\nMais étrangement, des bribes subsistent en toi.
$Jusquà maintenant, tu as toujours échoué. Mais je ressens quelque chose de différent cette fois-ci.\n
$Tu es la seule présence ici, bien que jai le sentiment den ressentir une autre.
@ -5203,8 +5203,8 @@ export const PGMbattleSpecDialogue: SimpleTranslationEntries = {
// Dialogue of the endboss of the game when the player character is female. For languages that do not have gendered pronouns, this can be set to PGMbattleSpecDialogue.
export const PGFbattleSpecDialogue: SimpleTranslationEntries = {
"encounter": `Une fois de plus, te revoilà.\nSais-tu que ce nest point là ta première venue ?
$Tu a é appelée ici parce que ty est déjà venue.\nUn nombre inimaginable de fois.
$Mais allons-y, faisons le décompte.\nTu en es très précisément à ton 5 643 853e cycle.
$Tu as é appelée ici parce que ty es déjà venue.\nUn nombre inimaginable de fois.
$Mais allons-y, faisons le décompte.\nTu en es très précisément à ton {{cycleCount}}e cycle.
$Chaque cycle réinitialise ton souvenir du précédent.\nMais étrangement, des bribes subsistent en toi.
$Jusquà maintenant, tu as toujours échoué. Mais je ressens quelque chose de différent cette fois-ci.\n
$Tu es la seule présence ici, bien que jai le sentiment den ressentir une autre.

View File

@ -2710,11 +2710,11 @@ export const PGFdialogue: DialogueTranslationEntries = PGMdialogue;
export const PGMbattleSpecDialogue: SimpleTranslationEntries = {
"encounter": `It appears the time has finally come once again.\nYou know why you have come here, do you not?
$You were drawn here, because you have been here before.\nCountless times.
$Though, perhaps it can be counted.\nTo be precise, this is in fact your 5,643,853rd cycle.
$Though, perhaps it can be counted.\nTo be precise, this is in fact your {{cycleCount}} cycle.
$Each cycle your mind reverts to its former state.\nEven so, somehow, remnants of your former selves remain.
$Until now you have yet to succeed, but I sense a different presence in you this time.\n
$You are the only one here, though it is as if there is another.
$Will you finally prove a formidable challenge to me?\nThe challenge I have longed for for millennia?
$Will you finally prove a formidable challenge to me?\nThe challenge I have longed after for millennia?
$We begin.`,
"firstStageWin": `I see. The presence I felt was indeed real.\nIt appears I no longer need to hold back.
$Do not disappoint me.`,

View File

@ -2707,7 +2707,7 @@ export const PGFdialogue: DialogueTranslationEntries = PGMdialogue;
export const PGMbattleSpecDialogue: SimpleTranslationEntries = {
"encounter": `드디어 때가 다시 도래했다.\n당도한 연유를 아는가?
$이미 .\n셀 .
$아니, .\n정확히 5,643,853.
$아니, .\n정확히 {{cycleCount}}.
$매 .\n하지만 , .
$실패만을 ,\n지금은 .\n
$홀로 ,

View File

@ -5002,7 +5002,7 @@ export const PGFdialogue: DialogueTranslationEntries = {
export const PGMbattleSpecDialogue: SimpleTranslationEntries = {
"encounter": `Parece que a hora finalmente chegou novamente.\nVocê sabe por que veio aqui, não sabe?
$Você foi atraído para , porque esteve aqui antes.\nInúmeras vezes.
$Embora talvez isso possa ser contado.\nPara ser preciso, este é de fato o seu 5.643.853º ciclo.
$Embora talvez isso possa ser contado.\nPara ser preciso, este é de fato o seu {{cycleCount}}º ciclo.
$A cada ciclo, sua mente retorna ao seu estado anterior.\nMesmo assim, de alguma forma, vestígios de seus antigos "eus" permanecem.
$Até agora, você ainda não conseguiu, mas sinto uma presença diferente em você desta vez.\n
$Você é o único aqui, embora pareça haver... outro.
@ -5017,7 +5017,7 @@ export const PGMbattleSpecDialogue: SimpleTranslationEntries = {
export const PGFbattleSpecDialogue: SimpleTranslationEntries = {
"encounter": `Parece que a hora finalmente chegou novamente.\nVocê sabe por que veio aqui, não sabe?
$Você foi atraída para , porque esteve aqui antes.\nInúmeras vezes.
$Embora talvez isso possa ser contado.\nPara ser preciso, este é de fato o seu 5.643.853º ciclo.
$Embora talvez isso possa ser contado.\nPara ser preciso, este é de fato o seu {{cycleCount}}º ciclo.
$A cada ciclo, sua mente retorna ao seu estado anterior.\nMesmo assim, de alguma forma, vestígios de seus antigos "eus" permanecem.
$Até agora, você ainda não conseguiu, mas sinto uma presença diferente em você desta vez.\n
$Você é a única aqui, embora pareça haver... outro.

View File

@ -2530,7 +2530,7 @@ export const PGFdialogue: DialogueTranslationEntries = PGMdialogue;
export const PGMbattleSpecDialogue: SimpleTranslationEntries = {
"encounter": `看来终于又到了那个时候。\n你知道自己为何会来到这里不是吗
$你被吸引到这里\n无数次
$尽管\n准确地说5,643,853
$尽管\n准确地说{{cycleCount}}
$每一次循环\n即便如此
$直到现在\n但我感觉这次你身上有一种异样的气息
$你是这里唯一的人

View File

@ -2529,7 +2529,7 @@ export const PGFdialogue: DialogueTranslationEntries = PGMdialogue;
export const PGMbattleSpecDialogue: SimpleTranslationEntries = {
"encounter": `看來終於又到了那個時候。\n你知道自己為何會來到這裡不是嗎
$你被吸引到這裡\n無數次
$儘管\n準確地說5,643,853
$儘管\n準確地說{{cycleCount}}
$每一次循環\n即便如此
$直到現在
$你是這裡唯一的人

View File

@ -1131,7 +1131,16 @@ export class EncounterPhase extends BattlePhase {
case BattleSpec.FINAL_BOSS:
const enemy = this.scene.getEnemyPokemon();
this.scene.ui.showText(this.getEncounterMessage(), null, () => {
this.scene.ui.showDialogue(battleSpecDialogue[BattleSpec.FINAL_BOSS].encounter, enemy?.species.name, null, () => {
const count = 5643853 + this.scene.gameData.gameStats.classicSessionsPlayed;
//The two lines below check if English ordinals (1st, 2nd, 3rd, Xth) are used and determine which one to use.
//Otherwise, it defaults to an empty string.
//As of 08-07-24: Spanish and Italian default to the English translations
const ordinalUse = ["en", "es", "it"];
const currentLanguage = i18next.resolvedLanguage ?? "en";
const ordinalIndex = (ordinalUse.includes(currentLanguage)) ? ["st", "nd", "rd"][((count + 90) % 100 - 10) % 10 - 1] ?? "th" : "";
const cycleCount = count.toLocaleString() + ordinalIndex;
const encounterDialogue = i18next.t(`${(this.scene.gameData.gender === PlayerGender.FEMALE) ? "PGF" : "PGM"}battleSpecDialogue:encounter`, {cycleCount: cycleCount});
this.scene.ui.showDialogue(encounterDialogue, enemy?.species.name, null, () => {
this.doEncounterCommon(false);
});
}, 1500, true);