fix broken imports

This commit is contained in:
ImperialSympathizer 2024-08-26 14:21:12 -04:00
parent 6f4d0386d5
commit 30b0822c01
1 changed files with 4 additions and 22 deletions

View File

@ -2,9 +2,8 @@ import { Ability, allAbilities } from "#app/data/ability";
import { EnemyPartyConfig, initBattleWithEnemyConfig, selectPokemonForOption, setEncounterRewards, } from "#app/data/mystery-encounters/utils/encounter-phase-utils"; import { EnemyPartyConfig, initBattleWithEnemyConfig, selectPokemonForOption, setEncounterRewards, } from "#app/data/mystery-encounters/utils/encounter-phase-utils";
import { getNatureName, Nature } from "#app/data/nature"; import { getNatureName, Nature } from "#app/data/nature";
import { speciesStarters } from "#app/data/pokemon-species"; import { speciesStarters } from "#app/data/pokemon-species";
import { Stat } from "#app/data/pokemon-stat"; import { getStatName } from "#app/data/pokemon-stat";
import Pokemon, { PlayerPokemon } from "#app/field/pokemon"; import Pokemon, { PlayerPokemon } from "#app/field/pokemon";
import { pokemonInfo } from "#app/locales/en/pokemon-info";
import { PokemonHeldItemModifier } from "#app/modifier/modifier"; import { PokemonHeldItemModifier } from "#app/modifier/modifier";
import { AbilityAttr } from "#app/system/game-data"; import { AbilityAttr } from "#app/system/game-data";
import PokemonData from "#app/system/pokemon-data"; import PokemonData from "#app/system/pokemon-data";
@ -104,23 +103,6 @@ export const TrainingSessionEncounter: MysteryEncounter =
); );
scene.removePokemonFromPlayerParty(playerPokemon, false); scene.removePokemonFromPlayerParty(playerPokemon, false);
const getIvName = (index: number) => {
switch (index) {
case Stat.HP:
return pokemonInfo.Stat["HPshortened"];
case Stat.ATK:
return pokemonInfo.Stat["ATKshortened"];
case Stat.DEF:
return pokemonInfo.Stat["DEFshortened"];
case Stat.SPATK:
return pokemonInfo.Stat["SPATKshortened"];
case Stat.SPDEF:
return pokemonInfo.Stat["SPDEFshortened"];
case Stat.SPD:
return pokemonInfo.Stat["SPDshortened"];
}
};
const onBeforeRewardsPhase = () => { const onBeforeRewardsPhase = () => {
encounter.setDialogueToken("stat1", "-"); encounter.setDialogueToken("stat1", "-");
encounter.setDialogueToken("stat2", "-"); encounter.setDialogueToken("stat2", "-");
@ -147,12 +129,12 @@ export const TrainingSessionEncounter: MysteryEncounter =
if (improvedCount === 0) { if (improvedCount === 0) {
encounter.setDialogueToken( encounter.setDialogueToken(
"stat1", "stat1",
getIvName(ivToChange.index) ?? "" getStatName(ivToChange.index) ?? ""
); );
} else { } else {
encounter.setDialogueToken( encounter.setDialogueToken(
"stat2", "stat2",
getIvName(ivToChange.index) ?? "" getStatName(ivToChange.index) ?? ""
); );
} }