mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-26 17:29:30 +02:00
Compare commits
5 Commits
149593bc4d
...
67e2fad063
Author | SHA1 | Date | |
---|---|---|---|
|
67e2fad063 | ||
|
9d7b9f742e | ||
|
35cf80705e | ||
|
907e3c8208 | ||
|
cb3ae4ab87 |
Binary file not shown.
Binary file not shown.
@ -7,6 +7,7 @@ import { TimeOfDay } from "#enums/time-of-day";
|
|||||||
import { TrainerType } from "#enums/trainer-type";
|
import { TrainerType } from "#enums/trainer-type";
|
||||||
import { randSeedInt } from "#utils/common";
|
import { randSeedInt } from "#utils/common";
|
||||||
import { getEnumValues } from "#utils/enums";
|
import { getEnumValues } from "#utils/enums";
|
||||||
|
import { toCamelCase } from "#utils/strings";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
|
|
||||||
export function getBiomeName(biome: BiomeId | -1) {
|
export function getBiomeName(biome: BiomeId | -1) {
|
||||||
@ -15,13 +16,13 @@ export function getBiomeName(biome: BiomeId | -1) {
|
|||||||
}
|
}
|
||||||
switch (biome) {
|
switch (biome) {
|
||||||
case BiomeId.GRASS:
|
case BiomeId.GRASS:
|
||||||
return i18next.t("biome:GRASS");
|
return i18next.t("biome:grass");
|
||||||
case BiomeId.RUINS:
|
case BiomeId.RUINS:
|
||||||
return i18next.t("biome:RUINS");
|
return i18next.t("biome:ruins");
|
||||||
case BiomeId.END:
|
case BiomeId.END:
|
||||||
return i18next.t("biome:END");
|
return i18next.t("biome:end");
|
||||||
default:
|
default:
|
||||||
return i18next.t(`biome:${BiomeId[biome].toUpperCase()}`);
|
return i18next.t(`biome:${toCamelCase(BiomeId[biome])}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2,43 +2,43 @@
|
|||||||
// that caused this to be moved out in the first place
|
// that caused this to be moved out in the first place
|
||||||
export const doubleBattleDialogue = {
|
export const doubleBattleDialogue = {
|
||||||
blue_red_double: {
|
blue_red_double: {
|
||||||
encounter: ["doubleBattleDialogue:blue_red_double.encounter.1"],
|
encounter: ["doubleBattleDialogue:blueRedDouble.encounter.1"],
|
||||||
victory: ["doubleBattleDialogue:blue_red_double.victory.1"],
|
victory: ["doubleBattleDialogue:blueRedDouble.victory.1"],
|
||||||
},
|
},
|
||||||
red_blue_double: {
|
red_blue_double: {
|
||||||
encounter: ["doubleBattleDialogue:red_blue_double.encounter.1"],
|
encounter: ["doubleBattleDialogue:redBlueDouble.encounter.1"],
|
||||||
victory: ["doubleBattleDialogue:red_blue_double.victory.1"],
|
victory: ["doubleBattleDialogue:redBlueDouble.victory.1"],
|
||||||
},
|
},
|
||||||
tate_liza_double: {
|
tate_liza_double: {
|
||||||
encounter: ["doubleBattleDialogue:tate_liza_double.encounter.1"],
|
encounter: ["doubleBattleDialogue:tateLizaDouble.encounter.1"],
|
||||||
victory: ["doubleBattleDialogue:tate_liza_double.victory.1"],
|
victory: ["doubleBattleDialogue:tateLizaDouble.victory.1"],
|
||||||
},
|
},
|
||||||
liza_tate_double: {
|
liza_tate_double: {
|
||||||
encounter: ["doubleBattleDialogue:liza_tate_double.encounter.1"],
|
encounter: ["doubleBattleDialogue:lizaTateDouble.encounter.1"],
|
||||||
victory: ["doubleBattleDialogue:liza_tate_double.victory.1"],
|
victory: ["doubleBattleDialogue:lizaTateDouble.victory.1"],
|
||||||
},
|
},
|
||||||
wallace_steven_double: {
|
wallace_steven_double: {
|
||||||
encounter: ["doubleBattleDialogue:wallace_steven_double.encounter.1"],
|
encounter: ["doubleBattleDialogue:wallaceStevenDouble.encounter.1"],
|
||||||
victory: ["doubleBattleDialogue:wallace_steven_double.victory.1"],
|
victory: ["doubleBattleDialogue:wallaceStevenDouble.victory.1"],
|
||||||
},
|
},
|
||||||
steven_wallace_double: {
|
steven_wallace_double: {
|
||||||
encounter: ["doubleBattleDialogue:steven_wallace_double.encounter.1"],
|
encounter: ["doubleBattleDialogue:stevenWallaceDouble.encounter.1"],
|
||||||
victory: ["doubleBattleDialogue:steven_wallace_double.victory.1"],
|
victory: ["doubleBattleDialogue:stevenWallaceDouble.victory.1"],
|
||||||
},
|
},
|
||||||
alder_iris_double: {
|
alder_iris_double: {
|
||||||
encounter: ["doubleBattleDialogue:alder_iris_double.encounter.1"],
|
encounter: ["doubleBattleDialogue:alderIrisDouble.encounter.1"],
|
||||||
victory: ["doubleBattleDialogue:alder_iris_double.victory.1"],
|
victory: ["doubleBattleDialogue:alderIrisDouble.victory.1"],
|
||||||
},
|
},
|
||||||
iris_alder_double: {
|
iris_alder_double: {
|
||||||
encounter: ["doubleBattleDialogue:iris_alder_double.encounter.1"],
|
encounter: ["doubleBattleDialogue:irisAlderDouble.encounter.1"],
|
||||||
victory: ["doubleBattleDialogue:iris_alder_double.victory.1"],
|
victory: ["doubleBattleDialogue:irisAlderDouble.victory.1"],
|
||||||
},
|
},
|
||||||
marnie_piers_double: {
|
marnie_piers_double: {
|
||||||
encounter: ["doubleBattleDialogue:marnie_piers_double.encounter.1"],
|
encounter: ["doubleBattleDialogue:marniePiersDouble.encounter.1"],
|
||||||
victory: ["doubleBattleDialogue:marnie_piers_double.victory.1"],
|
victory: ["doubleBattleDialogue:marniePiersDouble.victory.1"],
|
||||||
},
|
},
|
||||||
piers_marnie_double: {
|
piers_marnie_double: {
|
||||||
encounter: ["doubleBattleDialogue:piers_marnie_double.encounter.1"],
|
encounter: ["doubleBattleDialogue:piersMarnieDouble.encounter.1"],
|
||||||
victory: ["doubleBattleDialogue:piers_marnie_double.victory.1"],
|
victory: ["doubleBattleDialogue:piersMarnieDouble.victory.1"],
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -1865,27 +1865,43 @@ export const trainerConfigs: TrainerConfigs = {
|
|||||||
.setPartyMemberFunc(
|
.setPartyMemberFunc(
|
||||||
0,
|
0,
|
||||||
getRandomPartyMemberFunc([
|
getRandomPartyMemberFunc([
|
||||||
|
SpeciesId.METAPOD,
|
||||||
|
SpeciesId.LEDYBA,
|
||||||
|
SpeciesId.CLEFFA,
|
||||||
|
SpeciesId.WOOPER,
|
||||||
|
SpeciesId.TEDDIURSA,
|
||||||
|
SpeciesId.REMORAID,
|
||||||
|
SpeciesId.HOUNDOUR,
|
||||||
|
SpeciesId.SILCOON,
|
||||||
SpeciesId.PLUSLE,
|
SpeciesId.PLUSLE,
|
||||||
SpeciesId.VOLBEAT,
|
SpeciesId.VOLBEAT,
|
||||||
SpeciesId.PACHIRISU,
|
SpeciesId.SPINDA,
|
||||||
SpeciesId.SILCOON,
|
SpeciesId.BONSLY,
|
||||||
SpeciesId.METAPOD,
|
|
||||||
SpeciesId.IGGLYBUFF,
|
|
||||||
SpeciesId.PETILIL,
|
SpeciesId.PETILIL,
|
||||||
SpeciesId.EEVEE,
|
SpeciesId.SPRITZEE,
|
||||||
|
SpeciesId.MILCERY,
|
||||||
|
SpeciesId.PICHU,
|
||||||
]),
|
]),
|
||||||
)
|
)
|
||||||
.setPartyMemberFunc(
|
.setPartyMemberFunc(
|
||||||
1,
|
1,
|
||||||
getRandomPartyMemberFunc(
|
getRandomPartyMemberFunc(
|
||||||
[
|
[
|
||||||
|
SpeciesId.KAKUNA,
|
||||||
|
SpeciesId.SPINARAK,
|
||||||
|
SpeciesId.IGGLYBUFF,
|
||||||
|
SpeciesId.PALDEA_WOOPER,
|
||||||
|
SpeciesId.PHANPY,
|
||||||
|
SpeciesId.MANTYKE,
|
||||||
|
SpeciesId.ELECTRIKE,
|
||||||
|
SpeciesId.CASCOON,
|
||||||
SpeciesId.MINUN,
|
SpeciesId.MINUN,
|
||||||
SpeciesId.ILLUMISE,
|
SpeciesId.ILLUMISE,
|
||||||
SpeciesId.EMOLGA,
|
SpeciesId.SPINDA,
|
||||||
SpeciesId.CASCOON,
|
SpeciesId.MIME_JR,
|
||||||
SpeciesId.KAKUNA,
|
|
||||||
SpeciesId.CLEFFA,
|
|
||||||
SpeciesId.COTTONEE,
|
SpeciesId.COTTONEE,
|
||||||
|
SpeciesId.SWIRLIX,
|
||||||
|
SpeciesId.FIDOUGH,
|
||||||
SpeciesId.EEVEE,
|
SpeciesId.EEVEE,
|
||||||
],
|
],
|
||||||
TrainerSlot.TRAINER_PARTNER,
|
TrainerSlot.TRAINER_PARTNER,
|
||||||
|
@ -895,7 +895,7 @@ export class Arena {
|
|||||||
case BiomeId.CAVE:
|
case BiomeId.CAVE:
|
||||||
return 14.24;
|
return 14.24;
|
||||||
case BiomeId.DESERT:
|
case BiomeId.DESERT:
|
||||||
return 1.143;
|
return 9.02;
|
||||||
case BiomeId.ICE_CAVE:
|
case BiomeId.ICE_CAVE:
|
||||||
return 0.0;
|
return 0.0;
|
||||||
case BiomeId.MEADOW:
|
case BiomeId.MEADOW:
|
||||||
@ -923,7 +923,7 @@ export class Arena {
|
|||||||
case BiomeId.JUNGLE:
|
case BiomeId.JUNGLE:
|
||||||
return 0.0;
|
return 0.0;
|
||||||
case BiomeId.FAIRY_CAVE:
|
case BiomeId.FAIRY_CAVE:
|
||||||
return 4.542;
|
return 0.0;
|
||||||
case BiomeId.TEMPLE:
|
case BiomeId.TEMPLE:
|
||||||
return 2.547;
|
return 2.547;
|
||||||
case BiomeId.ISLAND:
|
case BiomeId.ISLAND:
|
||||||
|
@ -57,7 +57,7 @@ import { addWindow } from "#ui/ui-theme";
|
|||||||
import { BooleanHolder, getLocalizedSpriteKey, isNullOrUndefined, padInt, rgbHexToRgba } from "#utils/common";
|
import { BooleanHolder, getLocalizedSpriteKey, isNullOrUndefined, padInt, rgbHexToRgba } from "#utils/common";
|
||||||
import { getEnumValues } from "#utils/enums";
|
import { getEnumValues } from "#utils/enums";
|
||||||
import { getPokemonSpecies, getPokemonSpeciesForm } from "#utils/pokemon-utils";
|
import { getPokemonSpecies, getPokemonSpeciesForm } from "#utils/pokemon-utils";
|
||||||
import { toTitleCase } from "#utils/strings";
|
import { toCamelCase, toTitleCase } from "#utils/strings";
|
||||||
import { argbFromRgba } from "@material/material-color-utilities";
|
import { argbFromRgba } from "@material/material-color-utilities";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
import type BBCodeText from "phaser3-rex-plugins/plugins/gameobjects/tagtext/bbcodetext/BBCodeText";
|
import type BBCodeText from "phaser3-rex-plugins/plugins/gameobjects/tagtext/bbcodetext/BBCodeText";
|
||||||
@ -1517,13 +1517,13 @@ export class PokedexPageUiHandler extends MessageUiHandler {
|
|||||||
this.biomes.map(b => {
|
this.biomes.map(b => {
|
||||||
options.push({
|
options.push({
|
||||||
label:
|
label:
|
||||||
i18next.t(`biome:${BiomeId[b.biome].toUpperCase()}`) +
|
i18next.t(`biome:${toCamelCase(BiomeId[b.biome])}`) +
|
||||||
" - " +
|
" - " +
|
||||||
i18next.t(`biome:${BiomePoolTier[b.tier].toUpperCase()}`) +
|
i18next.t(`biome:${toCamelCase(BiomePoolTier[b.tier])}`) +
|
||||||
(b.tod.length === 1 && b.tod[0] === -1
|
(b.tod.length === 1 && b.tod[0] === -1
|
||||||
? ""
|
? ""
|
||||||
: " (" +
|
: " (" +
|
||||||
b.tod.map(tod => i18next.t(`biome:${TimeOfDay[tod].toUpperCase()}`)).join(", ") +
|
b.tod.map(tod => i18next.t(`biome:${toCamelCase(TimeOfDay[tod])}`)).join(", ") +
|
||||||
")"),
|
")"),
|
||||||
handler: () => false,
|
handler: () => false,
|
||||||
});
|
});
|
||||||
@ -1538,13 +1538,13 @@ export class PokedexPageUiHandler extends MessageUiHandler {
|
|||||||
this.preBiomes.map(b => {
|
this.preBiomes.map(b => {
|
||||||
options.push({
|
options.push({
|
||||||
label:
|
label:
|
||||||
i18next.t(`biome:${BiomeId[b.biome].toUpperCase()}`) +
|
i18next.t(`biome:${toCamelCase(BiomeId[b.biome])}`) +
|
||||||
" - " +
|
" - " +
|
||||||
i18next.t(`biome:${BiomePoolTier[b.tier].toUpperCase()}`) +
|
i18next.t(`biome:${toCamelCase(BiomePoolTier[b.tier])}`) +
|
||||||
(b.tod.length === 1 && b.tod[0] === -1
|
(b.tod.length === 1 && b.tod[0] === -1
|
||||||
? ""
|
? ""
|
||||||
: " (" +
|
: " (" +
|
||||||
b.tod.map(tod => i18next.t(`biome:${TimeOfDay[tod].toUpperCase()}`)).join(", ") +
|
b.tod.map(tod => i18next.t(`biome:${toCamelCase(TimeOfDay[tod])}`)).join(", ") +
|
||||||
")"),
|
")"),
|
||||||
handler: () => false,
|
handler: () => false,
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user