mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-04 15:32:18 +02:00
Applied reviewwww
This commit is contained in:
parent
5b6f2c9c4a
commit
838e9a738a
@ -262,18 +262,21 @@ export class SwitchSummonPhase extends SummonPhase {
|
|||||||
* @returns The text to display.
|
* @returns The text to display.
|
||||||
*/
|
*/
|
||||||
private getSendOutText(switchedInPokemon: Pokemon): string {
|
private getSendOutText(switchedInPokemon: Pokemon): string {
|
||||||
return this.switchType === SwitchType.FORCE_SWITCH
|
if (this.switchType === SwitchType.FORCE_SWITCH) {
|
||||||
? // "XYZ was forced out!"
|
// "XYZ was dragged out!"
|
||||||
i18next.t("battle:pokemonDraggedOut", {
|
return i18next.t("battle:pokemonDraggedOut", {
|
||||||
pokemonName: getPokemonNameWithAffix(switchedInPokemon),
|
pokemonName: getPokemonNameWithAffix(switchedInPokemon),
|
||||||
})
|
});
|
||||||
: // "Go! XYZ!"
|
}
|
||||||
this.player
|
if (this.player) {
|
||||||
? i18next.t("battle:playerGo", {
|
// "Go! XYZ!"
|
||||||
|
return i18next.t("battle:playerGo", {
|
||||||
pokemonName: getPokemonNameWithAffix(switchedInPokemon),
|
pokemonName: getPokemonNameWithAffix(switchedInPokemon),
|
||||||
})
|
});
|
||||||
: // "Trainer sent out XYZ!"
|
}
|
||||||
i18next.t("battle:trainerGo", {
|
|
||||||
|
// "Trainer sent out XYZ!"
|
||||||
|
return i18next.t("battle:trainerGo", {
|
||||||
trainerName: globalScene.currentBattle.trainer?.getName(
|
trainerName: globalScene.currentBattle.trainer?.getName(
|
||||||
!(this.fieldIndex % 2) ? TrainerSlot.TRAINER : TrainerSlot.TRAINER_PARTNER,
|
!(this.fieldIndex % 2) ? TrainerSlot.TRAINER : TrainerSlot.TRAINER_PARTNER,
|
||||||
),
|
),
|
||||||
|
Loading…
Reference in New Issue
Block a user