mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6416] [MERGED] feat(rulesets): wound tracks, spending on a check, and a fight fought on a track (Capability API 1.30) #7170
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#7170
Loading…
Add table
Add a link
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/6416
Author: @kolacheee
Created: 9/20/2026
Status: ✅ Merged
Merged: 9/20/2026
Merged by: @SpicyMarinara
Base:
staging← Head:feat/ruleset-wound-tracks📝 Commits (10+)
0b24d2ffeat(rulesets): wound tracks in the ruleset format and live state618e944feat(rulesets): a wound track bites the roll and shows its boxes on the sheet3d39055feat(rulesets): wound tracks get their API number, example, docs and proofe1f7bacfeat(rulesets): a check can spend a pool to buy successes or dicec52927ffix(rulesets): a catalog refresh offers a column the row never had0e55aa9fix(game): a check that bought something keeps the cost paid even when the sheet pass does not run8841519test(game): the route may keep what the check resolver handed back, and still may not swallow it4a6bdfbfix(rulesets): the published schema offers a check purchase only where it works, a wound track's levels run best first, and only the two boxes that do something are offered9ccf282fix(rulesets): a full wound track can still take harm, a name the Engine cannot tell apart carries no penalty, and the guide no longer says automatic successes are unmodelleda95abb7feat(rulesets): a fight can be fought on a wound track📊 Changes
44 files changed (+4948 additions, -249 deletions)
View changed files
📝
CHANGELOG.md(+15 -2)📝
docs/development/optional-agent-packages.md(+41 -0)📝
docs/examples/rulesets/gravewatch.json(+87 -4)📝
docs/extending/ruleset.schema.json(+362 -65)📝
docs/extending/writing-rulesets.md(+126 -9)📝
docs/game/dice-and-skill-checks.md(+3 -0)📝
docs/game/party-and-npcs.md(+1 -0)➕
e2e/ruleset-wound-sheet.e2e.ts(+116 -0)📝
packages/client/src/components/dice/AnimatedSkillCheckResult.tsx(+11 -0)📝
packages/client/src/components/game/GameRulesetSheet.tsx(+191 -33)📝
packages/client/src/components/rulesets/RulesetCatalogRefreshModal.tsx(+3 -1)📝
packages/client/src/lib/ruleset-catalog.ts(+52 -4)📝
packages/client/src/lib/ruleset-combat-bridge.ts(+10 -3)📝
packages/client/src/localization/locales/en.json(+24 -0)📝
packages/server/src/routes/generate.routes.ts(+77 -14)📝
packages/server/src/services/capability-packages/package-manager.service.ts(+41 -1)📝
packages/server/src/services/game/gm-prompts.ts(+24 -0)📝
packages/server/src/services/game/ruleset-sheet-turn.service.ts(+7 -2)📝
packages/server/src/services/game/skill-check-resolution.service.ts(+351 -11)📝
packages/shared/src/features/ruleset-combat/encounter.ts(+39 -4)...and 24 more files
📄 Description
Linked issue
Closes #6400, closes #6405, closes #6407, closes #6411. Translation follow-up: #6401 / #6429.
Why this change
Rulesets could not represent health as wound boxes or apply a purchased ability to a dice-pool check. Updating a ruleset also left existing picked rows without newly added columns. These gaps made the sheet, resource spending and actual roll disagree.
What changed
Validation
Maintainer integration:
pnpm check, localization validation andpnpm regression:promptpassed. All 30 ruleset regression files passed, plus 12 browser cases across desktop Chromium, mobile Chromium and iPhone/WebKit emulation: light/dark wound sheets and Classic/Tactical ruleset fights. Regression proofs reproduce the compound-hit overcount, free-ability refusal, missing prompt/picker descriptions and saved-penalty loss before their fixes.Local CodeRabbit completed the integrated diff. Its missing saved-penalty finding is fixed and covered for summed, pooled and empty-pool records, including invalid values. Its suggestion to replace structured check metadata with prose is declined: this is model context, the object contains validated numeric/enum fields, and retaining that compact representation avoids duplicating the localized client formatter. Required GitHub checks and hosted review remain merge gates.
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Browser coverage uses synthetic data and emulated devices; no physical-device or live-model behavior is claimed.
Docs and release impact
Updated the authoring guide, package API notes, game check/sheet guides, Gravewatch example, generated schema and changelog. Translation work is tracked by #6401 and #6429. No app version bump.
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue openedUI evidence (if applicable)
Synthetic wound-sheet screenshots and browser log, covering the real sheet and game-state persistence. Download the HTML to view its embedded images.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.