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#7358
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/6856
Author: @kolacheee
Created: 9/29/2026
Status: ✅ Merged
Merged: 9/29/2026
Merged by: @kolacheee
Base:
staging← Head:feat/ruleset-items-weapons📝 Commits (1)
da45f41feat(rulesets): weapons as items in ruleset fights, and damage that gets through a resistance (#6855)📊 Changes
31 files changed (+2615 additions, -98 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)📝
docs/development/game-rulesets-and-sheets-implementation.md(+44 -0)📝
docs/examples/rulesets/ember-roads.json(+38 -2)📝
docs/examples/rulesets/gravewatch.json(+41 -2)📝
docs/extending/ruleset.schema.json(+707 -6)📝
docs/extending/writing-rulesets.md(+38 -4)➕
e2e/game-ruleset-weapons.e2e.ts(+188 -0)📝
packages/client/src/components/game/RulesetItemPicker.tsx(+33 -0)📝
packages/client/src/localization/locales/en.json(+8 -0)📝
packages/server/src/services/capability-packages/package-manager.service.ts(+21 -0)📝
packages/server/src/services/game/gm-prompts.ts(+4 -2)📝
packages/shared/src/features/ruleset-combat/creatures.ts(+13 -7)📝
packages/shared/src/features/ruleset-combat/encounter.ts(+137 -3)📝
packages/shared/src/features/ruleset-combat/options.ts(+1 -0)📝
packages/shared/src/features/ruleset-combat/pool.ts(+25 -10)📝
packages/shared/src/features/ruleset-combat/resolve.ts(+24 -8)📝
packages/shared/src/features/ruleset-combat/types.ts(+15 -4)📝
packages/shared/src/features/rulesets/invented-items.ts(+7 -0)📝
packages/shared/src/features/rulesets/item-book.ts(+195 -5)📝
packages/shared/src/schemas/capability-package.schema.ts(+7 -1)...and 11 more files
📄 Description
Linked issue
Closes #6855
Why this change
What changed
attack, the shape a combat block's attack rows have with values in place of columns:budget; to hit from the best of someabilities, askill(with the attack's ability swapped in, as a row's is),proficiencyread off the holder's sheet, abonus, and in a pool fight a per-weapontarget; damagedice, the best of someabilities, abonusand atype;reachandrange(a weapon with both is thrown, as a sheet row already is, so there is nothrownkey);versatiledice while each slot the weapon takes has room for as much again; andstrikes.{ "stat": id }, so an item the Game Master inventslike=a weapon fights with its own stats, held torarityCaps. One invented with no slot and no binding is made without the attack, and says so. One invented in a category of weapons with nothing to start from fights as the ruleset's weapon of that category it is most like by name (a word shared either way, else the first), taking the stats that attack reads which the proposal left out, and says so; the proposal form tells the Game Master a weapon made like one fights like it.targetis passed to the attack's throw and to its forecast, held inside the ruleset's range.resistorimmuneentry may be{ "type": "tearing", "except": ["silver"] }; a weapon's tags are what its blows carry, every part of the blow included. A plain word is what it always was.targetonly where a pool's target moves, distances only withcombat.distance, a weapon that can be worn,versatileonly on an item that takes a slot, and an exception's tags. A ruleset with no combat block carries a weapon and reads nothing, as a catalog entry'sbudgetis. The install gate asks for 1.55 in the ruleset file and in catalog files.attack (Action): Brawn to hit, 1d6 + Brawn cut, reach 2 paces, range 10 to 20 paces.docs/extending/writing-rulesets.md, whose three lines saying items do nothing in a fight are corrected; the 1.55 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
da45f41ae(one commit on staginged0eed9d3):pnpm checkexits 0,pnpm localization:checkexits 0, andpnpm regressionpasses 447/447 on the final code (the last change after that run is one sentence in the author guide).pnpm smoke:uipasses 7/7. On--project=desktop-chromium, the ruleset, inventory, game dice and combat director 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,e2e/game-combat-director.e2e.ts) pass 26/26, and the game ruleset specs pass 7/7 on--project=mobile-chromium. These ran before the last change to how an invented weapon is armed, which touches only invention; after it, the lanes that read invention and the whole regression suite passed again.Lanes:
game-ruleset-weapons.regression.ts: every import refusal and the lenient no-combat case, the 1.55 gate (the weapon and the exception each on its own, and a catalog file), weapons in a summed fight (the options, versatile with a hand free and with both hands full, a stack of two counting twice, a carried bow offering nothing, stat reads and a stat the item does not give, the best of two abilities, a skill with the attack's ability swapped in, proficiency on and off, bonuses, strikes, and a real swing), a pool fight (the spade's own target on the throw and in the forecast, the nail's pool target), silver through a resistance and an immunity and a plain word unchanged, the grave wight built out of the bestiary, item facts and the Game Master's line, and invented weapons.game-ruleset-invented-items.regression.ts: the proposal form says a weapon made like one fights like it only where the ruleset has fights, and a weapon proposed withoutlike=fights as the hand axe.game-inventory-turn.regression.ts: a real Game Master turn's "Mourning Edge", made like the hand axe, keeps the axe's attack.e2e/game-ruleset-weapons.e2e.ts(desktop and phone): in an Ember Roads game, the held hand axe's details show its attack, and a ruleset fight offers "Hand axe" and not the carried bow, and resolves a swing with it.Sixty-seven deliberate breaks, across the import checks, the gate, the fight, the pool throw and forecast, what gets through a resistance, the facts, invented weapons (and the weapon a proposal with nothing to start from fights as), the proposal form and the item details on screen, were each caught.
Local CodeRabbit (
coderabbit review --agent --base staging): two passes, one finding each, both fixed. The first: an enum stat's damage types were lowercased without the trim the written type gets (now trimmed, with a lane case). The second: a sentence in the author guide read as ifnative: falsealso took weapons out of a fight (split in two).Game Master turns on a real local model (Gemma 4 E4B, Q8, through llama.cpp) on an isolated Engine from this branch, where the player holds a weapon and asks for a new one:
like=, so none of them had an attack and none would have been offered in a fight. The Engine now gives a weapon invented with nothing to start from the attack of the ruleset's weapon of its category it is most like by name, with the stats that attack reads which the proposal left out, and says so ("It fights as Hand axe does."), and the proposal form says a weapon made like one fights like it. Across two runs after that, every axe the model added (4 of 4) was a weapon; the other two tellings narrated the forging without handing it over yet.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)
In an Ember Roads game where Juno holds a hand axe, its details read "Attack (Action): Brawn to hit, 1d6 + Brawn cut damage" and "Reach 2 paces, Range 10 to 20 paces", and a ruleset fight against a cinder-moth offers "Hand axe" (her carried hunting bow is not on the menu); the swing's log line reads "Juno attacks Cinder-moth with Hand axe: ... + 3 = ... against Guard 5" (captured by
e2e/game-ruleset-weapons.e2e.tsasruleset-weapon-details.pngandruleset-weapon-fight.png, desktop and phone).Summary by CodeRabbit
New Features
Documentation
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.