Implement the 017-combat-conditions feature that adds D&D 5e status conditions to combatants with icon tags, color coding, and a compact toggle picker in the encounter tracker
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import type { ConditionId } from "./conditions.js";
|
||||
import type { CombatantId } from "./types.js";
|
||||
|
||||
export interface TurnAdvanced {
|
||||
@@ -75,6 +76,18 @@ export interface AcSet {
|
||||
readonly newAc: number | undefined;
|
||||
}
|
||||
|
||||
export interface ConditionAdded {
|
||||
readonly type: "ConditionAdded";
|
||||
readonly combatantId: CombatantId;
|
||||
readonly condition: ConditionId;
|
||||
}
|
||||
|
||||
export interface ConditionRemoved {
|
||||
readonly type: "ConditionRemoved";
|
||||
readonly combatantId: CombatantId;
|
||||
readonly condition: ConditionId;
|
||||
}
|
||||
|
||||
export type DomainEvent =
|
||||
| TurnAdvanced
|
||||
| RoundAdvanced
|
||||
@@ -86,4 +99,6 @@ export type DomainEvent =
|
||||
| CurrentHpAdjusted
|
||||
| TurnRetreated
|
||||
| RoundRetreated
|
||||
| AcSet;
|
||||
| AcSet
|
||||
| ConditionAdded
|
||||
| ConditionRemoved;
|
||||
|
||||
Reference in New Issue
Block a user