Add manual CR assignment and difficulty breakdown panel
CI / check (push) Successful in 2m20s
CI / build-image (push) Successful in 17s

Implement issue #21: custom combatants can now have a challenge rating
assigned via a new breakdown panel, opened by tapping the difficulty
indicator. Bestiary-linked combatants show read-only CR with source name;
custom combatants get a CR picker with all standard 5e values. CR persists
across reloads and round-trips through JSON export/import.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Lukas
2026-04-02 17:03:33 +02:00
co-authored by Claude Opus 4.6
parent 2c643cc98b
commit 1ae9e12cff
26 changed files with 1461 additions and 17 deletions
+3
View File
@@ -53,6 +53,7 @@ export {
crToXp,
type DifficultyResult,
type DifficultyTier,
VALID_CR_VALUES,
} from "./encounter-difficulty.js";
export type {
AcSet,
@@ -63,6 +64,7 @@ export type {
ConcentrationStarted,
ConditionAdded,
ConditionRemoved,
CrSet,
CurrentHpAdjusted,
DomainEvent,
EncounterCleared,
@@ -107,6 +109,7 @@ export {
selectRoll,
} from "./roll-initiative.js";
export { type SetAcSuccess, setAc } from "./set-ac.js";
export { type SetCrSuccess, setCr } from "./set-cr.js";
export { type SetHpSuccess, setHp } from "./set-hp.js";
export {
type SetInitiativeSuccess,