mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-20 15:22:19 +02:00
Move 2 funcs to proper file
This commit is contained in:
parent
1a617a44f6
commit
9accc65a5b
@ -440,6 +440,3 @@ export class FixedBattle extends Battle {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export type GetTrainerFunc = () => Trainer;
|
||||
export type GetEnemyPartyFunc = () => EnemyPokemon[];
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user