Fix the issue where ‘TerastallizeModifierType’ uses the wrong translation key. (#942)

This commit is contained in:
FanHua 2024-05-16 13:00:47 +08:00 committed by GitHub
parent b5ae8330a2
commit 5fa57d42a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -898,11 +898,11 @@ export class TerastallizeModifierType extends PokemonHeldItemModifierType implem
} }
get name(): string { get name(): string {
return i18next.t(`modifierType:ModifierType.TerastallizeModifierType.name`, { teraType: i18next.t(`modifierType:FormChangeItem.${Type[this.teraType]}`) }); return i18next.t(`modifierType:ModifierType.TerastallizeModifierType.name`, { teraType: i18next.t(`modifierType:TeraType.${Type[this.teraType]}`) });
} }
getDescription(scene: BattleScene): string { getDescription(scene: BattleScene): string {
return i18next.t(`modifierType:ModifierType.TerastallizeModifierType.description`, { teraType: i18next.t(`modifierType:FormChangeItem.${Type[this.teraType]}`) }); return i18next.t(`modifierType:ModifierType.TerastallizeModifierType.description`, { teraType: i18next.t(`modifierType:TeraType.${Type[this.teraType]}`) });
} }
getPregenArgs(): any[] { getPregenArgs(): any[] {