mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7579] [MERGED] feat(rulesets): guided character sheet builder #7811
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#7811
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/7579
Author: @kolacheee
Created: 10/14/2026
Status: ✅ Merged
Merged: 10/14/2026
Merged by: @kolacheee
Base:
staging← Head:feat/ruleset-builder📝 Commits (10+)
edf40e4feat(rulesets): a critical range off the sheet (1.76), derived values that multiply (1.77), and a sheet value added to an amount (1.78)d345389feat(rulesets): a sheet may have up to 120 derived values (1.79)48ba777feat(rulesets): a list's number column filled by a roll (1.80)4eb6e02fix(rulesets): a rolled cell reads an empty die as the editor shows it; e2e for the Roll buttonc1ae9e2test(rulesets): a rolled column throws its count of dicef295f7cfix(rulesets): a critical held for a reaction stays one, the forecast counts the range, and an item's use cannot add a sheet valuefc338addocs(rulesets): the JSON schema without amountAdd on an item's usefe61348fix(rulesets): a rolled cell lands on the sheet as it stands, says when the roll failed, and a range under 2 is nonee18c043feat(rulesets): a sheet may declare a guided builder, and a catalog entry what a pick through it grants8ef0265feat(rulesets): a Guided view walks a player through a ruleset's builder, beside All fields📊 Changes
41 files changed (+17012 additions, -6168 deletions)
View changed files
📝
docs/extending/ruleset.schema.json(+8863 -5736)📝
docs/extending/writing-rulesets.md(+75 -8)➕
e2e/game-ruleset-sheet-builder.e2e.ts(+411 -0)📝
e2e/game-ruleset-wearing.e2e.ts(+87 -1)📝
packages/client/src/components/game/GameRulesetSheet.tsx(+3 -2)📝
packages/client/src/components/game/StartingGearPicker.tsx(+51 -4)📝
packages/client/src/components/rulesets/RulesetCatalogPicker.tsx(+6 -2)➕
packages/client/src/components/rulesets/RulesetSheetBuilder.tsx(+935 -0)📝
packages/client/src/components/rulesets/RulesetSheetEditor.tsx(+416 -327)➕
packages/client/src/components/rulesets/RulesetTypedInput.tsx(+124 -0)📝
packages/client/src/lib/ruleset-catalog.ts(+15 -2)📝
packages/client/src/lib/ruleset-sheet-view.ts(+33 -0)📝
packages/client/src/localization/locales/en.json(+67 -0)📝
packages/server/src/routes/game.routes.ts(+2 -1)📝
packages/server/src/services/capability-packages/package-manager.service.ts(+336 -0)📝
packages/shared/src/features/ruleset-combat/encounter.ts(+66 -8)📝
packages/shared/src/features/ruleset-combat/options.ts(+7 -3)📝
packages/shared/src/features/ruleset-combat/resolve.ts(+33 -8)📝
packages/shared/src/features/ruleset-combat/types.ts(+6 -0)📝
packages/shared/src/features/rulesets/item-book.ts(+31 -9)...and 21 more files
📄 Description
Linked issue
Part of #7469
This follows #7563 (merged). This branch is up to date with staging and holds only the sheet builder. Staging's avatar agents took Capability API 1.73, so every version here moved up by one: this PR uses 1.81 through 1.112. 1.80 stays reserved for Pixelforge's map pack tiles and 1.101-1.103 for the 5e combat rules, which come in a later PR. The GM rules, maps and the rest follow this one at a time.
Why this change
What changed
builder, a list of steps that pick catalog entries, fill fields, set ability scores (point buy, standard array, rolled or manual) and choose skills, saves and starting gear (Capability API 1.86). The sheet editor gains a Guided view beside All fields, which walks the player through the steps, says what each one waits on, and shows the sheet's own summary numbers. It takes back only what it wrote, keeps its choices through a game's Edit, and never changes an existing character for picking what it already is.offeredWhen, 1.99 and 1.100), keep one pick of anexclusivegroup (1.94), and show fields only while the sheet allows (shownWhen, 1.107). A pick can grant entries of another catalog to choose (1.91, held to theirofferedWhenin 1.106), and score choices that repeat a score (1.93) or stop at a cap (1.96). Skill and save choices never offer what the picks already train (1.104) and can build on training already held (1.105). A catalog step can stamp columns onto its rows (1.108), a starting-gear step can hold its gear to what the sheet fits (1.109), a catalog step can ask for up to 40 entries and manual scores can be bounded (1.110), and a builder may have up to 24 steps (1.112).combat.attackRoll.criticalFrom, 1.81), derived values thatmultiply(1.82), a sheet value added to an entry's amount (amountAdd, 1.83), list number columns filled by arollwith a Roll button in the editor (1.85), and up to 120, 240 and then 400 derived values (1.84, 1.88, 1.111).one: "penny", 1.89), one entry may keep several rows of a list up to date, told apart by name (1.92), an item's to-hit may add a value off its holder's sheet (1.95), and a weapon's damage may add one in one hand (1.97) or reroll low dice while wielded two-handed (1.98). Each class casts with its own spellcasting ability.docs/extending/writing-rulesets.mdcovers all of it, anddocs/extending/ruleset.schema.jsonis regenerated.Validation
pnpm checkpasses locallyCONTRIBUTING.md4ae372567:pnpm checkgreen (one existing exhaustive-deps warning), and thecapability(19),avatar(13) andgame-ruleset-sheetlanes pass. Before the last staging merge (#7555, avatars only), thegame-ruleset(63),package(7),creature(4),professor-mari(18),open-issuesandcombat(26) lanes passed on the renumbered branch.game-ruleset-sheet-builder,game-ruleset-wearing,game-ruleset-starting-gearandgame-ruleset-package-import.Manual verification notes
Changed test expectations
No maintainer asked for these; each follows a change on staging or in this PR, and the check it replaces is kept:
capability-package-lifecycle): this PR's versions run to 1.112.game-ruleset-wearingandgame-ruleset-sheet-buildere2e open the party from the Character Profiles window button, because staging replaced the party members button with it. They still open the same character sheet.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)docs/extending/writing-rulesets.mdchanged anddocs/extending/ruleset.schema.jsonis regenerated. The translations are tracked on #7512.UI evidence (if applicable)
No screenshots attached. The e2e specs above drive the builder.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.