From 34c2089bd622e7cdb742d88a9545ab9f011cc076 Mon Sep 17 00:00:00 2001 From: Amatsune Date: Mon, 24 Jun 2024 14:19:21 +0200 Subject: [PATCH] locales.ts correction (cherry picked from commit 07041a1167ae1b51527ea7368b0e362eac5fc78d) --- src/field/pokemon.ts | 2 +- src/interfaces/locales.ts | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/field/pokemon.ts b/src/field/pokemon.ts index b4c6598efb5..857f4a8b96b 100644 --- a/src/field/pokemon.ts +++ b/src/field/pokemon.ts @@ -331,7 +331,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container { this.name = this.species.getName(this.formIndex); return; } - this.name = getFusedSpeciesName(this.species.getName(this.formIndex), this.fusionSpecies.getName(this.fusionFormIndex)); + this.name = getFusedSpeciesName(this.species.getName(this.species), this.fusionSpecies.getName(Species)); if (this.battleInfo) { this.updateInfo(true); } diff --git a/src/interfaces/locales.ts b/src/interfaces/locales.ts index 8de3af8ee2e..115fc90f44f 100644 --- a/src/interfaces/locales.ts +++ b/src/interfaces/locales.ts @@ -10,11 +10,13 @@ export interface SimpleTranslationEntries { } export interface FusionTranslationEntries { - [key: string]: { - fusionPrefix: string; - fusionSuffix: string; - }; - } + [key: string]: FusionTranslationEntry, + } + +export interface FusionTranslationEntry { + fusionPrefix: string, + fusionSuffix: string, +} export interface MoveTranslationEntry { name: string,