mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
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#7348
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/6827
Author: @kolacheee
Created: 9/28/2026
Status: ✅ Merged
Merged: 9/29/2026
Merged by: @kolacheee
Base:
staging← Head:feat/ruleset-items-sheet📝 Commits (2)
42d41b0feat(rulesets): let a ruleset's sheet read the items a character holds (#6826)68762dbfix(rulesets): count an item whose stat is 0 as giving it, like the other picks (#6826)📊 Changes
35 files changed (+2654 additions, -47 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)📝
docs/development/game-rulesets-and-sheets-implementation.md(+34 -0)📝
docs/examples/rulesets/ember-roads.json(+9 -2)📝
docs/extending/ruleset.schema.json(+1540 -10)📝
docs/extending/writing-rulesets.md(+27 -3)📝
e2e/game-ruleset-wearing.e2e.ts(+85 -1)📝
packages/client/src/components/game/GameCharacterSheet.tsx(+4 -0)📝
packages/client/src/components/game/GameRulesetSheet.tsx(+11 -2)📝
packages/client/src/components/game/GameSurface.tsx(+17 -0)📝
packages/client/src/components/rulesets/RulesetSheetEditor.tsx(+9 -1)📝
packages/server/src/routes/combat-director.routes.ts(+17 -0)📝
packages/server/src/routes/generate.routes.ts(+7 -0)📝
packages/server/src/services/capability-packages/package-manager.service.ts(+22 -0)📝
packages/server/src/services/game/ruleset-combat-director.service.ts(+4 -0)📝
packages/server/src/services/game/ruleset-sheet-turn.service.ts(+25 -3)📝
packages/server/src/services/game/skill-check-resolution.service.ts(+26 -1)📝
packages/shared/src/features/ruleset-combat/encounter.ts(+13 -4)📝
packages/shared/src/features/ruleset-combat/types.ts(+10 -1)📝
packages/shared/src/features/rulesets/item-book.ts(+46 -1)📝
packages/shared/src/features/rulesets/live-state.ts(+7 -1)...and 15 more files
📄 Description
Linked issue
Closes #6826
Why this change
What changed
itemStat(Capability API 1.52): a stat over the items a character wears (worn), only carries (carried) or both (all), read as asum(value times how many), the highest (max), the lowest (min) or acount, optionally only oneslot,categoryortag, with adefaultwhen nothing is picked. Worn means on, and bound where the item must be.binding.max, the carry numbers, scaled columns and scaling), directly or through a derived value. The install gate asks for 1.52, in the ruleset file and in catalog files. The published JSON schema is regenerated.itemStatanywhere. Outside a game nothing is held.itemStatand a new "Items on the sheet" section indocs/extending/writing-rulesets.md, the 1.52 record indocs/development/game-rulesets-and-sheets-implementation.md, and a CHANGELOG entry.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Run by the agent on this branch at
42d41b0c3(one commit on staginge28e80d14):pnpm checkexits 0 andpnpm localization:checkexits 0.pnpm regressionpasses 442/442, andpnpm smoke:uipasses 7/7.e2e/game-ruleset-*.e2e.ts,e2e/ruleset-*.e2e.ts,e2e/game-inventory-*.e2e.ts) pass 13/13 on--project=desktop-chromium. On--project=mobile-chromiumthe new sheet test first failed (on a phone Bram's portrait is inside the party members menu); after that locator fix the game ruleset specs pass 4/4 there, the wearing spec passes 2/2 on desktop again, andpnpm check:e2e-typespasses.Lanes:
game-ruleset-item-stats.regression.ts: every import refusal (no items block, unknown stat, slot, category or tag, a non-number stat read as a number, a sum with no stat) and every live-refused place (pool and track maximums, the carry limit, the carry line through Guard); the 1.52 install gate in the ruleset file, in a check modifier and in a catalog file; every pick and filter with quantities and defaults; worn by slots and binding; each card's own bag and the player's card rule; a fight's initiative worked out again from what was held; and, through the real services and routes, a check's sheets, the Game Master's sheet block, and a ruleset fight started with the player's worn coat (defense 7) beside Bram's packed one (6).game-inventory-turn.regression.ts: on a real Game Master turn, the prompt's sheet block shows Guard 7 for the player wearing the coat and 6 for Bram.e2e/game-ruleset-wearing.e2e.ts(desktop and phone): Bram's in-game sheet shows Guard 6 with his coat in the pack, and 7 after it is put on with Equipped in the inventory.Forty deliberate breaks, in the reader, the worn rule, whose bag, every import check, the install gate, the check loader, the sheet block, the generate route, the fight seed, route and start, the live evaluation, the prompt renderer and the two screens, were each caught.
Local CodeRabbit (
coderabbit review --agent --base staging): one pass, no findings.Game Master turns on a real local model (Gemma 4 E4B, Q8, through llama.cpp) on an isolated Engine from this branch, in Ember Roads with the player wearing a leather coat and Bram carrying his in the pack, 3 tellings of an out-of-character question about the party's Guard: all 3 answered Ada 7 and Bram 6, from the sheet block. None named the coat as the reason; the inventory block says it is worn, and the sheet block gives only the number.
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)Docs touched:
docs/extending/writing-rulesets.mdanddocs/development/game-rulesets-and-sheets-implementation.md(both carried bydocs-i18n),CHANGELOG.md, the generateddocs/extending/ruleset.schema.jsonand the Ember Roads example. Translations: #6813 is the items arc's follow-up; this PR is added to it there.UI evidence (if applicable)
The in-game sheet shows Guard 6 for a character whose leather coat is in the pack, and 7 once it is worn (captured by the e2e run as
ruleset-sheet-worn-guard.png).Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.