[Phase 2.3] Macro/Micro Combat Loop, Layered Stat Math & End-of-Turn Healing #9
Labels
No labels
area:backend-infra
area:ci
area:client
area:core
area:data
area:server
P0
P1
P2
status:backlog
status:in-progress
status:ready
status:review
type:chore
type:feature
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
john4064/Chaotic#9
Loading…
Reference in a new issue
No description provided.
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?
Goal
Implement the pure
apply_match_intentmacro/micro turn state machine (MatchState,MatchIntent,MatchDomainEvent,MatchRuleError).Metadata
crates/chaotic_core/src/match_state.rs,crates/chaotic_core/src/combat.rs.rs<= 400 lines, test.rs<= 600 lines,mod.rs< 80 lines (AGENTS.mdSection 2.3)Acceptance Criteria
pub fn apply_match_intent(state: &mut MatchState, player: PlayerId, intent: MatchIntent) -> Result<Vec<MatchDomainEvent>, MatchRuleError>.InitiativeCriteriaevaluation (ties to Active Player) -> Strike Phase -> Damage resolution.BaseDamage, activeElementdamage,Check/Fail/Challenge, andOutperform; break simultaneous final-Creature destruction ties in favor of Active Player.current_damage_taken = 0, restores Expended Elements, and expires end-of-turn modifiers.