mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8138] [MERGED] Game Mode: a player's ruleset sheet and fight screen fixes from the UI review (Capability API 1.378) #8123
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#8123
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/8138
Author: @kolacheee
Created: 10/23/2026
Status: ✅ Merged
Merged: 10/23/2026
Merged by: @kolacheee
Base:
staging← Head:claude/game-mode-cloud-nx3wjf📝 Commits (10+)
df9fdc0feat(rulesets): a ruleset's own words on its sheet, menu and cards (1.377)e94968bfeat(rulesets): abilities from a list under its own menu heading (1.377)dc9d90bfeat(game): a player's ruleset sheet, and builder fixesf5f0313feat(game): fight screen fixes from the UI reviewb30224cchore(rulesets): regenerate the ruleset schema and format61dd491Merge upstream staginge28bfc5feat(game): leftover UI review items for fights and the builder7426005fix(game): review fixes for the UI review itemsc04a16cMerge branch 'staging' of https://github.com/pasta-devs/marinara-engine into claude/game-mode-cloud-nx3wjf840fa80fix(game): a known entry's chip says so to a screen reader; a Ready row stays open📊 Changes
39 files changed (+2701 additions, -501 deletions)
View changed files
📝
docs/extending/ruleset.schema.json(+332 -1)📝
docs/extending/writing-rulesets.md(+15 -0)📝
packages/client/src/App.tsx(+10 -2)📝
packages/client/src/components/game/CombatAiControls.tsx(+0 -9)📝
packages/client/src/components/game/GameCombatUI.tsx(+0 -1)📝
packages/client/src/components/game/GameRulesetSheet.tsx(+575 -304)📝
packages/client/src/components/game/RulesetCombatBoard.tsx(+89 -8)📝
packages/client/src/components/game/RulesetCombatLog.tsx(+11 -2)📝
packages/client/src/components/game/RulesetCombatMenu.tsx(+159 -30)📝
packages/client/src/components/game/RulesetCombatScreen.tsx(+107 -55)📝
packages/client/src/components/game/RulesetItemPicker.tsx(+2 -0)📝
packages/client/src/components/game/RulesetTurnOrder.tsx(+5 -3)📝
packages/client/src/components/game/TacticalCombatUI.tsx(+7 -1)📝
packages/client/src/components/rulesets/RulesetCatalogPicker.tsx(+13 -8)📝
packages/client/src/components/rulesets/RulesetSheetBuilder.tsx(+138 -21)📝
packages/client/src/lib/ruleset-combat-log-rich.ts(+10 -2)📝
packages/client/src/lib/ruleset-combat-log.ts(+27 -0)📝
packages/client/src/lib/ruleset-combat-menu.ts(+117 -13)📝
packages/client/src/lib/ruleset-sheet-view.ts(+62 -0)📝
packages/client/src/localization/locales/en.json(+54 -9)...and 19 more files
📄 Description
Linked issue
Closes #8137
Why this change
Before: a player who opened their ruleset sheet in a game got a debugging panel. It listed every condition the ruleset defines as a toggle (hundreds of them for a full ruleset), could be edited mid-fight, and showed no attacks or summary. In a fight, the menu buried the useful options under a "Ready" row for every action and full-height rows for options with nobody in reach. Cards showed the base defense instead of the one an attack is rolled against. Tokens printed letters that overflowed small squares, and the end card said nothing about who fell or what was spent. The guided builder offered spells and languages the character already had, ticked steps before their source existed, and lost its picks when a card was copied into a game.
After: the sheet opens on an Overview (summary, ability scores with modifiers, pools, attacks with to-hit and damage, active conditions with an "Add condition…" search) plus a tab for each list the ruleset asks for. It is settled during a fight, except for health and pools. The fight screen shows the effective defense, per-target odds, save and damage for areas, what a reaction changes, condition badges and a legend. It also has one Ready row per action and phone tabs for Board, Actions, Turn order and Log. The end card lists each foe's fate and each party member's spent pools. The builder marks entries already held as "Already known" and keeps its picks on game copies. It also offers one class at a time and can start over.
What changed
A player's ruleset sheet.
display.tab, grouped bydisplay.bywithdisplay.markticks. A tab whose lists are hidden falls back to the Overview.pickable: falseare left out.Fight screen.
Phones.
Guided builder.
Capability API 1.378 (ruleset-only keys a ruleset declares when it wants them, documented in
docs/extending/writing-rulesets.md):unitandunits;display(tab,by,mark);hideWhenon a field or a derived value;pickable: false;showWhenSet;onLabelandoffLabel;title;label;signed;A package using any of them must declare 1.378. (1.377 is the Motion 14 host slot from #8134.)
Validation
pnpm checkpasses locally. Every step was run separately (format, lint, localization, impeccable, e2e types, token estimation types, build).CONTRIBUTING.mdManual verification notes
game-ruleset-*,ruleset-*,combat-*,capability-package-*andgame-combat-*scripts.ruleset-sheet-words.regression.tscovers the 1.378 keys, the gate, list headings in the menu, hidden text (including a derivedhideWhenwith no comparison, refused by both the validator and the published schema), held entries and per-target odds.ruleset-combat-director.regression.tscover effective defense, Shield's raised defense on a held hit, and what rides on the hit.ruleset-combat-screen-client.regression.tscover the save wording.Docs and release impact
docs/extending/writing-rulesets.mdand the regenerateddocs/extending/ruleset.schema.json.UI evidence (if applicable)
None yet.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.