mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-10 18:32:16 +02:00
Merge branch 'IndigoDiskLearnsets' of https://github.com/bennybroseph/pokerogue into IndigoDiskLearnsets
This commit is contained in:
commit
138c0b76bb
@ -59,7 +59,7 @@ import { SceneBase } from './scene-base';
|
|||||||
import CandyBar from './ui/candy-bar';
|
import CandyBar from './ui/candy-bar';
|
||||||
import { Variant, variantData } from './data/variant';
|
import { Variant, variantData } from './data/variant';
|
||||||
import { Localizable } from './plugins/i18n';
|
import { Localizable } from './plugins/i18n';
|
||||||
import { STARTING_WAVE_OVERRIDE, OPP_SPECIES_OVERRIDE, SEED_OVERRIDE, STARTING_BIOME_OVERRIDE } from './overrides';
|
import { STARTING_WAVE_OVERRIDE, OPP_SPECIES_OVERRIDE, SEED_OVERRIDE, STARTING_BIOME_OVERRIDE, DOUBLE_BATTLE_OVERRIDE } from './overrides';
|
||||||
import {InputsController} from "./inputs-controller";
|
import {InputsController} from "./inputs-controller";
|
||||||
import {UiInputs} from "./ui-inputs";
|
import {UiInputs} from "./ui-inputs";
|
||||||
|
|
||||||
@ -842,6 +842,9 @@ export default class BattleScene extends SceneBase {
|
|||||||
} else if (!battleConfig)
|
} else if (!battleConfig)
|
||||||
newDouble = !!double;
|
newDouble = !!double;
|
||||||
|
|
||||||
|
if (DOUBLE_BATTLE_OVERRIDE)
|
||||||
|
newDouble = true;
|
||||||
|
|
||||||
const lastBattle = this.currentBattle;
|
const lastBattle = this.currentBattle;
|
||||||
|
|
||||||
if (lastBattle?.double && !newDouble)
|
if (lastBattle?.double && !newDouble)
|
||||||
|
@ -43,7 +43,7 @@ import { Nature, getNatureStatMultiplier } from '../data/nature';
|
|||||||
import { SpeciesFormChange, SpeciesFormChangeActiveTrigger, SpeciesFormChangeMoveLearnedTrigger, SpeciesFormChangePostMoveTrigger, SpeciesFormChangeStatusEffectTrigger } from '../data/pokemon-forms';
|
import { SpeciesFormChange, SpeciesFormChangeActiveTrigger, SpeciesFormChangeMoveLearnedTrigger, SpeciesFormChangePostMoveTrigger, SpeciesFormChangeStatusEffectTrigger } from '../data/pokemon-forms';
|
||||||
import { TerrainType } from '../data/terrain';
|
import { TerrainType } from '../data/terrain';
|
||||||
import { TrainerSlot } from '../data/trainer-config';
|
import { TrainerSlot } from '../data/trainer-config';
|
||||||
import { ABILITY_OVERRIDE, MOVE_OVERRIDE, MOVE_OVERRIDE_2, OPP_ABILITY_OVERRIDE, OPP_MOVE_OVERRIDE, OPP_MOVE_OVERRIDE_2, OPP_SHINY_OVERRIDE, OPP_VARIANT_OVERRIDE } from '../overrides';
|
import { ABILITY_OVERRIDE, MOVE_OVERRIDE, MOVE_OVERRIDE_2, OPP_ABILITY_OVERRIDE, OPP_MOVE_OVERRIDE, OPP_MOVE_OVERRIDE_2, OPP_PASSIVE_ABILITY_OVERRIDE, OPP_SHINY_OVERRIDE, OPP_VARIANT_OVERRIDE, PASSIVE_ABILITY_OVERRIDE } from '../overrides';
|
||||||
import { BerryType } from '../data/berry';
|
import { BerryType } from '../data/berry';
|
||||||
import i18next from '../plugins/i18n';
|
import i18next from '../plugins/i18n';
|
||||||
|
|
||||||
@ -811,6 +811,11 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getPassiveAbility(): Ability {
|
getPassiveAbility(): Ability {
|
||||||
|
if (PASSIVE_ABILITY_OVERRIDE && this.isPlayer())
|
||||||
|
return allAbilities[PASSIVE_ABILITY_OVERRIDE];
|
||||||
|
if (OPP_PASSIVE_ABILITY_OVERRIDE && !this.isPlayer())
|
||||||
|
return allAbilities[OPP_PASSIVE_ABILITY_OVERRIDE];
|
||||||
|
|
||||||
let starterSpeciesId = this.species.speciesId;
|
let starterSpeciesId = this.species.speciesId;
|
||||||
while (pokemonPrevolutions.hasOwnProperty(starterSpeciesId))
|
while (pokemonPrevolutions.hasOwnProperty(starterSpeciesId))
|
||||||
starterSpeciesId = pokemonPrevolutions[starterSpeciesId];
|
starterSpeciesId = pokemonPrevolutions[starterSpeciesId];
|
||||||
@ -818,6 +823,8 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
|||||||
}
|
}
|
||||||
|
|
||||||
hasPassive(): boolean {
|
hasPassive(): boolean {
|
||||||
|
if ((PASSIVE_ABILITY_OVERRIDE !== Abilities.NONE && this.isPlayer()) || (OPP_PASSIVE_ABILITY_OVERRIDE !== Abilities.NONE && !this.isPlayer()))
|
||||||
|
return true;
|
||||||
return this.passive || this.isBoss();
|
return this.passive || this.isBoss();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
28
src/locales/de/config.ts
Normal file
28
src/locales/de/config.ts
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
import { ability } from "./ability";
|
||||||
|
import { battle } from "./battle";
|
||||||
|
import { commandUiHandler } from "./command-ui-handler";
|
||||||
|
import { fightUiHandler } from "./fight-ui-handler";
|
||||||
|
import { menu } from "./menu";
|
||||||
|
import { menuUiHandler } from "./menu-ui-handler";
|
||||||
|
import { move } from "./move";
|
||||||
|
import { pokeball } from "./pokeball";
|
||||||
|
import { pokemon } from "./pokemon";
|
||||||
|
import { pokemonStat } from "./pokemon-stat";
|
||||||
|
import { starterSelectUiHandler } from "./starter-select-ui-handler";
|
||||||
|
import { tutorial } from "./tutorial";
|
||||||
|
|
||||||
|
|
||||||
|
export const deConfig = {
|
||||||
|
ability: ability,
|
||||||
|
battle: battle,
|
||||||
|
commandUiHandler: commandUiHandler,
|
||||||
|
fightUiHandler: fightUiHandler,
|
||||||
|
menuUiHandler: menuUiHandler,
|
||||||
|
menu: menu,
|
||||||
|
move: move,
|
||||||
|
pokeball: pokeball,
|
||||||
|
pokemonStat: pokemonStat,
|
||||||
|
pokemon: pokemon,
|
||||||
|
starterSelectUiHandler: starterSelectUiHandler,
|
||||||
|
tutorial: tutorial
|
||||||
|
}
|
28
src/locales/en/config.ts
Normal file
28
src/locales/en/config.ts
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
import { ability } from "./ability";
|
||||||
|
import { battle } from "./battle";
|
||||||
|
import { commandUiHandler } from "./command-ui-handler";
|
||||||
|
import { fightUiHandler } from "./fight-ui-handler";
|
||||||
|
import { menu } from "./menu";
|
||||||
|
import { menuUiHandler } from "./menu-ui-handler";
|
||||||
|
import { move } from "./move";
|
||||||
|
import { pokeball } from "./pokeball";
|
||||||
|
import { pokemon } from "./pokemon";
|
||||||
|
import { pokemonStat } from "./pokemon-stat";
|
||||||
|
import { starterSelectUiHandler } from "./starter-select-ui-handler";
|
||||||
|
import { tutorial } from "./tutorial";
|
||||||
|
|
||||||
|
|
||||||
|
export const enConfig = {
|
||||||
|
ability: ability,
|
||||||
|
battle: battle,
|
||||||
|
commandUiHandler: commandUiHandler,
|
||||||
|
fightUiHandler: fightUiHandler,
|
||||||
|
menuUiHandler: menuUiHandler,
|
||||||
|
menu: menu,
|
||||||
|
move: move,
|
||||||
|
pokeball: pokeball,
|
||||||
|
pokemonStat: pokemonStat,
|
||||||
|
pokemon: pokemon,
|
||||||
|
starterSelectUiHandler: starterSelectUiHandler,
|
||||||
|
tutorial: tutorial
|
||||||
|
}
|
28
src/locales/es/config.ts
Normal file
28
src/locales/es/config.ts
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
import { ability } from "./ability";
|
||||||
|
import { battle } from "./battle";
|
||||||
|
import { commandUiHandler } from "./command-ui-handler";
|
||||||
|
import { fightUiHandler } from "./fight-ui-handler";
|
||||||
|
import { menu } from "./menu";
|
||||||
|
import { menuUiHandler } from "./menu-ui-handler";
|
||||||
|
import { move } from "./move";
|
||||||
|
import { pokeball } from "./pokeball";
|
||||||
|
import { pokemon } from "./pokemon";
|
||||||
|
import { pokemonStat } from "./pokemon-stat";
|
||||||
|
import { starterSelectUiHandler } from "./starter-select-ui-handler";
|
||||||
|
import { tutorial } from "./tutorial";
|
||||||
|
|
||||||
|
|
||||||
|
export const esConfig = {
|
||||||
|
ability: ability,
|
||||||
|
battle: battle,
|
||||||
|
commandUiHandler: commandUiHandler,
|
||||||
|
fightUiHandler: fightUiHandler,
|
||||||
|
menuUiHandler: menuUiHandler,
|
||||||
|
menu: menu,
|
||||||
|
move: move,
|
||||||
|
pokeball: pokeball,
|
||||||
|
pokemonStat: pokemonStat,
|
||||||
|
pokemon: pokemon,
|
||||||
|
starterSelectUiHandler: starterSelectUiHandler,
|
||||||
|
tutorial: tutorial
|
||||||
|
}
|
28
src/locales/fr/config.ts
Normal file
28
src/locales/fr/config.ts
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
import { ability } from "./ability";
|
||||||
|
import { battle } from "./battle";
|
||||||
|
import { commandUiHandler } from "./command-ui-handler";
|
||||||
|
import { fightUiHandler } from "./fight-ui-handler";
|
||||||
|
import { menu } from "./menu";
|
||||||
|
import { menuUiHandler } from "./menu-ui-handler";
|
||||||
|
import { move } from "./move";
|
||||||
|
import { pokeball } from "./pokeball";
|
||||||
|
import { pokemon } from "./pokemon";
|
||||||
|
import { pokemonStat } from "./pokemon-stat";
|
||||||
|
import { starterSelectUiHandler } from "./starter-select-ui-handler";
|
||||||
|
import { tutorial } from "./tutorial";
|
||||||
|
|
||||||
|
|
||||||
|
export const frConfig = {
|
||||||
|
ability: ability,
|
||||||
|
battle: battle,
|
||||||
|
commandUiHandler: commandUiHandler,
|
||||||
|
fightUiHandler: fightUiHandler,
|
||||||
|
menuUiHandler: menuUiHandler,
|
||||||
|
menu: menu,
|
||||||
|
move: move,
|
||||||
|
pokeball: pokeball,
|
||||||
|
pokemonStat: pokemonStat,
|
||||||
|
pokemon: pokemon,
|
||||||
|
starterSelectUiHandler: starterSelectUiHandler,
|
||||||
|
tutorial: tutorial
|
||||||
|
}
|
@ -12,21 +12,21 @@ export const starterSelectUiHandler: SimpleTranslationEntries = {
|
|||||||
"passive": "Passif :",
|
"passive": "Passif :",
|
||||||
"nature": "Nature :",
|
"nature": "Nature :",
|
||||||
"eggMoves": "Capacités Œuf",
|
"eggMoves": "Capacités Œuf",
|
||||||
"start": "Démar.",
|
"start": "Lancer",
|
||||||
"addToParty": "Ajouter à l’équipe",
|
"addToParty": "Ajouter à l’équipe",
|
||||||
"toggleIVs": "Voir IVs",
|
"toggleIVs": "Voir IVs",
|
||||||
"manageMoves": "Gérer Capacités",
|
"manageMoves": "Gérer Capacités",
|
||||||
"useCandies": "Utiliser Bonbons",
|
"useCandies": "Utiliser Bonbons",
|
||||||
"selectMoveSwapOut": "Sélectionnez la capacité à déplacer.",
|
"selectMoveSwapOut": "Sélectionnez la capacité à échanger.",
|
||||||
"selectMoveSwapWith": "Sélectionnez laquelle échanger avec",
|
"selectMoveSwapWith": "Sélectionnez laquelle échanger avec",
|
||||||
"unlockPassive": "Débloquer Passif",
|
"unlockPassive": "Débloquer Passif",
|
||||||
"reduceCost": "Diminuer le cout",
|
"reduceCost": "Diminuer le cout",
|
||||||
"cycleShiny": "R: Parcourir Chromatiques",
|
"cycleShiny": "R: » Chromatiques",
|
||||||
"cycleForm": "F: Parcourir Formes",
|
"cycleForm": "F: » Formes",
|
||||||
"cycleGender": "G: Parcourir Sexes",
|
"cycleGender": "G: » Sexes",
|
||||||
"cycleAbility": "E: Parcourir Talents",
|
"cycleAbility": "E: » Talents",
|
||||||
"cycleNature": "N: Parcourir Natures",
|
"cycleNature": "N: » Natures",
|
||||||
"cycleVariant": "V: Parcourir Variants",
|
"cycleVariant": "V: » Variants",
|
||||||
"enablePassive": "Activer Passif",
|
"enablePassive": "Activer Passif",
|
||||||
"disablePassive": "Désactiver Passif"
|
"disablePassive": "Désactiver Passif"
|
||||||
}
|
}
|
||||||
|
@ -11,18 +11,18 @@ export const battle: SimpleTranslationEntries = {
|
|||||||
"trainerGo": "{{trainerName}} manda in campo {{pokemonName}}!",
|
"trainerGo": "{{trainerName}} manda in campo {{pokemonName}}!",
|
||||||
"switchQuestion": "Vuoi cambiare\n{{pokemonName}}?",
|
"switchQuestion": "Vuoi cambiare\n{{pokemonName}}?",
|
||||||
"trainerDefeated": `Hai sconfitto\n{{trainerName}}!`,
|
"trainerDefeated": `Hai sconfitto\n{{trainerName}}!`,
|
||||||
"pokemonCaught": "{{pokemonName}} è stato catturato!",
|
"pokemonCaught": "Preso! {{pokemonName}} è stato catturato!",
|
||||||
"pokemon": "Pokémon",
|
"pokemon": "Pokémon",
|
||||||
"sendOutPokemon": "Vai! {{pokemonName}}!",
|
"sendOutPokemon": "Vai! {{pokemonName}}!",
|
||||||
"hitResultCriticalHit": "Brutto colpo!",
|
"hitResultCriticalHit": "Brutto colpo!",
|
||||||
"hitResultSuperEffective": "È superefficace!",
|
"hitResultSuperEffective": "È superefficace!",
|
||||||
"hitResultNotVeryEffective": "Non è molto efficace…",
|
"hitResultNotVeryEffective": "Non è molto efficace…",
|
||||||
"hitResultNoEffect": "Non ha effetto su {{pokemonName}}!",
|
"hitResultNoEffect": "Non ha effetto su {{pokemonName}}!",
|
||||||
"hitResultOneHitKO": "È KO con un colpo solo!",
|
"hitResultOneHitKO": "KO con un colpo!",
|
||||||
"attackFailed": "Ma ha fallito!",
|
"attackFailed": "Ma ha fallito!",
|
||||||
"attackHitsCount": `Colpito {{count}} volta/e!`,
|
"attackHitsCount": `Colpito {{count}} volta/e!`,
|
||||||
"expGain": "{{pokemonName}} ha guadagnato\n{{exp}} Punti Esperienza!",
|
"expGain": "{{pokemonName}} ha guadagnato\n{{exp}} Punti Esperienza!",
|
||||||
"levelUp": "{{pokemonName}} è salito al \nLivello {{level}}!",
|
"levelUp": "{{pokemonName}} è salito al \nlivello {{level}}!",
|
||||||
"learnMove": "{{pokemonName}} impara \n{{moveName}}!",
|
"learnMove": "{{pokemonName}} impara \n{{moveName}}!",
|
||||||
"learnMovePrompt": "{{pokemonName}} vorrebbe imparare\n{{moveName}}.",
|
"learnMovePrompt": "{{pokemonName}} vorrebbe imparare\n{{moveName}}.",
|
||||||
"learnMoveLimitReached": "Tuttavia, {{pokemonName}} \nconosce già quattro mosse.",
|
"learnMoveLimitReached": "Tuttavia, {{pokemonName}} \nconosce già quattro mosse.",
|
||||||
@ -33,16 +33,16 @@ export const battle: SimpleTranslationEntries = {
|
|||||||
"learnMoveForgetSuccess": "{{pokemonName}} ha dimenticato la mossa\n{{moveName}}.",
|
"learnMoveForgetSuccess": "{{pokemonName}} ha dimenticato la mossa\n{{moveName}}.",
|
||||||
"levelCapUp": "Il livello massimo\nè aumentato a {{levelCap}}!",
|
"levelCapUp": "Il livello massimo\nè aumentato a {{levelCap}}!",
|
||||||
"moveNotImplemented": "{{moveName}} non è ancora implementata e non può essere selezionata.",
|
"moveNotImplemented": "{{moveName}} non è ancora implementata e non può essere selezionata.",
|
||||||
"moveNoPP": "There's no PP left for\nthis move!",
|
"moveNoPP": "Non ci sono PP rimanenti\nper questa mossa!",
|
||||||
"moveDisabled": "{{moveName}} è disabilitata!",
|
"moveDisabled": "{{moveName}} è disabilitata!",
|
||||||
"noPokeballForce": "Una forza misteriosa\nimpedisce l'uso dell Poké Ball.",
|
"noPokeballForce": "Una forza misteriosa\nimpedisce l'uso dell Poké Ball.",
|
||||||
"noPokeballTrainer": "Non puoi catturare\nPokémon di altri allenatori!",
|
"noPokeballTrainer": "Non puoi catturare\nPokémon di altri allenatori!",
|
||||||
"noPokeballMulti": "Puoi lanciare una Poké Ball\nquando rimane un solo Pokémon!",
|
"noPokeballMulti": "Puoi lanciare una Poké Ball\nquando rimane un solo Pokémon!",
|
||||||
"noPokeballStrong": "Il Pokémon avversario è troppo forte per essere catturato!\nDevi prima indebolirlo!",
|
"noPokeballStrong": "Il Pokémon avversario è troppo forte per essere catturato!\nDevi prima indebolirlo!",
|
||||||
"noEscapeForce": "Una forza misteriosa\nimpedisce la fuga.",
|
"noEscapeForce": "Una forza misteriosa\nimpedisce la fuga.",
|
||||||
"noEscapeTrainer": "Non puoi fuggire\nda una battaglia contro un'allenatore!",
|
"noEscapeTrainer": "Non puoi sottrarti\nalla lotta con un'allenatore!",
|
||||||
"noEscapePokemon": "{{moveName}} di {{pokemonName}}\npreviene la {{escapeVerb}}!",
|
"noEscapePokemon": "{{moveName}} di {{pokemonName}}\npreviene la {{escapeVerb}}!",
|
||||||
"runAwaySuccess": "Sei riuscito a fuggire!",
|
"runAwaySuccess": "Scampato pericolo!",
|
||||||
"runAwayCannotEscape": 'Non puoi fuggire!',
|
"runAwayCannotEscape": 'Non puoi fuggire!',
|
||||||
"escapeVerbSwitch": "cambiando",
|
"escapeVerbSwitch": "cambiando",
|
||||||
"escapeVerbFlee": "fuggendo",
|
"escapeVerbFlee": "fuggendo",
|
||||||
|
28
src/locales/it/config.ts
Normal file
28
src/locales/it/config.ts
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
import { ability } from "./ability";
|
||||||
|
import { battle } from "./battle";
|
||||||
|
import { commandUiHandler } from "./command-ui-handler";
|
||||||
|
import { fightUiHandler } from "./fight-ui-handler";
|
||||||
|
import { menu } from "./menu";
|
||||||
|
import { menuUiHandler } from "./menu-ui-handler";
|
||||||
|
import { move } from "./move";
|
||||||
|
import { pokeball } from "./pokeball";
|
||||||
|
import { pokemon } from "./pokemon";
|
||||||
|
import { pokemonStat } from "./pokemon-stat";
|
||||||
|
import { starterSelectUiHandler } from "./starter-select-ui-handler";
|
||||||
|
import { tutorial } from "./tutorial";
|
||||||
|
|
||||||
|
|
||||||
|
export const itConfig = {
|
||||||
|
ability: ability,
|
||||||
|
battle: battle,
|
||||||
|
commandUiHandler: commandUiHandler,
|
||||||
|
fightUiHandler: fightUiHandler,
|
||||||
|
menuUiHandler: menuUiHandler,
|
||||||
|
menu: menu,
|
||||||
|
move: move,
|
||||||
|
pokeball: pokeball,
|
||||||
|
pokemonStat: pokemonStat,
|
||||||
|
pokemon: pokemon,
|
||||||
|
starterSelectUiHandler: starterSelectUiHandler,
|
||||||
|
tutorial: tutorial
|
||||||
|
}
|
@ -7,26 +7,26 @@ import { SimpleTranslationEntries } from "#app/plugins/i18n";
|
|||||||
*/
|
*/
|
||||||
export const starterSelectUiHandler: SimpleTranslationEntries = {
|
export const starterSelectUiHandler: SimpleTranslationEntries = {
|
||||||
"confirmStartTeam":'Vuoi iniziare con questi Pokémon?',
|
"confirmStartTeam":'Vuoi iniziare con questi Pokémon?',
|
||||||
"growthRate": "Growth Rate:",
|
"growthRate": "Vel. Crescita:",
|
||||||
"ability": "Ability:",
|
"ability": "Abilità:",
|
||||||
"passive": "Passive:",
|
"passive": "Passiva:",
|
||||||
"nature": "Nature:",
|
"nature": "Natura:",
|
||||||
"eggMoves": 'Egg Moves',
|
"eggMoves": 'Mosse delle uova',
|
||||||
"start": "Start",
|
"start": "Inizia",
|
||||||
"addToParty": "Add to Party",
|
"addToParty": "Aggiungi al Gruppo",
|
||||||
"toggleIVs": 'Toggle IVs',
|
"toggleIVs": 'Vedi/Nascondi IV',
|
||||||
"manageMoves": 'Manage Moves',
|
"manageMoves": 'Gestisci Mosse',
|
||||||
"useCandies": 'Use Candies',
|
"useCandies": 'Usa Caramelle',
|
||||||
"selectMoveSwapOut": "Select a move to swap out.",
|
"selectMoveSwapOut": "Seleziona una mossa da scambiare.",
|
||||||
"selectMoveSwapWith": "Select a move to swap with",
|
"selectMoveSwapWith": "Seleziona una mossa da scambiare con",
|
||||||
"unlockPassive": "Unlock Passive",
|
"unlockPassive": "Sblocca Passiva",
|
||||||
"reduceCost": "Reduce Cost",
|
"reduceCost": "Riduci Costo",
|
||||||
"cycleShiny": "R: Cycle Shiny",
|
"cycleShiny": "R: Alterna Shiny",
|
||||||
"cycleForm": 'F: Cycle Form',
|
"cycleForm": 'F: Alterna Forma',
|
||||||
"cycleGender": 'G: Cycle Gender',
|
"cycleGender": 'G: Alterna Sesso',
|
||||||
"cycleAbility": 'E: Cycle Ability',
|
"cycleAbility": 'E: Alterna Abilità',
|
||||||
"cycleNature": 'N: Cycle Nature',
|
"cycleNature": 'N: Alterna Natura',
|
||||||
"cycleVariant": 'V: Cycle Variant',
|
"cycleVariant": 'V: Alterna Variante',
|
||||||
"enablePassive": "Enable Passive",
|
"enablePassive": "Attiva Passiva",
|
||||||
"disablePassive": "Disable Passive"
|
"disablePassive": "Disattiva Passiva"
|
||||||
}
|
}
|
@ -12,12 +12,15 @@ export const STARTING_WAVE_OVERRIDE = 0;
|
|||||||
export const STARTING_BIOME_OVERRIDE = Biome.TOWN;
|
export const STARTING_BIOME_OVERRIDE = Biome.TOWN;
|
||||||
export const STARTING_MONEY_OVERRIDE = 0;
|
export const STARTING_MONEY_OVERRIDE = 0;
|
||||||
export const WEATHER_OVERRIDE = WeatherType.NONE;
|
export const WEATHER_OVERRIDE = WeatherType.NONE;
|
||||||
|
export const DOUBLE_BATTLE_OVERRIDE = false;
|
||||||
|
|
||||||
export const ABILITY_OVERRIDE = Abilities.NONE;
|
export const ABILITY_OVERRIDE = Abilities.NONE;
|
||||||
|
export const PASSIVE_ABILITY_OVERRIDE = Abilities.NONE;
|
||||||
export const MOVE_OVERRIDE = Moves.NONE;
|
export const MOVE_OVERRIDE = Moves.NONE;
|
||||||
export const MOVE_OVERRIDE_2 = Moves.NONE;
|
export const MOVE_OVERRIDE_2 = Moves.NONE;
|
||||||
export const OPP_SPECIES_OVERRIDE = 0;
|
export const OPP_SPECIES_OVERRIDE = 0;
|
||||||
export const OPP_ABILITY_OVERRIDE = Abilities.NONE;
|
export const OPP_ABILITY_OVERRIDE = Abilities.NONE;
|
||||||
|
export const OPP_PASSIVE_ABILITY_OVERRIDE = Abilities.NONE;
|
||||||
export const OPP_MOVE_OVERRIDE = Moves.NONE;
|
export const OPP_MOVE_OVERRIDE = Moves.NONE;
|
||||||
export const OPP_MOVE_OVERRIDE_2 = Moves.NONE;
|
export const OPP_MOVE_OVERRIDE_2 = Moves.NONE;
|
||||||
|
|
||||||
|
@ -1,77 +1,11 @@
|
|||||||
import i18next from 'i18next';
|
import i18next from 'i18next';
|
||||||
import LanguageDetector from 'i18next-browser-languagedetector';
|
import LanguageDetector from 'i18next-browser-languagedetector';
|
||||||
|
|
||||||
import { menu as enMenu } from '../locales/en/menu';
|
import { deConfig } from '#app/locales/de/config.js';
|
||||||
import { menu as esMenu } from '../locales/es/menu';
|
import { enConfig } from '#app/locales/en/config.js';
|
||||||
import { menu as itMenu } from '../locales/it/menu';
|
import { esConfig } from '#app/locales/es/config.js';
|
||||||
import { menu as frMenu } from '../locales/fr/menu';
|
import { frConfig } from '#app/locales/fr/config.js';
|
||||||
import { menu as deMenu } from '../locales/de/menu';
|
import { itConfig } from '#app/locales/it/config.js';
|
||||||
|
|
||||||
import { menuUiHandler as enMenuUiHandler } from '../locales/en/menu-ui-handler.js';
|
|
||||||
import { menuUiHandler as esMenuUiHandler } from '../locales/es/menu-ui-handler.js';
|
|
||||||
import { menuUiHandler as frMenuUiHandler } from '../locales/fr/menu-ui-handler.js';
|
|
||||||
import { menuUiHandler as itMenuUiHandler } from '../locales/it/menu-ui-handler.js';
|
|
||||||
import { menuUiHandler as deMenuUiHandler } from '../locales/de/menu-ui-handler.js';
|
|
||||||
|
|
||||||
import { battle as enBattle } from '../locales/en/battle';
|
|
||||||
import { battle as esBattle } from '../locales/es/battle';
|
|
||||||
import { battle as itBattle } from '../locales/it/battle';
|
|
||||||
import { battle as frBattle } from '../locales/fr/battle';
|
|
||||||
import { battle as deBattle } from '../locales/de/battle';
|
|
||||||
|
|
||||||
import { move as enMove } from '../locales/en/move';
|
|
||||||
import { move as esMove } from '../locales/es/move';
|
|
||||||
import { move as itMove } from '../locales/it/move';
|
|
||||||
import { move as frMove } from '../locales/fr/move';
|
|
||||||
import { move as deMove } from '../locales/de/move';
|
|
||||||
|
|
||||||
import { ability as enAbility } from '../locales/en/ability';
|
|
||||||
import { ability as esAbility } from '../locales/es/ability';
|
|
||||||
import { ability as itAbility } from '../locales/it/ability';
|
|
||||||
import { ability as frAbility } from '../locales/fr/ability';
|
|
||||||
import { ability as deAbility } from '../locales/de/ability';
|
|
||||||
|
|
||||||
import { pokeball as enPokeball } from '../locales/en/pokeball';
|
|
||||||
import { pokeball as esPokeball } from '../locales/es/pokeball';
|
|
||||||
import { pokeball as itPokeball } from '../locales/it/pokeball';
|
|
||||||
import { pokeball as frPokeball } from '../locales/fr/pokeball';
|
|
||||||
import { pokeball as dePokeball } from '../locales/de/pokeball';
|
|
||||||
|
|
||||||
import { pokemon as enPokemon } from '../locales/en/pokemon';
|
|
||||||
import { pokemon as esPokemon } from '../locales/es/pokemon';
|
|
||||||
import { pokemon as itPokemon } from '../locales/it/pokemon';
|
|
||||||
import { pokemon as frPokemon } from '../locales/fr/pokemon';
|
|
||||||
import { pokemon as dePokemon } from '../locales/de/pokemon';
|
|
||||||
|
|
||||||
import { pokemonStat as enPokemonStat } from '../locales/en/pokemon-stat';
|
|
||||||
import { pokemonStat as esPokemonStat } from '../locales/es/pokemon-stat';
|
|
||||||
import { pokemonStat as frPokemonStat } from '../locales/fr/pokemon-stat';
|
|
||||||
import { pokemonStat as itPokemonStat } from '../locales/it/pokemon-stat';
|
|
||||||
import { pokemonStat as dePokemonStat } from '../locales/de/pokemon-stat';
|
|
||||||
|
|
||||||
import { commandUiHandler as enCommandUiHandler } from '../locales/en/command-ui-handler';
|
|
||||||
import { commandUiHandler as esCommandUiHandler } from '../locales/es/command-ui-handler';
|
|
||||||
import { commandUiHandler as itCommandUiHandler } from '../locales/it/command-ui-handler';
|
|
||||||
import { commandUiHandler as frCommandUiHandler } from '../locales/fr/command-ui-handler';
|
|
||||||
import { commandUiHandler as deCommandUiHandler } from '../locales/de/command-ui-handler';
|
|
||||||
|
|
||||||
import { fightUiHandler as enFightUiHandler } from '../locales/en/fight-ui-handler';
|
|
||||||
import { fightUiHandler as esFightUiHandler } from '../locales/es/fight-ui-handler';
|
|
||||||
import { fightUiHandler as frFightUiHandler } from '../locales/fr/fight-ui-handler';
|
|
||||||
import { fightUiHandler as itFightUiHandler } from '../locales/it/fight-ui-handler';
|
|
||||||
import { fightUiHandler as deFightUiHandler } from '../locales/de/fight-ui-handler';
|
|
||||||
|
|
||||||
import { tutorial as enTutorial } from '../locales/en/tutorial';
|
|
||||||
import { tutorial as esTutorial } from '../locales/es/tutorial';
|
|
||||||
import { tutorial as frTutorial } from '../locales/fr/tutorial';
|
|
||||||
import { tutorial as itTutorial} from '../locales/it/tutorial';
|
|
||||||
import { tutorial as deTutorial } from '../locales/de/tutorial';
|
|
||||||
|
|
||||||
import { starterSelectUiHandler as enStarterSelectUiHandler } from '../locales/en/starter-select-ui-handler';
|
|
||||||
import { starterSelectUiHandler as esStarterSelectUiHandler } from '../locales/es/starter-select-ui-handler';
|
|
||||||
import { starterSelectUiHandler as frStarterSelectUiHandler } from '../locales/fr/starter-select-ui-handler';
|
|
||||||
import { starterSelectUiHandler as itStarterSelectUiHandler} from '../locales/it/starter-select-ui-handler';
|
|
||||||
import { starterSelectUiHandler as deStarterSelectUiHandler } from '../locales/de/starter-select-ui-handler';
|
|
||||||
|
|
||||||
export interface SimpleTranslationEntries {
|
export interface SimpleTranslationEntries {
|
||||||
[key: string]: string
|
[key: string]: string
|
||||||
@ -131,74 +65,19 @@ export function initI18n(): void {
|
|||||||
},
|
},
|
||||||
resources: {
|
resources: {
|
||||||
en: {
|
en: {
|
||||||
menu: enMenu,
|
...enConfig
|
||||||
menuUiHandler: enMenuUiHandler,
|
|
||||||
battle: enBattle,
|
|
||||||
move: enMove,
|
|
||||||
ability: enAbility,
|
|
||||||
pokeball: enPokeball,
|
|
||||||
pokemon: enPokemon,
|
|
||||||
pokemonStat: enPokemonStat,
|
|
||||||
commandUiHandler: enCommandUiHandler,
|
|
||||||
fightUiHandler: enFightUiHandler,
|
|
||||||
tutorial: enTutorial,
|
|
||||||
starterSelectUiHandler: enStarterSelectUiHandler
|
|
||||||
},
|
},
|
||||||
es: {
|
es: {
|
||||||
menu: esMenu,
|
...esConfig
|
||||||
menuUiHandler: esMenuUiHandler,
|
|
||||||
battle: esBattle,
|
|
||||||
move: esMove,
|
|
||||||
ability: esAbility,
|
|
||||||
pokeball: esPokeball,
|
|
||||||
pokemon: esPokemon,
|
|
||||||
pokemonStat: esPokemonStat,
|
|
||||||
commandUiHandler: esCommandUiHandler,
|
|
||||||
fightUiHandler: esFightUiHandler,
|
|
||||||
tutorial: esTutorial,
|
|
||||||
starterSelectUiHandler: esStarterSelectUiHandler
|
|
||||||
},
|
},
|
||||||
fr: {
|
fr: {
|
||||||
menu: frMenu,
|
...frConfig
|
||||||
menuUiHandler: frMenuUiHandler,
|
|
||||||
battle: frBattle,
|
|
||||||
move: frMove,
|
|
||||||
ability: frAbility,
|
|
||||||
pokeball: frPokeball,
|
|
||||||
pokemon: frPokemon,
|
|
||||||
pokemonStat: frPokemonStat,
|
|
||||||
commandUiHandler: frCommandUiHandler,
|
|
||||||
fightUiHandler: frFightUiHandler,
|
|
||||||
tutorial: frTutorial,
|
|
||||||
starterSelectUiHandler: frStarterSelectUiHandler
|
|
||||||
},
|
},
|
||||||
it: {
|
it: {
|
||||||
menu: itMenu,
|
...itConfig
|
||||||
menuUiHandler: itMenuUiHandler,
|
|
||||||
battle: itBattle,
|
|
||||||
move: itMove,
|
|
||||||
ability: itAbility,
|
|
||||||
pokeball: itPokeball,
|
|
||||||
pokemon: itPokemon,
|
|
||||||
pokemonStat: itPokemonStat,
|
|
||||||
commandUiHandler: itCommandUiHandler,
|
|
||||||
fightUiHandler: itFightUiHandler,
|
|
||||||
tutorial: itTutorial,
|
|
||||||
starterSelectUiHandler: itStarterSelectUiHandler
|
|
||||||
},
|
},
|
||||||
de: {
|
de: {
|
||||||
menu: deMenu,
|
...deConfig
|
||||||
menuUiHandler: deMenuUiHandler,
|
|
||||||
battle: deBattle,
|
|
||||||
move: deMove,
|
|
||||||
ability: deAbility,
|
|
||||||
pokeball: dePokeball,
|
|
||||||
pokemon: dePokemon,
|
|
||||||
pokemonStat: dePokemonStat,
|
|
||||||
commandUiHandler: deCommandUiHandler,
|
|
||||||
fightUiHandler: deFightUiHandler,
|
|
||||||
tutorial: deTutorial,
|
|
||||||
starterSelectUiHandler: deStarterSelectUiHandler
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
@ -208,18 +87,18 @@ export function initI18n(): void {
|
|||||||
declare module 'i18next' {
|
declare module 'i18next' {
|
||||||
interface CustomTypeOptions {
|
interface CustomTypeOptions {
|
||||||
resources: {
|
resources: {
|
||||||
menu: typeof enMenu;
|
menu: SimpleTranslationEntries;
|
||||||
menuUiHandler: typeof enMenuUiHandler;
|
menuUiHandler: SimpleTranslationEntries;
|
||||||
move: typeof enMove;
|
move: MoveTranslationEntries;
|
||||||
battle: typeof enBattle,
|
battle: SimpleTranslationEntries,
|
||||||
ability: typeof enAbility;
|
ability: AbilityTranslationEntries;
|
||||||
pokeball: typeof enPokeball;
|
pokeball: SimpleTranslationEntries;
|
||||||
pokemon: typeof enPokemon;
|
pokemon: SimpleTranslationEntries;
|
||||||
pokemonStat: typeof enPokemonStat;
|
pokemonStat: SimpleTranslationEntries;
|
||||||
commandUiHandler: typeof enCommandUiHandler;
|
commandUiHandler: SimpleTranslationEntries;
|
||||||
fightUiHandler: typeof enFightUiHandler;
|
fightUiHandler: SimpleTranslationEntries;
|
||||||
tutorial: typeof enTutorial;
|
tutorial: SimpleTranslationEntries;
|
||||||
starterSelectUiHandler: typeof enStarterSelectUiHandler;
|
starterSelectUiHandler: SimpleTranslationEntries;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user