Combatant side assignment for encounter difficulty #22
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Allow assigning combatants to party or enemy side for the difficulty calculation. Allied NPCs (party-side combatants with CR) subtract their XP from the monster total instead of adding to it. Accessed via the difficulty breakdown panel (issue #21).
Acceptance Criteria
Combatantsupports an optionalsidefield ("party" | "enemy")sideis undefinedUX Guidance
Notes
calculateEncounterDifficulty(partyLevels[], monsterCrs[])can no longer express side assignment. The domain function will need richer input — likely a list of combatant descriptors with{ level?, cr?, side }so it can partition internally. TheuseDifficultyhook resolves defaults (PC → party, others → enemy) before calling the domain function.Context