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#7373
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/6893
Author: @kolacheee
Created: 9/30/2026
Status: ✅ Merged
Merged: 9/30/2026
Merged by: @kolacheee
Base:
staging← Head:feat/ruleset-items-scroll-gates📝 Commits (2)
782e59dfeat(rulesets): items that ask a check before they work (#6892)5c231e2fix(rulesets): a pool fight holds a gate's difficulty to what the pool can count, as the Use button does (#6892)📊 Changes
25 files changed (+1632 additions, -42 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)📝
docs/development/game-rulesets-and-sheets-implementation.md(+33 -0)📝
docs/examples/rulesets/gravewatch.json(+26 -1)📝
docs/extending/ruleset.schema.json(+385 -0)📝
docs/extending/writing-rulesets.md(+7 -1)📝
docs/game/party-and-npcs.md(+1 -1)➕
e2e/game-ruleset-item-gate.e2e.ts(+93 -0)📝
packages/client/src/components/game/RulesetItemPicker.tsx(+20 -8)📝
packages/client/src/lib/ruleset-combat-log.ts(+17 -0)📝
packages/client/src/localization/locales/en.json(+6 -0)📝
packages/server/src/services/capability-packages/package-manager.service.ts(+13 -0)📝
packages/shared/src/features/ruleset-combat/encounter.ts(+32 -6)📝
packages/shared/src/features/ruleset-combat/resolve.ts(+76 -1)📝
packages/shared/src/features/ruleset-combat/types.ts(+22 -0)📝
packages/shared/src/features/rulesets/check-effects.ts(+51 -1)📝
packages/shared/src/features/rulesets/item-book.ts(+60 -0)📝
packages/shared/src/features/rulesets/item-use.ts(+85 -10)📝
packages/shared/src/schemas/capability-package.schema.ts(+5 -1)📝
packages/shared/src/schemas/ruleset.schema.ts(+37 -0)📝
scripts/regressions/capability-package-lifecycle.regression.ts(+4 -4)...and 5 more files
📄 Description
Linked issue
Closes #6892
This follows #6891 (charges over time), now merged; the branch sits on staging, so the diff is this slice alone.
Why this change
What changed
use.gate(Capability API 1.62): a check its user passes before the item works.checknames what is rolled, a skill ({ "skill": "ward" }), an ability, or a value off the sheet ({ "value": { "derived": "spell_mod" } }), which covers a number that differs from one character to the next, as a 5e caster's spellcasting modifier does.difficultyis written down or read off a number stat of the item.unlessskips the check when a value on the user's sheet is high enough. A failed check uses the item up (or spends its charges) for nothing.gatekey, its roll outside a fight and the capability list indocs/extending/writing-rulesets.md, a sentence on items that ask a check indocs/game/party-and-npcs.md, the 1.62 record indocs/development/game-rulesets-and-sheets-implementation.md, the regenerated JSON schema and a CHANGELOG entry.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Local run on this branch (Fedora):
pnpm check,pnpm localization:checkand prettier: clean.pnpm regression: 477 of 477.pnpm smoke:ui: 7 passed.Lanes:
game-ruleset-item-gate.regression.ts: every import refusal; the 1.62 gate (the example, a catalog file); in a Gravewatch pool fight, a gate that passes (the Resolve comes back), fails (nothing happens, the page is still written back as used) and is skipped at Nerve 3, the dawn bell's +1 to Ward on the check, and the log lines; in an Ember Roads summed fight, the dice and the difficulty off an item stat, the leather coat's -1 to Sneak on a Sneak gate and not on a Tinker one, and a use whose stat is missing dropped from the menu; outside a fight, a failed, passed and skipped reading, a wound's penalty and the bound bell's bonus on the check, Ember's summed roll and a use it cannot make refused; item facts and the Game Master's line.e2e/game-ruleset-item-gate.e2e.ts: in Gravewatch, the page's details show the gate, a reader with Nerve 1 fails a check no single die can pass (the page is used up, Resolve stays 0, the Game Master gets the line), and one with Nerve 3 reads it straight through (Resolve 2).36 deliberate breaks, each caught by these lanes. Six were missed on the first run and each got its own case: a value check reading its value,
resolution.adjuston a gate, a summed total meeting the difficulty, contests still reading nothing narrowed to a skill, the pool difficulty clamp outside a fight, and a failed gate on an item aimed at somebody else telling nothing.Local CodeRabbit on this slice: no findings.
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,docs/game/party-and-npcs.mdanddocs/development/game-rulesets-and-sheets-implementation.md(all carried bydocs-i18n),CHANGELOG.md, the generateddocs/extending/ruleset.schema.jsonand the Gravewatch example. Translations: #6813 is the items arc's follow-up; this PR is added to it there.UI evidence (if applicable)
In a Gravewatch game, the page's details read "Use (Quick): restores 2 Resolve, used up, needs a Ward check against 30 first unless Nerve is 3 or more, and a failed one uses it up for nothing" (the e2e's copy asks 30 so the check cannot pass; captured by
e2e/game-ruleset-item-gate.e2e.tsasruleset-item-gate-details.png).Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.