mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-09 18:02:18 +02:00
En loc and fix message functions
This commit is contained in:
parent
0ed7024bab
commit
a1ea656082
@ -196,15 +196,15 @@ export class DisabledTag extends DisablingBattlerTag {
|
||||
|
||||
this.moveId = move.move;
|
||||
|
||||
pokemon.scene.queueMessage(getPokemonMessage(pokemon, `'s ${allMoves[this.moveId].name}\nwas disabled!`));
|
||||
pokemon.scene.queueMessage(i18next.t("battle:battlerTagsDisabledOnAdd", { pokemonNameWithAffix: getPokemonNameWithAffix(pokemon), moveName: this.getMoveName() }));
|
||||
}
|
||||
|
||||
protected override interruptedText(pokemon: Pokemon, move: Moves): string {
|
||||
return getPokemonMessage(pokemon, `'s ${allMoves[this.moveId].name}\nis disabled!`);
|
||||
return i18next.t("battle:disableInterruptedMove", { pokemonNameWithAffix: getPokemonNameWithAffix(pokemon), moveName: this.getMoveName() });
|
||||
}
|
||||
|
||||
protected override finishedText(pokemon: Pokemon): string {
|
||||
return i18next.t("battle:notDisabled", { pokemonName: getPokemonNameWithAffix(pokemon), moveName: allMoves[this.moveId].name });
|
||||
return i18next.t("battle:battlerTagsDisabledLapse", { pokemonNameWithAffix: getPokemonNameWithAffix(pokemon), moveName: this.getMoveName() });
|
||||
}
|
||||
}
|
||||
|
||||
@ -1901,7 +1901,3 @@ export function loadBattlerTag(source: BattlerTag | any): BattlerTag {
|
||||
tag.loadTag(source);
|
||||
return tag;
|
||||
}
|
||||
function getPokemonMessage(pokemon: Pokemon, arg1: string): string {
|
||||
throw new Error("Function not implemented.");
|
||||
}
|
||||
|
||||
|
@ -45,6 +45,7 @@ export const battle: SimpleTranslationEntries = {
|
||||
"moveNotImplemented": "{{moveName}} is not yet implemented and cannot be selected.",
|
||||
"moveNoPP": "There's no PP left for\nthis move!",
|
||||
"moveDisabled": "{{moveName}} is disabled!",
|
||||
"disableInterruptedMove": "{{pokemonNameWithAffix}}'s {{moveName}}\nis disabled!",
|
||||
"noPokeballForce": "An unseen force\nprevents using Poké Balls.",
|
||||
"noPokeballTrainer": "You can't catch\nanother trainer's Pokémon!",
|
||||
"noPokeballMulti": "You can only throw a Poké Ball\nwhen there is one Pokémon remaining!",
|
||||
@ -155,5 +156,7 @@ export const battle: SimpleTranslationEntries = {
|
||||
"battlerTagsSaltCuredLapse": "{{pokemonNameWithAffix}} is hurt by {{moveName}}!",
|
||||
"battlerTagsCursedOnAdd": "{{pokemonNameWithAffix}} cut its own HP and put a curse on the {{pokemonName}}!",
|
||||
"battlerTagsCursedLapse": "{{pokemonNameWithAffix}} is afflicted by the Curse!",
|
||||
"battlerTagsStockpilingOnAdd": "{{pokemonNameWithAffix}} stockpiled {{stockpiledCount}}!"
|
||||
"battlerTagsStockpilingOnAdd": "{{pokemonNameWithAffix}} stockpiled {{stockpiledCount}}!",
|
||||
"battlerTagsDisabledOnAdd": "{{pokemonNameWithAffix}}'s {{moveName}}\nwas disabled!",
|
||||
"battlerTagsDisabledLapse": "{{pokemonNameWithAffix}}'s {{moveName}}\nis no longer disabled.",
|
||||
} as const;
|
||||
|
Loading…
Reference in New Issue
Block a user