mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-19 13:59:27 +02:00
change challenges
This commit is contained in:
parent
ea8ac5b43c
commit
d05caf443d
@ -674,10 +674,10 @@ export class SingleGenerationChallenge extends Challenge {
|
|||||||
|
|
||||||
getDescription(overrideValue: number = this.value): string {
|
getDescription(overrideValue: number = this.value): string {
|
||||||
if (overrideValue === 0) {
|
if (overrideValue === 0) {
|
||||||
return i18next.t("challenges:singleGeneration.desc_default");
|
return i18next.t("challenges:singleGeneration.descDefault");
|
||||||
}
|
}
|
||||||
return i18next.t("challenges:singleGeneration.desc", {
|
return i18next.t("challenges:singleGeneration.desc", {
|
||||||
gen: i18next.t(`challenges:singleGeneration.gen_${overrideValue}`),
|
gen: i18next.t(`challenges:singleGeneration.gen${overrideValue}`),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -758,7 +758,7 @@ export class SingleTypeChallenge extends Challenge {
|
|||||||
getDescription(overrideValue: number = this.value): string {
|
getDescription(overrideValue: number = this.value): string {
|
||||||
const type = i18next.t(`pokemonInfo:type.${toCamelCase(PokemonType[overrideValue - 1])}`);
|
const type = i18next.t(`pokemonInfo:type.${toCamelCase(PokemonType[overrideValue - 1])}`);
|
||||||
const typeColor = `[color=${TypeColor[PokemonType[overrideValue - 1]]}][shadow=${TypeShadow[PokemonType[this.value - 1]]}]${type}[/shadow][/color]`;
|
const typeColor = `[color=${TypeColor[PokemonType[overrideValue - 1]]}][shadow=${TypeShadow[PokemonType[this.value - 1]]}]${type}[/shadow][/color]`;
|
||||||
const defaultDesc = i18next.t("challenges:singleType.desc_default");
|
const defaultDesc = i18next.t("challenges:singleType.descDefault");
|
||||||
const typeDesc = i18next.t("challenges:singleType.desc", {
|
const typeDesc = i18next.t("challenges:singleType.desc", {
|
||||||
type: typeColor,
|
type: typeColor,
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user