mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-15 04:42:19 +02:00
Merge branch 'main' into workersFix
This commit is contained in:
commit
81de04d664
@ -399,6 +399,9 @@ export class TrainerConfig {
|
|||||||
}
|
}
|
||||||
|
|
||||||
initForGymLeader(signatureSpecies: (Species | Species[])[], ...specialtyTypes: Type[]): TrainerConfig {
|
initForGymLeader(signatureSpecies: (Species | Species[])[], ...specialtyTypes: Type[]): TrainerConfig {
|
||||||
|
if (!getIsInitialized()) {
|
||||||
|
initI18n();
|
||||||
|
}
|
||||||
|
|
||||||
this.setPartyTemplateFunc(getGymLeaderPartyTemplate);
|
this.setPartyTemplateFunc(getGymLeaderPartyTemplate);
|
||||||
signatureSpecies.forEach((speciesPool, s) => {
|
signatureSpecies.forEach((speciesPool, s) => {
|
||||||
@ -431,7 +434,9 @@ export class TrainerConfig {
|
|||||||
}
|
}
|
||||||
|
|
||||||
initForEliteFour(signatureSpecies: (Species | Species[])[], ...specialtyTypes: Type[]): TrainerConfig {
|
initForEliteFour(signatureSpecies: (Species | Species[])[], ...specialtyTypes: Type[]): TrainerConfig {
|
||||||
|
if (!getIsInitialized()) {
|
||||||
|
initI18n();
|
||||||
|
}
|
||||||
|
|
||||||
this.setPartyTemplates(trainerPartyTemplates.ELITE_FOUR);
|
this.setPartyTemplates(trainerPartyTemplates.ELITE_FOUR);
|
||||||
signatureSpecies.forEach((speciesPool, s) => {
|
signatureSpecies.forEach((speciesPool, s) => {
|
||||||
@ -459,7 +464,9 @@ export class TrainerConfig {
|
|||||||
}
|
}
|
||||||
|
|
||||||
initForChampion(signatureSpecies: (Species | Species[])[]): TrainerConfig {
|
initForChampion(signatureSpecies: (Species | Species[])[]): TrainerConfig {
|
||||||
|
if (!getIsInitialized()) {
|
||||||
|
initI18n();
|
||||||
|
}
|
||||||
this.setPartyTemplates(trainerPartyTemplates.CHAMPION);
|
this.setPartyTemplates(trainerPartyTemplates.CHAMPION);
|
||||||
signatureSpecies.forEach((speciesPool, s) => {
|
signatureSpecies.forEach((speciesPool, s) => {
|
||||||
if (!Array.isArray(speciesPool))
|
if (!Array.isArray(speciesPool))
|
||||||
|
@ -3,6 +3,7 @@ import { SimpleTranslationEntries } from "#app/plugins/i18n";
|
|||||||
export const battle: SimpleTranslationEntries = {
|
export const battle: SimpleTranslationEntries = {
|
||||||
"bossAppeared": "{{bossName}} erscheint.",
|
"bossAppeared": "{{bossName}} erscheint.",
|
||||||
"trainerAppeared": "{{trainerName}}\nmöchte kämpfen!",
|
"trainerAppeared": "{{trainerName}}\nmöchte kämpfen!",
|
||||||
|
"trainerAppearedDouble": "{{trainerName}}\nmöchten kämpfen!",
|
||||||
"singleWildAppeared": "Ein wildes {{pokemonName}} erscheint!",
|
"singleWildAppeared": "Ein wildes {{pokemonName}} erscheint!",
|
||||||
"multiWildAppeared": "Ein wildes {{pokemonName1}}\nund {{pokemonName2}} erscheinen!",
|
"multiWildAppeared": "Ein wildes {{pokemonName1}}\nund {{pokemonName2}} erscheinen!",
|
||||||
"playerComeBack": "Komm zurück, {{pokemonName}}!",
|
"playerComeBack": "Komm zurück, {{pokemonName}}!",
|
||||||
|
@ -3,6 +3,7 @@ import { SimpleTranslationEntries } from "#app/plugins/i18n";
|
|||||||
export const battle: SimpleTranslationEntries = {
|
export const battle: SimpleTranslationEntries = {
|
||||||
"bossAppeared": "{{bossName}} appeared.",
|
"bossAppeared": "{{bossName}} appeared.",
|
||||||
"trainerAppeared": "{{trainerName}}\nwould like to battle!",
|
"trainerAppeared": "{{trainerName}}\nwould like to battle!",
|
||||||
|
"trainerAppearedDouble": "{{trainerName}}\nwould like to battle!",
|
||||||
"singleWildAppeared": "A wild {{pokemonName}} appeared!",
|
"singleWildAppeared": "A wild {{pokemonName}} appeared!",
|
||||||
"multiWildAppeared": "A wild {{pokemonName1}}\nand {{pokemonName2}} appeared!",
|
"multiWildAppeared": "A wild {{pokemonName1}}\nand {{pokemonName2}} appeared!",
|
||||||
"playerComeBack": "Come back, {{pokemonName}}!",
|
"playerComeBack": "Come back, {{pokemonName}}!",
|
||||||
|
@ -3,6 +3,7 @@ import { SimpleTranslationEntries } from "#app/plugins/i18n";
|
|||||||
export const battle: SimpleTranslationEntries = {
|
export const battle: SimpleTranslationEntries = {
|
||||||
"bossAppeared": "¡{{bossName}} te corta el paso!",
|
"bossAppeared": "¡{{bossName}} te corta el paso!",
|
||||||
"trainerAppeared": "¡{{trainerName}}\nte desafía!",
|
"trainerAppeared": "¡{{trainerName}}\nte desafía!",
|
||||||
|
"trainerAppearedDouble": "{{trainerName}}\nwould like to battle!",
|
||||||
"singleWildAppeared": "¡Un {{pokemonName}} salvaje te corta el paso!",
|
"singleWildAppeared": "¡Un {{pokemonName}} salvaje te corta el paso!",
|
||||||
"multiWildAppeared": "¡Un {{pokemonName1}} y un {{pokemonName2}} salvajes\nte cortan el paso!",
|
"multiWildAppeared": "¡Un {{pokemonName1}} y un {{pokemonName2}} salvajes\nte cortan el paso!",
|
||||||
"playerComeBack": "¡{{pokemonName}}, ven aquí!",
|
"playerComeBack": "¡{{pokemonName}}, ven aquí!",
|
||||||
|
@ -3,6 +3,7 @@ import { SimpleTranslationEntries } from "#app/plugins/i18n";
|
|||||||
export const battle: SimpleTranslationEntries = {
|
export const battle: SimpleTranslationEntries = {
|
||||||
"bossAppeared": "Un {{bossName}} apparaît.",
|
"bossAppeared": "Un {{bossName}} apparaît.",
|
||||||
"trainerAppeared": "Un combat est lancé\npar {{trainerName}} !",
|
"trainerAppeared": "Un combat est lancé\npar {{trainerName}} !",
|
||||||
|
"trainerAppearedDouble": "{{trainerName}}\nwould like to battle!",
|
||||||
"singleWildAppeared": "Un {{pokemonName}} sauvage apparaît !",
|
"singleWildAppeared": "Un {{pokemonName}} sauvage apparaît !",
|
||||||
"multiWildAppeared": "Un {{pokemonName1}} et un {{pokemonName2}}\nsauvages apparaissent !",
|
"multiWildAppeared": "Un {{pokemonName1}} et un {{pokemonName2}}\nsauvages apparaissent !",
|
||||||
"playerComeBack": "{{pokemonName}}, on change !\nReviens !",
|
"playerComeBack": "{{pokemonName}}, on change !\nReviens !",
|
||||||
|
@ -16,13 +16,13 @@ export const titles: SimpleTranslationEntries = {
|
|||||||
export const trainerClasses: SimpleTranslationEntries = {
|
export const trainerClasses: SimpleTranslationEntries = {
|
||||||
"ace_trainer": "Topdresseur",
|
"ace_trainer": "Topdresseur",
|
||||||
"ace_trainer_female": "Topdresseuse",
|
"ace_trainer_female": "Topdresseuse",
|
||||||
"ace_duo": "Ace Duo",
|
"ace_duo": "Topdresseurs",
|
||||||
"artist": "Artiste",
|
"artist": "Artiste",
|
||||||
"artist_female": "Artiste",
|
"artist_female": "Artiste",
|
||||||
"backers": "Pompom Girls",
|
"backers": "Pompom Girls",
|
||||||
"backpacker": "Randonneur",
|
"backpacker": "Randonneur",
|
||||||
"backpacker_female": "Randonneuse",
|
"backpacker_female": "Randonneuse",
|
||||||
"backpackers": "Backpackers",
|
"backpackers": "Randonneurs",
|
||||||
"baker": "Boulangère",
|
"baker": "Boulangère",
|
||||||
"battle_girl": "Combattante",
|
"battle_girl": "Combattante",
|
||||||
"beauty": "Canon",
|
"beauty": "Canon",
|
||||||
@ -31,14 +31,14 @@ export const trainerClasses: SimpleTranslationEntries = {
|
|||||||
"black_belt": "Karatéka",
|
"black_belt": "Karatéka",
|
||||||
"breeder": "Éleveur",
|
"breeder": "Éleveur",
|
||||||
"breeder_female": "Éleveuse",
|
"breeder_female": "Éleveuse",
|
||||||
"breeders": "Breeders",
|
"breeders": "Éleveurs",
|
||||||
"clerk": "Employé",
|
"clerk": "Employé",
|
||||||
"clerk_female": "Employée",
|
"clerk_female": "Employée",
|
||||||
"colleagues": "Colleagues",
|
"colleagues": "Collègues de Bureau",
|
||||||
"crush_kin": "Crush Kin",
|
"crush_kin": "Crush Kin",
|
||||||
"cyclist": "Cycliste",
|
"cyclist": "Cycliste",
|
||||||
"cyclist_female": "Cycliste",
|
"cyclist_female": "Cycliste",
|
||||||
"cyclists": "Cyclists",
|
"cyclists": "Cyclistes",
|
||||||
"dancer": "Danseur",
|
"dancer": "Danseur",
|
||||||
"dancer_female": "Danseuse",
|
"dancer_female": "Danseuse",
|
||||||
"depot_agent": "Cheminot",
|
"depot_agent": "Cheminot",
|
||||||
@ -61,46 +61,46 @@ export const trainerClasses: SimpleTranslationEntries = {
|
|||||||
"maid": "Gouvernante",
|
"maid": "Gouvernante",
|
||||||
"madame": "Mondaine",
|
"madame": "Mondaine",
|
||||||
"musican": "Musicien",
|
"musican": "Musicien",
|
||||||
"medical_team": "Medical Team",
|
"medical_team": "Médecins",
|
||||||
"hex_maniac": "Hex Maniac",
|
"hex_maniac": "Mystimaniac",
|
||||||
"nurse": " Infirmière",
|
"nurse": "Infirmière",
|
||||||
"nursery_aide": "Institutrice",
|
"nursery_aide": "Institutrice",
|
||||||
"officer": "Policier",
|
"officer": "Policier",
|
||||||
"parasol_lady": "Sœur Parasol",
|
"parasol_lady": "Sœur Parasol",
|
||||||
"pilot": "Pilote",
|
"pilot": "Pilote",
|
||||||
"poké_fan": "Poké Fan",
|
"poké_fan": "Poké Fan",
|
||||||
"poké_fan_family": "Poké Fan Family",
|
"poké_fan_family": "Couple de Pokéfans",
|
||||||
"preschooler": "Petit",
|
"preschooler": "Petit",
|
||||||
"preschooler_female": "Petite",
|
"preschooler_female": "Petite",
|
||||||
"preschoolers": "Preschoolers",
|
"preschoolers": "Petits",
|
||||||
"psychic": "Kinésiste",
|
"psychic": "Kinésiste",
|
||||||
"psychic_female": "Kinésiste",
|
"psychic_female": "Kinésiste",
|
||||||
"psychics": "Psychics",
|
"psychics": "Kinésistes",
|
||||||
"pokémon_ranger": "Pokémon Ranger",
|
"pokémon_ranger": "Pokémon Ranger",
|
||||||
"pokémon_rangers": "Pokémon Ranger",
|
"pokémon_rangers": "Pokémon Rangers",
|
||||||
"ranger": "Ranger",
|
"ranger": "Ranger",
|
||||||
"restaurant_staff": "Restaurant Staff",
|
"restaurant_staff": "Serveurs",
|
||||||
"rich_boy": "Rich Boy",
|
"rich_boy": "Richard",
|
||||||
"rich_couple": "Rich Couple",
|
"rich_couple": "Couple de Bourgeois",
|
||||||
"rich_kids": "Rich Kids",
|
"rich_kids": "Richards",
|
||||||
"roughneck": "Loubard",
|
"roughneck": "Loubard",
|
||||||
"scientist": "Scientifique",
|
"scientist": "Scientifique",
|
||||||
"scientist_female": "Scientifique",
|
"scientist_female": "Scientifique",
|
||||||
"scientists": "Scientists",
|
"scientists": "Scientifiques",
|
||||||
"smasher": "Tenniswoman",
|
"smasher": "Tenniswoman",
|
||||||
"snow_worker": "Ouvrier Alpin",
|
"snow_worker": "Ouvrier Alpin",
|
||||||
"snow_worker_female": "Ouvrière Alpine",
|
"snow_worker_female": "Ouvrière Alpine",
|
||||||
"striker": "Footballeur",
|
"striker": "Footballeur",
|
||||||
"school_kid": "Élève",
|
"school_kid": "Élève",
|
||||||
"school_kid_female": "Élève",
|
"school_kid_female": "Élève",
|
||||||
"school_kids": "School Kids",
|
"school_kids": "Élèves",
|
||||||
"swimmer": "Nageur",
|
"swimmer": "Nageur",
|
||||||
"swimmer_female": "Nageuse",
|
"swimmer_female": "Nageuse",
|
||||||
"swimmers": "Swimmers",
|
"swimmers": "Nageurs",
|
||||||
"twins": "Jumelles",
|
"twins": "Jumelles",
|
||||||
"veteran": "Vénérable",
|
"veteran": "Vénérable",
|
||||||
"veteran_female": "Vénérable",
|
"veteran_female": "Vénérable",
|
||||||
"veteran_duo": "Veteran Duo",
|
"veteran_duo": "Vénérables",
|
||||||
"waiter": "Serveur",
|
"waiter": "Serveur",
|
||||||
"waitress": "Serveuse",
|
"waitress": "Serveuse",
|
||||||
"worker": "Ouvrier",
|
"worker": "Ouvrier",
|
||||||
|
@ -3,6 +3,7 @@ import { SimpleTranslationEntries } from "#app/plugins/i18n";
|
|||||||
export const battle: SimpleTranslationEntries = {
|
export const battle: SimpleTranslationEntries = {
|
||||||
"bossAppeared": "{{bossName}} è apparso.",
|
"bossAppeared": "{{bossName}} è apparso.",
|
||||||
"trainerAppeared": "{{trainerName}}\nvuole combattere!",
|
"trainerAppeared": "{{trainerName}}\nvuole combattere!",
|
||||||
|
"trainerAppearedDouble": "{{trainerName}}\nwould like to battle!",
|
||||||
"singleWildAppeared": "Appare {{pokemonName}} selvatico!",
|
"singleWildAppeared": "Appare {{pokemonName}} selvatico!",
|
||||||
"multiWildAppeared": "Appaiono {{pokemonName1}}\ne {{pokemonName2}} salvatici!",
|
"multiWildAppeared": "Appaiono {{pokemonName1}}\ne {{pokemonName2}} salvatici!",
|
||||||
"playerComeBack": "Rientra, {{pokemonName}}!",
|
"playerComeBack": "Rientra, {{pokemonName}}!",
|
||||||
|
@ -3,6 +3,7 @@ import { SimpleTranslationEntries } from "#app/plugins/i18n";
|
|||||||
export const battle: SimpleTranslationEntries = {
|
export const battle: SimpleTranslationEntries = {
|
||||||
"bossAppeared": "{{bossName}} apareceu.",
|
"bossAppeared": "{{bossName}} apareceu.",
|
||||||
"trainerAppeared": "{{trainerName}}\nquer batalhar!",
|
"trainerAppeared": "{{trainerName}}\nquer batalhar!",
|
||||||
|
"trainerAppearedDouble": "{{trainerName}}\nwould like to battle!",
|
||||||
"singleWildAppeared": "Um {{pokemonName}} selvagem apareceu!",
|
"singleWildAppeared": "Um {{pokemonName}} selvagem apareceu!",
|
||||||
"multiWildAppeared": "Um {{pokemonName1}} e um {{pokemonName2}} selvagens\napareceram!",
|
"multiWildAppeared": "Um {{pokemonName1}} e um {{pokemonName2}} selvagens\napareceram!",
|
||||||
"playerComeBack": "{{pokemonName}}, retorne!",
|
"playerComeBack": "{{pokemonName}}, retorne!",
|
||||||
|
@ -3,6 +3,7 @@ import { SimpleTranslationEntries } from "#app/plugins/i18n";
|
|||||||
export const battle: SimpleTranslationEntries = {
|
export const battle: SimpleTranslationEntries = {
|
||||||
"bossAppeared": "{{bossName}} 出现了。",
|
"bossAppeared": "{{bossName}} 出现了。",
|
||||||
"trainerAppeared": "{{trainerName}}\n想要和你对战!",
|
"trainerAppeared": "{{trainerName}}\n想要和你对战!",
|
||||||
|
"trainerAppearedDouble": "{{trainerName}}\nwould like to battle!",
|
||||||
"singleWildAppeared": "一只野生 {{pokemonName}} 出现了。!",
|
"singleWildAppeared": "一只野生 {{pokemonName}} 出现了。!",
|
||||||
"multiWildAppeared": "野生的 {{pokemonName1}}\n和 {{pokemonName2}} 出现了。!",
|
"multiWildAppeared": "野生的 {{pokemonName1}}\n和 {{pokemonName2}} 出现了。!",
|
||||||
"playerComeBack": "回来吧, {{pokemonName}}!",
|
"playerComeBack": "回来吧, {{pokemonName}}!",
|
||||||
|
@ -841,8 +841,15 @@ export class EncounterPhase extends BattlePhase {
|
|||||||
if (this.scene.currentBattle.battleSpec === BattleSpec.FINAL_BOSS)
|
if (this.scene.currentBattle.battleSpec === BattleSpec.FINAL_BOSS)
|
||||||
return i18next.t('battle:bossAppeared', {bossName: enemyField[0].name});
|
return i18next.t('battle:bossAppeared', {bossName: enemyField[0].name});
|
||||||
|
|
||||||
if (this.scene.currentBattle.battleType === BattleType.TRAINER)
|
if (this.scene.currentBattle.battleType === BattleType.TRAINER) {
|
||||||
return i18next.t('battle:trainerAppeared', {trainerName: this.scene.currentBattle.trainer.getName(TrainerSlot.NONE, true)});
|
if (this.scene.currentBattle.double) {
|
||||||
|
return i18next.t('battle:trainerAppearedDouble', {trainerName: this.scene.currentBattle.trainer.getName(TrainerSlot.NONE, true)});
|
||||||
|
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
return i18next.t('battle:trainerAppeared', {trainerName: this.scene.currentBattle.trainer.getName(TrainerSlot.NONE, true)});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return enemyField.length === 1
|
return enemyField.length === 1
|
||||||
? i18next.t('battle:singleWildAppeared', {pokemonName: enemyField[0].name})
|
? i18next.t('battle:singleWildAppeared', {pokemonName: enemyField[0].name})
|
||||||
|
Loading…
Reference in New Issue
Block a user