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
@ -29,12 +29,12 @@ export enum BattlerIndex {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface TurnCommand {
|
export interface TurnCommand {
|
||||||
command: Command;
|
command: Command;
|
||||||
cursor?: number;
|
cursor?: number;
|
||||||
move?: TurnMove;
|
move?: TurnMove;
|
||||||
targets?: BattlerIndex[];
|
targets?: BattlerIndex[];
|
||||||
skip?: boolean;
|
skip?: boolean;
|
||||||
args?: any[];
|
args?: any[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface FaintLogEntry {
|
export interface FaintLogEntry {
|
||||||
@ -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 { BattleType } from "#enums/battle-spec";
|
||||||
import { ClassicFixedBossWaves } from "#enums/fixed-boss-waves";
|
import { ClassicFixedBossWaves } from "#enums/fixed-boss-waves";
|
||||||
import Trainer, { TrainerVariant } from "#app/field/trainer";
|
import Trainer, { TrainerVariant } from "#app/field/trainer";
|
||||||
@ -9,6 +8,7 @@ import * as Utils from "#app/utils";
|
|||||||
import { PlayerGender } from "#enums/player-gender";
|
import { PlayerGender } from "#enums/player-gender";
|
||||||
import { TrainerType } from "#enums/trainer-type";
|
import { TrainerType } from "#enums/trainer-type";
|
||||||
import { trainerConfigs } from "../trainer-config";
|
import { trainerConfigs } from "../trainer-config";
|
||||||
|
import type { EnemyPokemon } from "#app/field/pokemon";
|
||||||
|
|
||||||
export class FixedBattleConfig {
|
export class FixedBattleConfig {
|
||||||
public battleType: BattleType;
|
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
|
* 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
|
* @param trainerPool The TrainerType or list of TrainerTypes that can possibly be generated
|
||||||
|
Loading…
Reference in New Issue
Block a user