feat: add CombatState and CombatEnemy types
This commit is contained in:
parent
fcee648d07
commit
3c3a92ce99
1 changed files with 21 additions and 0 deletions
|
|
@ -157,3 +157,24 @@ export interface Condition {
|
|||
rounds_remaining: number | null;
|
||||
expires_at: string | null;
|
||||
}
|
||||
|
||||
export interface CombatEnemy {
|
||||
id: string;
|
||||
name: string;
|
||||
hp_current?: number; // present only for DM; stripped before broadcast to players
|
||||
hp_max?: number; // present only for DM; stripped before broadcast to players
|
||||
}
|
||||
|
||||
export interface CombatState {
|
||||
id: string;
|
||||
label?: string;
|
||||
mode: "team";
|
||||
round: number;
|
||||
phase: "rolling" | "active";
|
||||
current_side: "party" | "enemies";
|
||||
party_roll: number | null;
|
||||
enemy_roll: number | null;
|
||||
party_rolls: Record<number, number>; // characterId → roll value
|
||||
character_ids: number[];
|
||||
enemies: CombatEnemy[];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue