Merge branch 'main' of https://github.com/pagefaultgames/pokerogue into rockruff_dusk_form_bug
commit
26c1381f87
|
|
@ -2,6 +2,7 @@ import { Stat, getStatName } from "./pokemon-stat";
|
||||||
import * as Utils from "../utils";
|
import * as Utils from "../utils";
|
||||||
import { TextStyle, getBBCodeFrag } from "../ui/text";
|
import { TextStyle, getBBCodeFrag } from "../ui/text";
|
||||||
import { UiTheme } from "#app/enums/ui-theme";
|
import { UiTheme } from "#app/enums/ui-theme";
|
||||||
|
import i18next from 'i18next';
|
||||||
|
|
||||||
export enum Nature {
|
export enum Nature {
|
||||||
HARDY,
|
HARDY,
|
||||||
|
|
@ -33,6 +34,10 @@ export enum Nature {
|
||||||
|
|
||||||
export function getNatureName(nature: Nature, includeStatEffects: boolean = false, forStarterSelect: boolean = false, ignoreBBCode: boolean = false, uiTheme: UiTheme = UiTheme.DEFAULT): string {
|
export function getNatureName(nature: Nature, includeStatEffects: boolean = false, forStarterSelect: boolean = false, ignoreBBCode: boolean = false, uiTheme: UiTheme = UiTheme.DEFAULT): string {
|
||||||
let ret = Utils.toReadableString(Nature[nature]);
|
let ret = Utils.toReadableString(Nature[nature]);
|
||||||
|
//Translating nature
|
||||||
|
if(i18next.exists('nature:' + ret)){
|
||||||
|
ret = i18next.t('nature:' + ret as any)
|
||||||
|
}
|
||||||
if (includeStatEffects) {
|
if (includeStatEffects) {
|
||||||
const stats = Utils.getEnumValues(Stat).slice(1);
|
const stats = Utils.getEnumValues(Stat).slice(1);
|
||||||
let increasedStat: Stat = null;
|
let increasedStat: Stat = null;
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,11 @@ import { ability } from "./ability";
|
||||||
import { battle } from "./battle";
|
import { battle } from "./battle";
|
||||||
import { commandUiHandler } from "./command-ui-handler";
|
import { commandUiHandler } from "./command-ui-handler";
|
||||||
import { fightUiHandler } from "./fight-ui-handler";
|
import { fightUiHandler } from "./fight-ui-handler";
|
||||||
|
import { growth } from "./growth";
|
||||||
import { menu } from "./menu";
|
import { menu } from "./menu";
|
||||||
import { menuUiHandler } from "./menu-ui-handler";
|
import { menuUiHandler } from "./menu-ui-handler";
|
||||||
import { move } from "./move";
|
import { move } from "./move";
|
||||||
|
import { nature } from "./nature";
|
||||||
import { pokeball } from "./pokeball";
|
import { pokeball } from "./pokeball";
|
||||||
import { pokemon } from "./pokemon";
|
import { pokemon } from "./pokemon";
|
||||||
import { pokemonStat } from "./pokemon-stat";
|
import { pokemonStat } from "./pokemon-stat";
|
||||||
|
|
@ -24,5 +26,7 @@ export const deConfig = {
|
||||||
pokemonStat: pokemonStat,
|
pokemonStat: pokemonStat,
|
||||||
pokemon: pokemon,
|
pokemon: pokemon,
|
||||||
starterSelectUiHandler: starterSelectUiHandler,
|
starterSelectUiHandler: starterSelectUiHandler,
|
||||||
tutorial: tutorial
|
tutorial: tutorial,
|
||||||
|
nature: nature,
|
||||||
|
growth: growth
|
||||||
}
|
}
|
||||||
|
|
@ -0,0 +1,10 @@
|
||||||
|
import { SimpleTranslationEntries } from "#app/plugins/i18n";
|
||||||
|
|
||||||
|
export const growth: SimpleTranslationEntries = {
|
||||||
|
"Erratic": "Erratic",
|
||||||
|
"Fast": "Fast",
|
||||||
|
"Medium_Fast": "Medium Fast",
|
||||||
|
"Medium_Slow": "Medium Slow",
|
||||||
|
"Slow": "Slow",
|
||||||
|
"Fluctuating": "Fluctuating"
|
||||||
|
} as const;
|
||||||
|
|
@ -0,0 +1,29 @@
|
||||||
|
import { SimpleTranslationEntries } from "#app/plugins/i18n";
|
||||||
|
|
||||||
|
export const nature: SimpleTranslationEntries = {
|
||||||
|
"Hardy": "Robust",
|
||||||
|
"Lonely": "Solo",
|
||||||
|
"Brave": "Mutig",
|
||||||
|
"Adamant": "Hart",
|
||||||
|
"Naughty": "Frech",
|
||||||
|
"Bold": "Kühn",
|
||||||
|
"Docile": "Sanft",
|
||||||
|
"Relaxed": "Locker",
|
||||||
|
"Impish": "Pfiffig",
|
||||||
|
"Lax": "Lasch",
|
||||||
|
"Timid": "Scheu",
|
||||||
|
"Hasty": "Hastig",
|
||||||
|
"Serious": "Ernst",
|
||||||
|
"Jolly": "Froh",
|
||||||
|
"Naive": "Naiv",
|
||||||
|
"Modest": "Mäßig",
|
||||||
|
"Mild": "Mild",
|
||||||
|
"Quiet": "Ruhig",
|
||||||
|
"Bashful": "Zaghaft",
|
||||||
|
"Rash": "Hitzig",
|
||||||
|
"Calm": "Still",
|
||||||
|
"Gentle": "Zart",
|
||||||
|
"Sassy": "Forsch",
|
||||||
|
"Careful": "Sacht",
|
||||||
|
"Quirky": "Kauzig"
|
||||||
|
} as const;
|
||||||
|
|
@ -2,9 +2,11 @@ import { ability } from "./ability";
|
||||||
import { battle } from "./battle";
|
import { battle } from "./battle";
|
||||||
import { commandUiHandler } from "./command-ui-handler";
|
import { commandUiHandler } from "./command-ui-handler";
|
||||||
import { fightUiHandler } from "./fight-ui-handler";
|
import { fightUiHandler } from "./fight-ui-handler";
|
||||||
|
import { growth } from "./growth";
|
||||||
import { menu } from "./menu";
|
import { menu } from "./menu";
|
||||||
import { menuUiHandler } from "./menu-ui-handler";
|
import { menuUiHandler } from "./menu-ui-handler";
|
||||||
import { move } from "./move";
|
import { move } from "./move";
|
||||||
|
import { nature } from "./nature";
|
||||||
import { pokeball } from "./pokeball";
|
import { pokeball } from "./pokeball";
|
||||||
import { pokemon } from "./pokemon";
|
import { pokemon } from "./pokemon";
|
||||||
import { pokemonStat } from "./pokemon-stat";
|
import { pokemonStat } from "./pokemon-stat";
|
||||||
|
|
@ -24,5 +26,7 @@ export const enConfig = {
|
||||||
pokemonStat: pokemonStat,
|
pokemonStat: pokemonStat,
|
||||||
pokemon: pokemon,
|
pokemon: pokemon,
|
||||||
starterSelectUiHandler: starterSelectUiHandler,
|
starterSelectUiHandler: starterSelectUiHandler,
|
||||||
tutorial: tutorial
|
tutorial: tutorial,
|
||||||
|
nature: nature,
|
||||||
|
growth: growth
|
||||||
}
|
}
|
||||||
|
|
@ -0,0 +1,10 @@
|
||||||
|
import { SimpleTranslationEntries } from "#app/plugins/i18n";
|
||||||
|
|
||||||
|
export const growth: SimpleTranslationEntries = {
|
||||||
|
"Erratic": "Erratic",
|
||||||
|
"Fast": "Fast",
|
||||||
|
"Medium_Fast": "Medium Fast",
|
||||||
|
"Medium_Slow": "Medium Slow",
|
||||||
|
"Slow": "Slow",
|
||||||
|
"Fluctuating": "Fluctuating"
|
||||||
|
} as const;
|
||||||
|
|
@ -0,0 +1,29 @@
|
||||||
|
import { SimpleTranslationEntries } from "#app/plugins/i18n";
|
||||||
|
|
||||||
|
export const nature: SimpleTranslationEntries = {
|
||||||
|
"Hardy": "Hardy",
|
||||||
|
"Lonely": "Lonely",
|
||||||
|
"Brave": "Brave",
|
||||||
|
"Adamant": "Adamant",
|
||||||
|
"Naughty": "Naughty",
|
||||||
|
"Bold": "Bold",
|
||||||
|
"Docile": "Docile",
|
||||||
|
"Relaxed": "Relaxed",
|
||||||
|
"Impish": "Impish",
|
||||||
|
"Lax": "Lax",
|
||||||
|
"Timid": "Timid",
|
||||||
|
"Hasty": "Hasty",
|
||||||
|
"Serious": "Serious",
|
||||||
|
"Jolly": "Jolly",
|
||||||
|
"Naive": "Naive",
|
||||||
|
"Modest": "Modest",
|
||||||
|
"Mild": "Mild",
|
||||||
|
"Quiet": "Quiet",
|
||||||
|
"Bashful": "Bashful",
|
||||||
|
"Rash": "Rash",
|
||||||
|
"Calm": "Calm",
|
||||||
|
"Gentle": "Gentle",
|
||||||
|
"Sassy": "Sassy",
|
||||||
|
"Careful": "Careful",
|
||||||
|
"Quirky": "Quirky"
|
||||||
|
} as const;
|
||||||
|
|
@ -2,9 +2,11 @@ import { ability } from "./ability";
|
||||||
import { battle } from "./battle";
|
import { battle } from "./battle";
|
||||||
import { commandUiHandler } from "./command-ui-handler";
|
import { commandUiHandler } from "./command-ui-handler";
|
||||||
import { fightUiHandler } from "./fight-ui-handler";
|
import { fightUiHandler } from "./fight-ui-handler";
|
||||||
|
import { growth } from "./growth";
|
||||||
import { menu } from "./menu";
|
import { menu } from "./menu";
|
||||||
import { menuUiHandler } from "./menu-ui-handler";
|
import { menuUiHandler } from "./menu-ui-handler";
|
||||||
import { move } from "./move";
|
import { move } from "./move";
|
||||||
|
import { nature } from "./nature";
|
||||||
import { pokeball } from "./pokeball";
|
import { pokeball } from "./pokeball";
|
||||||
import { pokemon } from "./pokemon";
|
import { pokemon } from "./pokemon";
|
||||||
import { pokemonStat } from "./pokemon-stat";
|
import { pokemonStat } from "./pokemon-stat";
|
||||||
|
|
@ -24,5 +26,7 @@ export const esConfig = {
|
||||||
pokemonStat: pokemonStat,
|
pokemonStat: pokemonStat,
|
||||||
pokemon: pokemon,
|
pokemon: pokemon,
|
||||||
starterSelectUiHandler: starterSelectUiHandler,
|
starterSelectUiHandler: starterSelectUiHandler,
|
||||||
tutorial: tutorial
|
tutorial: tutorial,
|
||||||
|
nature: nature,
|
||||||
|
growth: growth
|
||||||
}
|
}
|
||||||
|
|
@ -0,0 +1,10 @@
|
||||||
|
import { SimpleTranslationEntries } from "#app/plugins/i18n";
|
||||||
|
|
||||||
|
export const growth: SimpleTranslationEntries = {
|
||||||
|
"Erratic": "Errático",
|
||||||
|
"Fast": "Rápido",
|
||||||
|
"Medium_Fast": "Medio Rápido",
|
||||||
|
"Medium_Slow": "Medio Lento",
|
||||||
|
"Slow": "Lento",
|
||||||
|
"Fluctuating": "Fluctuante"
|
||||||
|
} as const;
|
||||||
|
|
@ -0,0 +1,29 @@
|
||||||
|
import { SimpleTranslationEntries } from "#app/plugins/i18n";
|
||||||
|
|
||||||
|
export const nature: SimpleTranslationEntries = {
|
||||||
|
"Hardy": "Fuerte",
|
||||||
|
"Lonely": "Huraña",
|
||||||
|
"Brave": "Audaz",
|
||||||
|
"Adamant": "Firme",
|
||||||
|
"Naughty": "Pícara",
|
||||||
|
"Bold": "Osada",
|
||||||
|
"Docile": "Dócil",
|
||||||
|
"Relaxed": "Plácida",
|
||||||
|
"Impish": "Agitada",
|
||||||
|
"Lax": "Floja",
|
||||||
|
"Timid": "Miedosa",
|
||||||
|
"Hasty": "Activa",
|
||||||
|
"Serious": "Seria",
|
||||||
|
"Jolly": "Alegre",
|
||||||
|
"Naive": "Ingenua",
|
||||||
|
"Modest": "Modesta",
|
||||||
|
"Mild": "Afable",
|
||||||
|
"Quiet": "Mansa",
|
||||||
|
"Bashful": "Tímida",
|
||||||
|
"Rash": "Alocada",
|
||||||
|
"Calm": "Serena",
|
||||||
|
"Gentle": "Amable",
|
||||||
|
"Sassy": "Grosera",
|
||||||
|
"Careful": "Cauta",
|
||||||
|
"Quirky": "Rara"
|
||||||
|
} as const;
|
||||||
|
|
@ -2,9 +2,11 @@ import { ability } from "./ability";
|
||||||
import { battle } from "./battle";
|
import { battle } from "./battle";
|
||||||
import { commandUiHandler } from "./command-ui-handler";
|
import { commandUiHandler } from "./command-ui-handler";
|
||||||
import { fightUiHandler } from "./fight-ui-handler";
|
import { fightUiHandler } from "./fight-ui-handler";
|
||||||
|
import { growth } from "./growth";
|
||||||
import { menu } from "./menu";
|
import { menu } from "./menu";
|
||||||
import { menuUiHandler } from "./menu-ui-handler";
|
import { menuUiHandler } from "./menu-ui-handler";
|
||||||
import { move } from "./move";
|
import { move } from "./move";
|
||||||
|
import { nature } from "./nature";
|
||||||
import { pokeball } from "./pokeball";
|
import { pokeball } from "./pokeball";
|
||||||
import { pokemon } from "./pokemon";
|
import { pokemon } from "./pokemon";
|
||||||
import { pokemonStat } from "./pokemon-stat";
|
import { pokemonStat } from "./pokemon-stat";
|
||||||
|
|
@ -24,5 +26,7 @@ export const frConfig = {
|
||||||
pokemonStat: pokemonStat,
|
pokemonStat: pokemonStat,
|
||||||
pokemon: pokemon,
|
pokemon: pokemon,
|
||||||
starterSelectUiHandler: starterSelectUiHandler,
|
starterSelectUiHandler: starterSelectUiHandler,
|
||||||
tutorial: tutorial
|
tutorial: tutorial,
|
||||||
|
nature: nature,
|
||||||
|
growth: growth
|
||||||
}
|
}
|
||||||
|
|
@ -0,0 +1,10 @@
|
||||||
|
import { SimpleTranslationEntries } from "#app/plugins/i18n";
|
||||||
|
|
||||||
|
export const growth: SimpleTranslationEntries = {
|
||||||
|
"Erratic": "Erratic",
|
||||||
|
"Fast": "Fast",
|
||||||
|
"Medium_Fast": "Medium Fast",
|
||||||
|
"Medium_Slow": "Medium Slow",
|
||||||
|
"Slow": "Slow",
|
||||||
|
"Fluctuating": "Fluctuating"
|
||||||
|
} as const;
|
||||||
|
|
@ -0,0 +1,29 @@
|
||||||
|
import { SimpleTranslationEntries } from "#app/plugins/i18n";
|
||||||
|
|
||||||
|
export const nature: SimpleTranslationEntries = {
|
||||||
|
"Hardy": "Hardi",
|
||||||
|
"Lonely": "Solo",
|
||||||
|
"Brave": "Brave",
|
||||||
|
"Adamant": "Rigide",
|
||||||
|
"Naughty": "Mauvais",
|
||||||
|
"Bold": "Assuré",
|
||||||
|
"Docile": "Docile",
|
||||||
|
"Relaxed": "Relax",
|
||||||
|
"Impish": "Malin",
|
||||||
|
"Lax": "Lâche",
|
||||||
|
"Timid": "Timide",
|
||||||
|
"Hasty": "Pressé",
|
||||||
|
"Serious": "Sérieux",
|
||||||
|
"Jolly": "Jovial",
|
||||||
|
"Naive": "Naïf",
|
||||||
|
"Modest": "Modeste",
|
||||||
|
"Mild": "Doux",
|
||||||
|
"Quiet": "Discret",
|
||||||
|
"Bashful": "Pudique",
|
||||||
|
"Rash": "Foufou",
|
||||||
|
"Calm": "Calme",
|
||||||
|
"Gentle": "Gentil",
|
||||||
|
"Sassy": "Malpoli",
|
||||||
|
"Careful": "Prudent",
|
||||||
|
"Quirky": "Bizarre"
|
||||||
|
} as const;
|
||||||
|
|
@ -2,9 +2,11 @@ import { ability } from "./ability";
|
||||||
import { battle } from "./battle";
|
import { battle } from "./battle";
|
||||||
import { commandUiHandler } from "./command-ui-handler";
|
import { commandUiHandler } from "./command-ui-handler";
|
||||||
import { fightUiHandler } from "./fight-ui-handler";
|
import { fightUiHandler } from "./fight-ui-handler";
|
||||||
|
import { growth } from "./growth";
|
||||||
import { menu } from "./menu";
|
import { menu } from "./menu";
|
||||||
import { menuUiHandler } from "./menu-ui-handler";
|
import { menuUiHandler } from "./menu-ui-handler";
|
||||||
import { move } from "./move";
|
import { move } from "./move";
|
||||||
|
import { nature } from "./nature";
|
||||||
import { pokeball } from "./pokeball";
|
import { pokeball } from "./pokeball";
|
||||||
import { pokemon } from "./pokemon";
|
import { pokemon } from "./pokemon";
|
||||||
import { pokemonStat } from "./pokemon-stat";
|
import { pokemonStat } from "./pokemon-stat";
|
||||||
|
|
@ -24,5 +26,7 @@ export const itConfig = {
|
||||||
pokemonStat: pokemonStat,
|
pokemonStat: pokemonStat,
|
||||||
pokemon: pokemon,
|
pokemon: pokemon,
|
||||||
starterSelectUiHandler: starterSelectUiHandler,
|
starterSelectUiHandler: starterSelectUiHandler,
|
||||||
tutorial: tutorial
|
tutorial: tutorial,
|
||||||
|
nature: nature,
|
||||||
|
growth: growth
|
||||||
}
|
}
|
||||||
|
|
@ -0,0 +1,10 @@
|
||||||
|
import { SimpleTranslationEntries } from "#app/plugins/i18n";
|
||||||
|
|
||||||
|
export const growth: SimpleTranslationEntries = {
|
||||||
|
"Erratic": "Erratic",
|
||||||
|
"Fast": "Fast",
|
||||||
|
"Medium_Fast": "Medium Fast",
|
||||||
|
"Medium_Slow": "Medium Slow",
|
||||||
|
"Slow": "Slow",
|
||||||
|
"Fluctuating": "Fluctuating"
|
||||||
|
} as const;
|
||||||
|
|
@ -0,0 +1,29 @@
|
||||||
|
import { SimpleTranslationEntries } from "#app/plugins/i18n";
|
||||||
|
|
||||||
|
export const nature: SimpleTranslationEntries = {
|
||||||
|
"Hardy": "Hardy",
|
||||||
|
"Lonely": "Lonely",
|
||||||
|
"Brave": "Brave",
|
||||||
|
"Adamant": "Adamant",
|
||||||
|
"Naughty": "Naughty",
|
||||||
|
"Bold": "Bold",
|
||||||
|
"Docile": "Docile",
|
||||||
|
"Relaxed": "Relaxed",
|
||||||
|
"Impish": "Impish",
|
||||||
|
"Lax": "Lax",
|
||||||
|
"Timid": "Timid",
|
||||||
|
"Hasty": "Hasty",
|
||||||
|
"Serious": "Serious",
|
||||||
|
"Jolly": "Jolly",
|
||||||
|
"Naive": "Naive",
|
||||||
|
"Modest": "Modest",
|
||||||
|
"Mild": "Mild",
|
||||||
|
"Quiet": "Quiet",
|
||||||
|
"Bashful": "Bashful",
|
||||||
|
"Rash": "Rash",
|
||||||
|
"Calm": "Calm",
|
||||||
|
"Gentle": "Gentle",
|
||||||
|
"Sassy": "Sassy",
|
||||||
|
"Careful": "Careful",
|
||||||
|
"Quirky": "Quirky"
|
||||||
|
} as const;
|
||||||
|
|
@ -10,6 +10,7 @@ import { pokemon } from "./pokemon";
|
||||||
import { pokemonStat } from "./pokemon-stat";
|
import { pokemonStat } from "./pokemon-stat";
|
||||||
import { starterSelectUiHandler } from "./starter-select-ui-handler";
|
import { starterSelectUiHandler } from "./starter-select-ui-handler";
|
||||||
import { tutorial } from "./tutorial";
|
import { tutorial } from "./tutorial";
|
||||||
|
import { nature } from "./nature";
|
||||||
|
|
||||||
|
|
||||||
export const zhCnConfig = {
|
export const zhCnConfig = {
|
||||||
|
|
@ -24,5 +25,7 @@ export const zhCnConfig = {
|
||||||
pokemonStat: pokemonStat,
|
pokemonStat: pokemonStat,
|
||||||
pokemon: pokemon,
|
pokemon: pokemon,
|
||||||
starterSelectUiHandler: starterSelectUiHandler,
|
starterSelectUiHandler: starterSelectUiHandler,
|
||||||
tutorial: tutorial
|
tutorial: tutorial,
|
||||||
|
|
||||||
|
nature: nature
|
||||||
}
|
}
|
||||||
|
|
@ -0,0 +1,29 @@
|
||||||
|
import { SimpleTranslationEntries } from "#app/plugins/i18n";
|
||||||
|
|
||||||
|
export const nature: SimpleTranslationEntries = {
|
||||||
|
"Hardy": "Hardy",
|
||||||
|
"Lonely": "Lonely",
|
||||||
|
"Brave": "Brave",
|
||||||
|
"Adamant": "Adamant",
|
||||||
|
"Naughty": "Naughty",
|
||||||
|
"Bold": "Bold",
|
||||||
|
"Docile": "Docile",
|
||||||
|
"Relaxed": "Relaxed",
|
||||||
|
"Impish": "Impish",
|
||||||
|
"Lax": "Lax",
|
||||||
|
"Timid": "Timid",
|
||||||
|
"Hasty": "Hasty",
|
||||||
|
"Serious": "Serious",
|
||||||
|
"Jolly": "Jolly",
|
||||||
|
"Naive": "Naive",
|
||||||
|
"Modest": "Modest",
|
||||||
|
"Mild": "Mild",
|
||||||
|
"Quiet": "Quiet",
|
||||||
|
"Bashful": "Bashful",
|
||||||
|
"Rash": "Rash",
|
||||||
|
"Calm": "Calm",
|
||||||
|
"Gentle": "Gentle",
|
||||||
|
"Sassy": "Sassy",
|
||||||
|
"Careful": "Careful",
|
||||||
|
"Quirky": "Quirky"
|
||||||
|
} as const;
|
||||||
|
|
@ -103,6 +103,8 @@ declare module 'i18next' {
|
||||||
fightUiHandler: SimpleTranslationEntries;
|
fightUiHandler: SimpleTranslationEntries;
|
||||||
tutorial: SimpleTranslationEntries;
|
tutorial: SimpleTranslationEntries;
|
||||||
starterSelectUiHandler: SimpleTranslationEntries;
|
starterSelectUiHandler: SimpleTranslationEntries;
|
||||||
|
nature: SimpleTranslationEntries;
|
||||||
|
growth: SimpleTranslationEntries;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -754,7 +754,7 @@ export class GameData {
|
||||||
tryClearSession(scene: BattleScene, slotId: integer): Promise<[success: boolean, newClear: boolean]> {
|
tryClearSession(scene: BattleScene, slotId: integer): Promise<[success: boolean, newClear: boolean]> {
|
||||||
return new Promise<[boolean, boolean]>(resolve => {
|
return new Promise<[boolean, boolean]>(resolve => {
|
||||||
if (bypassLogin) {
|
if (bypassLogin) {
|
||||||
localStorage.removeItem('sessionData');
|
localStorage.removeItem(`sessionData${slotId ? slotId : ''}`);
|
||||||
return resolve([true, true]);
|
return resolve([true, true]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1294,7 +1294,14 @@ export default class StarterSelectUiHandler extends MessageUiHandler {
|
||||||
this.pokemonLuckText.setTint(getVariantTint(Math.min(luck - 1, 2) as Variant));
|
this.pokemonLuckText.setTint(getVariantTint(Math.min(luck - 1, 2) as Variant));
|
||||||
this.pokemonLuckLabelText.setVisible(this.pokemonLuckText.visible);
|
this.pokemonLuckLabelText.setVisible(this.pokemonLuckText.visible);
|
||||||
|
|
||||||
this.pokemonGrowthRateText.setText(Utils.toReadableString(GrowthRate[species.growthRate]));
|
//Growth translate
|
||||||
|
let growthReadable = Utils.toReadableString(GrowthRate[species.growthRate]);
|
||||||
|
let growthAux = growthReadable.replace(" ", "_")
|
||||||
|
if(i18next.exists("growth:" + growthAux)){
|
||||||
|
growthReadable = i18next.t("growth:"+ growthAux as any)
|
||||||
|
}
|
||||||
|
this.pokemonGrowthRateText.setText(growthReadable);
|
||||||
|
|
||||||
this.pokemonGrowthRateText.setColor(getGrowthRateColor(species.growthRate));
|
this.pokemonGrowthRateText.setColor(getGrowthRateColor(species.growthRate));
|
||||||
this.pokemonGrowthRateText.setShadowColor(getGrowthRateColor(species.growthRate, true));
|
this.pokemonGrowthRateText.setShadowColor(getGrowthRateColor(species.growthRate, true));
|
||||||
this.pokemonGrowthRateLabelText.setVisible(true);
|
this.pokemonGrowthRateLabelText.setVisible(true);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue