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:
Lukas
2026-03-06 11:29:39 +01:00
parent 78c6591973
commit febe892e15
22 changed files with 1301 additions and 62 deletions

View File

@@ -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;