feat: add persisted S.D.C. combat exchanges#52
Merged
Conversation
added 19 commits
July 19, 2026 23:13
StreamDemon
marked this pull request as ready for review
July 20, 2026 07:51
There was a problem hiding this comment.
All reported issues were addressed across 25 files
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #44
Summary
Rules boundary
Verification
Tracker
Summary by cubic
Adds a persisted, server-rolled S.D.C. combat exchange with engine-authorized defenses, immutable history, and correct S.D.C→HP routing including Artificial S.D.C. armor A.R. and ablation. Hardens state ownership to reject stale inputs and rule snapshots.
New Features
@riftforge/rules: Derive attack profiles and legal defenses, validate context, resolve strikes and damage, and route S.D.C. through body pools or Artificial S.D.C. armor. Adds combat state tokens and ranged dodge/auto-dodge + minimum strike rules; Natural A.R. excluded per RUE p.339; M.D. weapons and nondepleted M.D.C. protection are refused.combatExchangesledger with indexes and APIs to list targets, declare exchanges, choose defenses, and resolve atomically with server-owned dice and state revalidation. Shares character state helpers and rejects stale rule snapshots and manifest changes.CombatExchangePanelwith route-safe live feeds and telemetry; addsSelectInputandToggleChip; improves state ownership, clears stale notices, and tweaks semantics for accessibility.Migration
combatExchangestable and indexes) and redeploy the backend.Written for commit 3b2f008. Summary will update on new commits.