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#7350
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/6838
Author: @kolacheee
Created: 9/29/2026
Status: ✅ Merged
Merged: 9/29/2026
Merged by: @kolacheee
Base:
staging← Head:feat/ruleset-items-worn-effects📝 Commits (4)
0ba6bd3feat(rulesets): conditions and worn or carried items change checks outside a fight (#6832)7bd884afix(rulesets): editors read the new modifier rules, and a claimed no-roll failure is never trusted (#6832)d7a0247Merge remote-tracking branch 'origin/staging' into feat/ruleset-items-worn-effectsde6a681test(rulesets): a mode alone is a modifier in the published schema (#6832)📊 Changes
37 files changed (+3070 additions, -112 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)📝
docs/development/game-rulesets-and-sheets-implementation.md(+46 -0)📝
docs/examples/rulesets/ember-roads.json(+14 -8)📝
docs/examples/rulesets/gravewatch.json(+9 -2)📝
docs/extending/ruleset.schema.json(+985 -0)📝
docs/extending/writing-rulesets.md(+60 -8)➕
e2e/game-ruleset-check-effects.e2e.ts(+152 -0)📝
packages/client/src/components/dice/AnimatedSkillCheckResult.tsx(+26 -0)📝
packages/client/src/components/game/GameInventory.tsx(+6 -1)📝
packages/client/src/components/game/RulesetItemPicker.tsx(+41 -0)📝
packages/client/src/localization/locales/en.json(+13 -0)📝
packages/server/src/services/capability-packages/package-manager.service.ts(+40 -0)📝
packages/server/src/services/game/gm-prompts.ts(+44 -3)📝
packages/server/src/services/game/skill-check-resolution.service.ts(+133 -19)📝
packages/shared/src/features/ruleset-combat/encounter.ts(+35 -10)➕
packages/shared/src/features/rulesets/check-effects.ts(+155 -0)📝
packages/shared/src/features/rulesets/invented-items.ts(+130 -0)📝
packages/shared/src/features/rulesets/item-book.ts(+59 -2)📝
packages/shared/src/features/rulesets/sheet-math.ts(+2 -0)📝
packages/shared/src/index.ts(+1 -0)...and 17 more files
📄 Description
Linked issue
Closes #6832
This branch carries #6836 (closes #6835) as its first commit, because the checks it changes never survived a real turn in a 2d6 or pool ruleset without it. Review and merge #6836 first; this PR's own change starts at the second commit.
Why this change
What changed
worn(while on, and bound where it binds) andcarried(while only carried), in the condition vocabulary a check reads: the check and save effects, modifiers to checks or saves (flat, dice, a mode), saves failed without a roll, andskills/savesnarrowing. What an item does in a fight waits for the weapons-and-armor slice and is refused for now.skills; a modifier may name its ownskillsorsavesand roll twice withmode, so one source can make Sneak harder and Climb easier.rarityCaps[].bonusholds an invented item's worn or carried bonus. Every named skill and save is checked at import, and the install gate asks for 1.53 in the ruleset file and catalog files.resolution.adjust(dice rolled; dice on a pool), advantage and disadvantage cancel with the Game Master'smode=where the ruleset rolls twice, and a save something fails is failed without a roll or a spend. The record gainseffects=,from=andautomatic="true", read back after a reload; a Game Master's own numbers are never vouched for on a check something changes; the sighted pool spends a second d20 when the effects lean the roll.worn=andcarried=("+1 Sneak; disadvantage on Sway checks", "fails saves", "none"), read against the sheet's skills and saves, copied fromlike=otherwise, and held to the rarity'sbonus(a bonus in dice is left out at a capped rarity; a penalty is never capped). The proposal form shows the sheet's skills and saves and each rarity's bonus.docs/extending/writing-rulesets.md, the 1.53 record indocs/development/game-rulesets-and-sheets-implementation.md, the regenerated JSON schema, and a CHANGELOG entry.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Run by the agent on this branch at
0ba6bd3c0(two commits on staging6d3022d56: #6836's fix, then this change):pnpm checkexits 0 andpnpm localization:checkexits 0.pnpm regressionpasses 443/443, andpnpm smoke:uipasses 7/7.--project=desktop-chromium, the ruleset, inventory and game dice specs (e2e/game-ruleset-*.e2e.ts,e2e/ruleset-*.e2e.ts,e2e/game-inventory-*.e2e.ts,e2e/game-native-dice.e2e.ts,e2e/game-one-request-dice.e2e.ts) pass 19/19; the game ruleset specs pass 5/5 on--project=mobile-chromium.game-ruleset-invented-items,game-ruleset-check-effects,game-inventory-turn,game-ruleset-items), the server type check and Prettier passed again, and so did a second CodeRabbit pass.Lanes:
game-ruleset-check-effects.regression.ts: every refusal of the new keys and the 1.53 gate (in the ruleset file, each key on its own, and in a catalog file); sources (conditions while active, levels while reached, worn while worn, carried while only carried, one item once) and narrowing (a modifier's own skills, its source's, abilities, unknown checks, saves); leans cancelling withmode=; dice andminus; checks and saves through the turn's resolver on the 5e example (Poisoned disadvantage, cancelled by the Game Master's advantage, Paralyzed failing a Dexterity save without a roll, read back after a reload), Ember Roads (coat -1 on Sneak, waystone +1 on Sway, nothing on Tinker, a Game Master's own record vouched only when nothing changes the check) and Gravewatch (the bound bell's die on Ward, Rattled's on Soothe), plus Gravewatch through the real context loader; fights (skill-narrowed parts out of contests, modes and a modifier's saves counted); item facts; invented items (bonus caps, dice left out,like=,none, unknown names, the tag, read-back); and the Game Master's line for each example.game-inventory-turn.regression.ts: a real Game Master turn in an Ember Roads game saves the Sneak check witheffects="-1" from="Leather coat".e2e/game-ruleset-check-effects.e2e.ts(desktop and phone): the coat's details say "While worn: -1 on checks (Sneak)", and the dice card of a real turn's Sneak check shows the -1 and "Changed by Leather coat".Sixty deliberate breaks, across the format, the gate, the sources, narrowing, the resolver, the record and its read-back, fights, item facts, invented items, the Game Master's line and the two screens, were each caught (four only after the lane gained the assertions they showed were missing).
Local CodeRabbit (
coderabbit review --agent --base staging): two passes, 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 the coat and carrying a waystone:
effects="-1" from="Leather coat"; the third wrote a malformed tag the Engine left alone, as it always has. One narration even had the coat snag.effects="+1" from="Waystone".stats=, then copied the form's example skill. The form now says a skill or save bonus goes inwornorcarried, never instats, and its example names no real skill; after that, 3 of 3 tellings on a fresh game invented the boots withworn: +1 on checks (Sneak). With no effect stated (a lucky charm), it invents the item without one, which is fine.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 two example rulesets. Translations: #6813 is the items arc's follow-up; this PR is added to it there.UI evidence (if applicable)
The dice card of a real turn's Sneak check in an Ember Roads game with the coat worn shows "Conditions and items: -1 to this roll" and "Changed by Leather coat" (5 + 5 - 1 = 9), and the coat's details say "While worn: -1 on checks (Sneak)" (captured by
e2e/game-ruleset-check-effects.e2e.tsasruleset-check-effects-card.png, desktop and phone).Summary by CodeRabbit
New Features
Compatibility
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.