mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6823] [MERGED] feat(game): a ruleset's native: false keeps untyped items out of its games #7344
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#7344
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/6823
Author: @kolacheee
Created: 9/28/2026
Status: ✅ Merged
Merged: 9/28/2026
Merged by: @kolacheee
Base:
staging← Head:feat/ruleset-items-native📝 Commits (6)
f1f069ffeat(game): a ruleset's native: false keeps untyped items out of its games (#6822)222d940Merge remote-tracking branch 'origin/staging' into feat/ruleset-items-nativef2369affix(game): a directed fight keeps no guessed item effects when native items are off (#6822)9d96f6bMerge remote-tracking branch 'origin/staging' into feat/ruleset-items-nativec3948addocs(changelog): say that native: false only refuses new untyped items (#6822)a6b30b1Merge remote-tracking branch 'origin/staging' into feat/ruleset-items-native📊 Changes
19 files changed (+520 additions, -25 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)📝
docs/development/game-rulesets-and-sheets-implementation.md(+25 -0)📝
docs/extending/writing-rulesets.md(+3 -2)📝
docs/game/combat.md(+1 -1)📝
docs/game/party-and-npcs.md(+1 -1)📝
e2e/game-ruleset-items.e2e.ts(+87 -1)📝
packages/client/src/components/game/GameSurface.tsx(+9 -3)📝
packages/server/src/routes/combat-director.routes.ts(+11 -3)📝
packages/server/src/routes/encounter.routes.ts(+18 -5)📝
packages/server/src/routes/game.routes.ts(+21 -2)📝
packages/server/src/services/game/game-inventory.service.ts(+18 -3)📝
packages/server/src/services/game/gm-prompts.ts(+5 -0)📝
packages/shared/src/features/rulesets/item-book.ts(+2 -2)📝
scripts/regressions/combat-boss-provider.regression.ts(+38 -1)📝
scripts/regressions/combat-director-route.regression.ts(+57 -0)📝
scripts/regressions/game-inventory-turn.regression.ts(+129 -0)📝
scripts/regressions/game-ruleset-invented-items.regression.ts(+23 -0)📝
scripts/regressions/hybrid-terrain-route.regression.ts(+60 -1)📝
scripts/regressions/ruleset-combat-director-route.regression.ts(+10 -0)📄 Description
Linked issue
Closes #6822
Why this change
items.native: false(since Capability API 1.49), meaning it wants only its own items in its games, but nothing read it. The Game Master could still hand out untyped items with no ruleset data, and every fight still asked a model to guess what each inventory item does.What changed
native: false, its item book refuses a new untyped name asnot-ruleset-item, so it gives only the ruleset's items and the ones it invents. More of something already held, removing and giving work as before.propose: false).freeform.itemEffects, and drops any the model gives anyway;Items do nothing in a fight until a later slice (I6, I8) lets the ruleset say what they do.
gameRulesetTurnsNativeItemsOff, answers the question for all of these.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Run by the agent on this branch at
f1f069fb6(one commit on staginga49d7636f):pnpm checkexits 0 andpnpm localization:checkexits 0.pnpm regression:nodepasses 441/441, andpnpm smoke:uipasses 7/7.a49d7636f(which only adds #6821's Author's Notes fix):pnpm regression:ui e2e/game-ruleset-items.e2e.ts e2e/game-ruleset-wearing.e2e.ts e2e/game-inventory-bags.e2e.ts e2e/game-inventory-stacks.e2e.ts e2e/game-combat-ai.e2e.ts e2e/game-combat-director.e2e.ts --project=desktop-chromium --workers=1passes 16/16, and the four ruleset and inventory specs pass 5/5 on--project=mobile-chromium.Lanes:
game-inventory-turn.regression.ts, through the real routes: in an Ember Roads game withnative: false, a Game Master turn's new untyped "Lamp" is refused asnot-ruleset-item, while more of a held plain Rope, the catalog Hand axe and an invented Moon Charm all land; the player still types in a Candle; the next prompt carries the new instruction; and a new session brings back a plain item only the detailed inventory named.game-ruleset-invented-items.regression.ts: the instruction with invention allowed, withpropose: false(only the listed items), and its absence for a ruleset with Game Mode's own items.combat-boss-provider.regression.ts: the fight-start route, against a local model fixture, asks foritemEffectsand keeps the guess for Game Mode's own items, and fornative: falseasks for none and drops the one the fixture returns anyway.ruleset-combat-director-route.regression.ts: the blueprint prompt withoutitemEffects.combat-director-route.regression.ts: a directed fight in anative: falsegame offers no items, refuses the potion, and leaves the inventory as it was.hybrid-terrain-route.regression.ts: the round route refuses the player's and an ally's item action and still takes Defend; the tactical route refuses an item action.Thirteen deliberate breaks, in the item book's rule, the shared check, the carry-over, the instructions, the fight-start route and prompt, the directed fight and the round and tactical routes, were each caught. The browser check fails without the screen's part.
Local CodeRabbit (
coderabbit review --agent): one pass, 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
native: falseand Bram in the party, 5 tellings:Clicked through by the agent in the browser test at desktop width: the restored classic fight's Items offers the potion in a game with Game Mode's own items, and nothing in one whose ruleset turns them off.
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.md,docs/game/combat.mdanddocs/development/game-rulesets-and-sheets-implementation.md(all carried bydocs-i18n), andCHANGELOG.md. Translations: #6813 is the items arc's follow-up; this PR's four pages need adding to it (docs/game/combat.mdis new to the arc).UI evidence (if applicable)
e2e/game-ruleset-items.e2e.tsrestores a classic fight with a potion in the bag and an effect guessed for it, in two games: with Game Mode's own items the potion is offered under Items; with the ruleset'snative: falsenothing is (screenshotruleset-fight-no-items.png).Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.