Move DamageResult to its own file
This commit is contained in:
parent
f7f87ba083
commit
f67813ec89
|
@ -0,0 +1,10 @@
|
|||
import type { HitResult } from "#enums/hit-result";
|
||||
|
||||
export type DamageResult =
|
||||
| HitResult.EFFECTIVE
|
||||
| HitResult.SUPER_EFFECTIVE
|
||||
| HitResult.NOT_VERY_EFFECTIVE
|
||||
| HitResult.ONE_HIT_KO
|
||||
| HitResult.CONFUSION
|
||||
| HitResult.INDIRECT_KO
|
||||
| HitResult.INDIRECT;
|
|
@ -1,5 +1,5 @@
|
|||
import { TextStyle, addTextObject } from "../ui/text";
|
||||
import type { DamageResult } from "./pokemon";
|
||||
import type { DamageResult } from "#app/@types/damage-result";
|
||||
import type Pokemon from "./pokemon";
|
||||
import { HitResult } from "#enums/hit-result";
|
||||
import * as Utils from "../utils";
|
||||
|
|
|
@ -272,6 +272,7 @@ import { DamageCalculationResult } from "#app/interfaces/damage-calculation-resu
|
|||
import { FieldPosition } from "#enums/field-position";
|
||||
import { AttackMoveResult } from "#app/interfaces/attack-move-result";
|
||||
import { HitResult } from "#enums/hit-result";
|
||||
import { DamageResult } from "#app/@types/damage-result";
|
||||
|
||||
export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
||||
public id: number;
|
||||
|
@ -7617,12 +7618,3 @@ export enum MoveResult {
|
|||
MISS,
|
||||
OTHER,
|
||||
}
|
||||
|
||||
export type DamageResult =
|
||||
| HitResult.EFFECTIVE
|
||||
| HitResult.SUPER_EFFECTIVE
|
||||
| HitResult.NOT_VERY_EFFECTIVE
|
||||
| HitResult.ONE_HIT_KO
|
||||
| HitResult.CONFUSION
|
||||
| HitResult.INDIRECT_KO
|
||||
| HitResult.INDIRECT;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import type { BattlerIndex } from "#app/battle";
|
||||
import type { DamageResult } from "#app/field/pokemon";
|
||||
import type { DamageResult } from "#app/@types/damage-result";
|
||||
import type { Moves } from "#enums/moves";
|
||||
|
||||
export interface AttackMoveResult {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { globalScene } from "#app/global-scene";
|
||||
import type { BattlerIndex } from "#app/battle";
|
||||
import { BattleSpec } from "#enums/battle-spec";
|
||||
import type { DamageResult } from "#app/field/pokemon";
|
||||
import type { DamageResult } from "#app/@types/damage-result";
|
||||
import { HitResult } from "#enums/hit-result";
|
||||
import { fixedInt } from "#app/utils";
|
||||
import { PokemonPhase } from "#app/phases/pokemon-phase";
|
||||
|
|
Loading…
Reference in New Issue