mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-12-17 15:25:22 +01:00
* Split up Pokemon data types to own files * Moved `AttackMoveResult` and `TurnMove` to own files * Moved `customPokemonData` into types folder + fixed comments * Moved files around + fixed stuff * Moved `DamageResult` into new file * Fixed imports * ran biome * Fix merge issue
22 lines
686 B
TypeScript
22 lines
686 B
TypeScript
import type { HitResult } from "#enums/hit-result";
|
|
|
|
/** Union type containing all damage-dealing {@linkcode HitResult}s. */
|
|
export type DamageResult =
|
|
| HitResult.EFFECTIVE
|
|
| HitResult.SUPER_EFFECTIVE
|
|
| HitResult.NOT_VERY_EFFECTIVE
|
|
| HitResult.ONE_HIT_KO
|
|
| HitResult.CONFUSION
|
|
| HitResult.INDIRECT_KO
|
|
| 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;
|
|
}
|