Move fieldPosition to its own file
This commit is contained in:
parent
b2c7573b6e
commit
c595f41ca3
|
@ -12,16 +12,16 @@ import {
|
|||
TypeBoostTag,
|
||||
} from "../battler-tags";
|
||||
import { getPokemonNameWithAffix } from "../../messages";
|
||||
import type { AttackMoveResult } from "../../field/pokemon";
|
||||
import type { AttackMoveResult } from "#app/interfaces/attack-move-result";
|
||||
import type { TurnMove } from "#app/interfaces/turn-move";
|
||||
import type Pokemon from "../../field/pokemon";
|
||||
import {
|
||||
EnemyPokemon,
|
||||
FieldPosition,
|
||||
HitResult,
|
||||
MoveResult,
|
||||
PlayerPokemon,
|
||||
} from "../../field/pokemon";
|
||||
import { FieldPosition } from "#enums/field-position";
|
||||
import { PokemonMove } from "./pokemon-move";
|
||||
import {
|
||||
getNonVolatileStatusEffects,
|
||||
|
|
|
@ -13,7 +13,7 @@ import { MysteryEncounterOptionBuilder } from "#app/data/mystery-encounters/myst
|
|||
import { TrainerSlot } from "#enums/trainer-slot";
|
||||
import type { PlayerPokemon } from "#app/field/pokemon";
|
||||
import type Pokemon from "#app/field/pokemon";
|
||||
import { FieldPosition } from "#app/field/pokemon";
|
||||
import { FieldPosition } from "#enums/field-position";
|
||||
import { getPokemonSpecies } from "#app/data/pokemon-species";
|
||||
import { MoneyRequirement } from "#app/data/mystery-encounters/mystery-encounter-requirements";
|
||||
import { queueEncounterMessage, showEncounterText } from "#app/data/mystery-encounters/utils/encounter-dialogue-utils";
|
||||
|
|
|
@ -10,7 +10,8 @@ import { showEncounterText } from "#app/data/mystery-encounters/utils/encounter-
|
|||
import type { PlayerPokemon } from "#app/field/pokemon";
|
||||
import type { AiType } from "#enums/ai-type";
|
||||
import type Pokemon from "#app/field/pokemon";
|
||||
import { EnemyPokemon, FieldPosition, PokemonSummonData } from "#app/field/pokemon";
|
||||
import { EnemyPokemon, PokemonSummonData } from "#app/field/pokemon";
|
||||
import { FieldPosition } from "#enums/field-position";
|
||||
import { PokemonMove } from "#app/data/moves/pokemon-move";
|
||||
import type { CustomModifierSettings, ModifierType } from "#app/modifier/modifier-type";
|
||||
import {
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
|
||||
export enum FieldPosition {
|
||||
CENTER,
|
||||
LEFT,
|
||||
RIGHT
|
||||
}
|
|
@ -220,7 +220,6 @@ import {
|
|||
SpeciesFormChangeLapseTeraTrigger,
|
||||
SpeciesFormChangeMoveLearnedTrigger,
|
||||
SpeciesFormChangePostMoveTrigger,
|
||||
SpeciesFormChangeStatusEffectTrigger,
|
||||
} from "#app/data/pokemon-forms";
|
||||
import { TerrainType } from "#app/data/terrain";
|
||||
import type { TrainerSlot } from "#enums/trainer-slot";
|
||||
|
@ -270,12 +269,8 @@ import { TurnMove } from "#app/interfaces/turn-move";
|
|||
import { AiType } from "#enums/ai-type";
|
||||
import { PokemonMove } from "#app/data/moves/pokemon-move";
|
||||
import { DamageCalculationResult } from "#app/interfaces/damage-calculation-result";
|
||||
|
||||
export enum FieldPosition {
|
||||
CENTER,
|
||||
LEFT,
|
||||
RIGHT,
|
||||
}
|
||||
import { FieldPosition } from "#enums/field-position";
|
||||
import { AttackMoveResult } from "#app/interfaces/attack-move-result";
|
||||
|
||||
export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
||||
public id: number;
|
||||
|
@ -7545,15 +7540,6 @@ export class EnemyPokemon extends Pokemon {
|
|||
}
|
||||
}
|
||||
|
||||
export interface AttackMoveResult {
|
||||
move: Moves;
|
||||
result: DamageResult;
|
||||
damage: number;
|
||||
critical: boolean;
|
||||
sourceId: number;
|
||||
sourceBattlerIndex: BattlerIndex;
|
||||
}
|
||||
|
||||
export class PokemonSummonData {
|
||||
/** [Atk, Def, SpAtk, SpDef, Spd, Acc, Eva] */
|
||||
public statStages: number[] = [0, 0, 0, 0, 0, 0, 0];
|
||||
|
@ -7655,5 +7641,3 @@ export type DamageResult =
|
|||
| HitResult.CONFUSION
|
||||
| HitResult.INDIRECT_KO
|
||||
| HitResult.INDIRECT;
|
||||
|
||||
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
import type { BattlerIndex } from "#app/battle";
|
||||
import type { DamageResult } from "#app/field/pokemon";
|
||||
import type { Moves } from "#enums/moves";
|
||||
|
||||
export interface AttackMoveResult {
|
||||
move: Moves;
|
||||
result: DamageResult;
|
||||
damage: number;
|
||||
critical: boolean;
|
||||
sourceId: number;
|
||||
sourceBattlerIndex: BattlerIndex;
|
||||
}
|
|
@ -13,7 +13,7 @@ import { Moves } from "#app/enums/moves";
|
|||
import { PokeballType } from "#enums/pokeball";
|
||||
import type { PlayerPokemon } from "#app/field/pokemon";
|
||||
import type { TurnMove } from "#app/interfaces/turn-move";
|
||||
import { FieldPosition } from "#app/field/pokemon";
|
||||
import { FieldPosition } from "#enums/field-position";
|
||||
import { getPokemonNameWithAffix } from "#app/messages";
|
||||
import { Command } from "#app/ui/command-ui-handler";
|
||||
import { Mode } from "#app/ui/ui";
|
||||
|
|
|
@ -11,7 +11,7 @@ import { TrainerSlot } from "#enums/trainer-slot";
|
|||
import { getRandomWeatherType } from "#app/data/weather";
|
||||
import { EncounterPhaseEvent } from "#app/events/battle-scene";
|
||||
import type Pokemon from "#app/field/pokemon";
|
||||
import { FieldPosition } from "#app/field/pokemon";
|
||||
import { FieldPosition } from "#enums/field-position";
|
||||
import { getPokemonNameWithAffix } from "#app/messages";
|
||||
import { BoostBugSpawnModifier, IvScannerModifier, TurnHeldItemTransferModifier } from "#app/modifier/modifier";
|
||||
import { ModifierPoolType, regenerateModifierPoolThresholds } from "#app/modifier/modifier-type";
|
||||
|
|
|
@ -5,7 +5,7 @@ import { TrainerSlot } from "#enums/trainer-slot";
|
|||
import { PlayerGender } from "#app/enums/player-gender";
|
||||
import { addPokeballOpenParticles } from "#app/field/anims";
|
||||
import type Pokemon from "#app/field/pokemon";
|
||||
import { FieldPosition } from "#app/field/pokemon";
|
||||
import { FieldPosition } from "#enums/field-position";
|
||||
import { getPokemonNameWithAffix } from "#app/messages";
|
||||
import i18next from "i18next";
|
||||
import { PartyMemberPokemonPhase } from "./party-member-pokemon-phase";
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { globalScene } from "#app/global-scene";
|
||||
import { FieldPosition } from "#app/field/pokemon";
|
||||
import { FieldPosition } from "#enums/field-position";
|
||||
import { BattlePhase } from "./battle-phase";
|
||||
|
||||
export class ToggleDoublePositionPhase extends BattlePhase {
|
||||
|
|
Loading…
Reference in New Issue