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#7278
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/6663
Author: @kolacheee
Created: 9/25/2026
Status: ✅ Merged
Merged: 9/25/2026
Merged by: @kolacheee
Base:
staging← Head:feat/ruleset-check-rules📝 Commits (3)
d1d71c9feat(game): rulesets read a difficulty by name, move a pool rule for one roll, add two abilities and read a botch off half the dice; small sheet and prompt items429b46ffix(game): death-save tracks count to a fixed number and stay on the sheet, and summary cells read column defaults66f3d5cfix(game): a death-save track counts to at least one, and a layer cannot remove the value a track hides on📊 Changes
43 files changed (+2473 additions, -228 deletions)
View changed files
📝
CHANGELOG.md(+4 -0)📝
docs/development/game-rulesets-and-sheets-implementation.md(+88 -0)📝
docs/examples/rulesets/ember-roads.json(+4 -2)📝
docs/examples/rulesets/gravewatch.json(+24 -5)📝
docs/extending/ruleset.schema.json(+168 -9)📝
docs/extending/writing-rulesets.md(+23 -14)📝
docs/game/dice-and-skill-checks.md(+4 -1)📝
packages/client/src/components/dice/AnimatedSkillCheckResult.tsx(+17 -0)📝
packages/client/src/components/game/GameSurface.tsx(+6 -0)📝
packages/client/src/components/game/game-narration-format.ts(+2 -1)📝
packages/client/src/hooks/use-game.ts(+5 -1)📝
packages/client/src/lib/ruleset-resolution.ts(+17 -3)📝
packages/client/src/localization/locales/en.json(+9 -0)📝
packages/server/src/routes/game.routes.ts(+59 -32)📝
packages/server/src/services/capability-packages/package-manager.service.ts(+75 -0)📝
packages/server/src/services/game/dice.service.ts(+1 -0)📝
packages/server/src/services/game/gm-prompts.ts(+61 -3)📝
packages/server/src/services/game/one-request-dice.ts(+26 -10)📝
packages/server/src/services/game/ruleset-combat-director.service.ts(+2 -1)📝
packages/server/src/services/game/skill-check-resolution.service.ts(+173 -43)...and 23 more files
📄 Description
Linked issue
Closes #6651
Closes #6657
Why this change
The author of Marinara-RPG-Extension tried writing two of their shipped tabletop systems as
ruleset.jsonfiles. Both import, but four everyday rules had to be left to the Game Master to translate into numbers by hand, and the model gets them wrong:targetwas printed in the reminder and ignored by the roll. Where several steps share a success count (a Storyteller difficulty table is seven steps at one success each),dc=could not pick one, anddc="7"written for "difficulty 7" silently asked for seven successes.with=on an ability check did nothing.The same report listed six small sheet, prompt and docs items (#6657), offered to its author first. With no answer, they are folded in here; anything not built to the author's liking can come back as a follow-up:
Disciplines: Potence, Celerity), and could not be named by an enum column.sheetGuidance.by.This is slice 1 of the series the plan doc now lays out (§ Gaps a ruleset author found). The 5e package update came first (https://github.com/Pasta-Devs/Marinara-Agents/pull/1082, merged).
What changed
Capability API 1.37 (file keys:
explode.min/double.minwithfromnow optional,pool.abilityPlusAbility,botch.rule,mechanics.check.explode/.double; and from #6657 a track'smaxas a value reference, trackhideWhenandalwaysShow, summary listcolumnsand an enumnameColumn). None of it names one game's words.difficulty="Label"picks a ladder step (matched without case or punctuation; a label two steps share picks neither). It supplies the number when there is nodc=(successes on a pool, the difficulty on a sum) and, on a pool, the step's target.dc=andthreshold=still win where written. The record writes the numbers, never the name, so no reader of a saved check changes.dc=counts at the target of the ONE step needing that many successes; several such steps leave the default. This changes existing rolls on purpose: Gravewatch'sdc="1"now counts at 6, which its ladder always printed.SkillCheckTag.dc/SkillCheckRequest.dcbecame optional; only a ruleset game turns the name into a number, a game with no ladder leaves the tag exactly as written, and every sparse rewrite keeps the name. The skill-check endpoint (client fallback), the one-request branch arm and the sighted d20 pool read it too, the pool spending the die the Game Master saw once the ladder is read; the endpoint answers a name nothing can read with a 400skill_check_difficulty_unknown.explode/doublemay carry amin; a rule with only aminfires only when asked.explode="N"/double="N"on the tag, and an entry'smechanics.check.explode/.double(which outranks the tag, as a bought threshold does), are clamped into[min, sides]; a rule with nominignores the ask. Import refuses an entry that moves a rule no check may move, or moves it further. The record and dice card say a face only when the check moved it.pool.abilityPlusAbilityletswith=on an ability check add a second ability. Pool kind only, so a summed ruleset cannot declare it; on a skill or savewith=still swaps.botch.rule: "halfOrMore"counts low faces over the dice first thrown (explosions not counted). No success: critical failure. Otherwise the result stands and the record addscomplication="true", which the dice card and the summary say alongside the outcome. Named differently from the issue on purpose: the issue proposedglitch, which is one game's word, and the issue itself says the format must stay neutral."noSuccesses"is the default and is today's rule.maxmay be a value reference, resolved per character in the live state and never belowmin; every reader that took a track's top from the definition now takes it from the character's resolved track (including death saves in a fight and the director's view). A plain track may carryhideWhen(left out of the live state like a hidden pool, so the sheet command cannot reach it); a wound track may not, since rolls and fights read it.alwaysShowprints a track at its default. A summary list may be named by an enum column (by its label) and print up to three of its owncolumnsafter each name. The reminder teachesop="damage"and listsWound tracks:apart from the plainTracks:when a ruleset has one. Docs: the pool ceiling comment and the guide's rest section are corrected.en.json.from, as every file before did, needs nothing new.docs/extending/writing-rulesets.md), player page (docs/game/dice-and-skill-checks.md), the regenerated JSON Schema, the plan doc's new series section and slice 1 notes, CHANGELOG. Gravewatch now showsexplode.min,abilityPlusAbilityand a Grave Sight charm that moves the exploding face, and its guidance no longer teaches the damage command itself; Ember Roads showsalwaysShowon heat and gearcolumns.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Run by the agent on the rebased branch, all exit 0:
pnpm check,pnpm localization:check,pnpm regression:node(377/377),pnpm ruleset:schema(no diff after regeneration). Local CodeRabbit, five passes: seven findings over the first three, all fixed (the sighted pool dropping the new asks, then reading a named difficulty when the pool is spent; the published schema's check-effect and face-rule refinements;botch.rule's default in the schema; the "alongside" wording), one pass lost to a dropped connection, and the last pass on the full branch found nothing.scripts/regressions/game-ruleset-sheet-extras.regression.tscovers #6657: a track's top off the sheet (and its floor), hidden and always-shown tracks, summary columns and enum names, the reminder's wound-track lines, and the 1.37 gate for each key; eleven deliberate breaks are each caught, and the combat-core lane pins a death track whose top the sheet sets.scripts/regressions/game-ruleset-check-rules.regression.tscovers every rule above through the shared roller, the generation resolver, the one-request branch arm, the real/api/game/skill-checkroute on a pinned community ruleset, the reminder and the 1.37 install gate. Thirteen deliberate breaks of the new rules (the ladder target, the clamp, the half count, counting explosions, pairing without the switch,frombelowmin, a dc-less tag without a name, the record's face, the named step's target, the branch arm, the botch gate, the reminder clause, the endpoint's 400) are each caught by it.Still to verify by hand (not done by the agent):
[skill_check: skill="Ward" difficulty="Grim"]: confirm the dice card counts at 8 and the saved check readsdc="3" ... threshold="8".explode="9"on a Gravewatch check: confirm nines roll again and the card says "Dice showing 9 or more rolled again"."botch": { "upTo": 1, "rule": "halfOrMore" }, force a success with many ones, and confirm the card shows the complication line under the outcome, in light and dark mode and at mobile width.difficulty="Hard"in a game without a ruleset is left in the narration unrolled rather than guessed.Heat 0at the start and lists gear asCrowbar 1d6.op="damage"line andWound tracks: Harm (Scuffed to Down; knock, tear).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.md(not carried bydocs-i18n),docs/game/dice-and-skill-checks.md(carried bydocs-i18n),docs/extending/ruleset.schema.json,docs/examples/rulesets/gravewatch.json,docs/examples/rulesets/ember-roads.json,docs/development/game-rulesets-and-sheets-implementation.md(internal plan),CHANGELOG.md. Translations are batched into one later pass by the maintainer's standing decision, so no per-PR[docs-i18n]issue is opened here.UI evidence (if applicable)
None captured. The client changes are two optional lines on the dice card, reusing the wound-penalty line's existing
skill-check-roll-metastyle, and new lines in the rules summary; see the manual steps above.Summary by CodeRabbit
New Features
Compatibility
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.