Move 2 funcs to proper file

This commit is contained in:
AJ Fontaine 2025-03-07 15:21:31 -05:00
parent 1a617a44f6
commit 9accc65a5b
2 changed files with 10 additions and 10 deletions

View File

@ -440,6 +440,3 @@ export class FixedBattle extends Battle {
}
}
}
export type GetTrainerFunc = () => Trainer;
export type GetEnemyPartyFunc = () => EnemyPokemon[];

View File

@ -1,4 +1,3 @@
import type { GetEnemyPartyFunc, GetTrainerFunc } from "#app/battle";
import { BattleType } from "#enums/battle-spec";
import { ClassicFixedBossWaves } from "#enums/fixed-boss-waves";
import Trainer, { TrainerVariant } from "#app/field/trainer";
@ -9,6 +8,7 @@ import * as Utils from "#app/utils";
import { PlayerGender } from "#enums/player-gender";
import { TrainerType } from "#enums/trainer-type";
import { trainerConfigs } from "../trainer-config";
import type { EnemyPokemon } from "#app/field/pokemon";
export class FixedBattleConfig {
public battleType: BattleType;
@ -49,6 +49,9 @@ export class FixedBattleConfig {
}
}
type GetTrainerFunc = () => Trainer;
type GetEnemyPartyFunc = () => EnemyPokemon[];
/**
* Helper function to generate a random trainer for evil team trainers and the elite 4/champion
* @param trainerPool The TrainerType or list of TrainerTypes that can possibly be generated