mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-17 22:02:18 +02:00
Move DamageCalculationResult interface to its own file
This commit is contained in:
parent
3458af2047
commit
6a26c5b4fa
@ -263,6 +263,7 @@ import { LearnMoveSituation } from "#enums/learn-move-situation";
|
|||||||
import { TurnMove } from "#app/interfaces/turn-move";
|
import { TurnMove } from "#app/interfaces/turn-move";
|
||||||
import { AiType } from "#enums/ai-type";
|
import { AiType } from "#enums/ai-type";
|
||||||
import { PokemonMove } from "#app/data/moves/pokemon-move";
|
import { PokemonMove } from "#app/data/moves/pokemon-move";
|
||||||
|
import { DamageCalculationResult } from "#app/interfaces/damage-calculation-result";
|
||||||
|
|
||||||
export enum FieldPosition {
|
export enum FieldPosition {
|
||||||
CENTER,
|
CENTER,
|
||||||
@ -7888,14 +7889,4 @@ export type DamageResult =
|
|||||||
| HitResult.INDIRECT_KO
|
| HitResult.INDIRECT_KO
|
||||||
| HitResult.INDIRECT;
|
| HitResult.INDIRECT;
|
||||||
|
|
||||||
/** Interface containing the results of a damage calculation for a given move */
|
|
||||||
export interface DamageCalculationResult {
|
|
||||||
/** `true` if the move was cancelled (thus suppressing "No Effect" messages) */
|
|
||||||
cancelled: boolean;
|
|
||||||
/** The effectiveness of the move */
|
|
||||||
result: HitResult;
|
|
||||||
/** The damage dealt by the move */
|
|
||||||
damage: number;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
11
src/interfaces/damage-calculation-result.ts
Normal file
11
src/interfaces/damage-calculation-result.ts
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
import type { HitResult } from "#app/field/pokemon";
|
||||||
|
|
||||||
|
/** Interface containing the results of a damage calculation for a given move */
|
||||||
|
export interface DamageCalculationResult {
|
||||||
|
/** `true` if the move was cancelled (thus suppressing "No Effect" messages) */
|
||||||
|
cancelled: boolean;
|
||||||
|
/** The effectiveness of the move */
|
||||||
|
result: HitResult;
|
||||||
|
/** The damage dealt by the move */
|
||||||
|
damage: number;
|
||||||
|
}
|
@ -1,7 +1,7 @@
|
|||||||
import { BattlerIndex } from "#app/battle";
|
import { BattlerIndex } from "#app/battle";
|
||||||
import { allMoves } from "#app/data/moves/all-moves";
|
import { allMoves } from "#app/data/moves/all-moves";
|
||||||
import { BattlerTagType } from "#app/enums/battler-tag-type";
|
import { BattlerTagType } from "#app/enums/battler-tag-type";
|
||||||
import type { DamageCalculationResult } from "#app/field/pokemon";
|
import type { DamageCalculationResult } from "#app/interfaces/damage-calculation-result";
|
||||||
import { Abilities } from "#enums/abilities";
|
import { Abilities } from "#enums/abilities";
|
||||||
import { Moves } from "#enums/moves";
|
import { Moves } from "#enums/moves";
|
||||||
import { Species } from "#enums/species";
|
import { Species } from "#enums/species";
|
||||||
|
Loading…
Reference in New Issue
Block a user