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#7360
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/6866
Author: @kolacheee
Created: 9/29/2026
Status: ✅ Merged
Merged: 9/29/2026
Merged by: @kolacheee
Base:
staging← Head:feat/ruleset-items-armor📝 Commits (4)
3cb58aafeat(rulesets): armor and worn effects in ruleset fights, resolution.adjust in fights, and hardness (#6857)1635c86fix(rulesets): hardness forecast for areas, no hardness on invented opponents, clearer adjacent-critical text (#6857)1a89947Merge remote-tracking branch 'origin/staging' into feat/ruleset-items-armorfd655eedocs(changelog): say a blow below hardness lands but does no damage (#6857)📊 Changes
34 files changed (+2907 additions, -659 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)📝
docs/development/game-rulesets-and-sheets-implementation.md(+57 -0)📝
docs/examples/rulesets/ember-roads.json(+5 -1)📝
docs/examples/rulesets/gravewatch.json(+15 -2)📝
docs/extending/ruleset.schema.json(+863 -536)📝
docs/extending/writing-rulesets.md(+43 -11)➕
e2e/game-ruleset-armor.e2e.ts(+101 -0)📝
packages/client/src/components/game/RulesetItemPicker.tsx(+41 -0)📝
packages/client/src/lib/ruleset-combat-log.ts(+11 -1)📝
packages/client/src/localization/locales/en.json(+20 -0)📝
packages/server/src/services/capability-packages/package-manager.service.ts(+47 -0)📝
packages/server/src/services/game/gm-prompts.ts(+19 -4)📝
packages/shared/src/features/ruleset-combat/creatures.ts(+6 -0)📝
packages/shared/src/features/ruleset-combat/encounter.ts(+148 -23)📝
packages/shared/src/features/ruleset-combat/index.ts(+2 -0)📝
packages/shared/src/features/ruleset-combat/options.ts(+8 -2)📝
packages/shared/src/features/ruleset-combat/resolve.ts(+23 -7)📝
packages/shared/src/features/ruleset-combat/types.ts(+9 -0)📝
packages/shared/src/features/rulesets/check-effects.ts(+22 -0)📝
packages/shared/src/features/rulesets/invented-items.ts(+95 -4)...and 14 more files
📄 Description
Linked issue
Closes #6857
Why this change
resolution.adjust(Ember Roads' stance on every Brawn roll, Gravewatch's light on every Nerve roll) reached checks but not a fight's attack rolls, saves, contest checks or initiative; and where initiative is spent as damage, a blow met no armor at all. This is slice I5-2 of the ruleset items plan.What changed
wornandcarriedtake every condition effect but the four a level cannot have (nobody put an item on its holder, and it never ends by itself), modifiers to defense, attacks and speed, and newresist,vulnerable,immuneandconditionImmunities. A fight reads them for the holder alongside their conditions and levels, each item once and named for the stack, and so does an unmet requirement'sotherwise: attacks, defense, speed, effects, failed saves, the harm a blow does, and conditions a blow or a crash would put on. A check outside a fight still reads only the check and save parts.resolution.adjustin a fight. Every roll a fight builds from a sheet adds it as a check does: attack rows and weapons, ability entries that roll to hit, saves, contest checks and initiative, as the fight opens and when it is thrown again. A roll read off an ability, a skill or a save takes that ability's entries; anything else takes only the entries for every roll.combat.pool.hardnessreads a fighter's hardness off their sheet (their armor's, throughitemStat), and a creature may give its ownhardness. A spending blow whose dice are below it lands and does nothing: the number goes back to the base, the log says so, and the menu forecasts no harm for it. Only where a style spends initiative; a creature written as a sheet takes it from the sheet.+N,-N, advantage or disadvantage on attacks and+Nor-Non defense (or the ruleset's word for it, "Guard"), held to the rarity's bonus; the proposal form says so, and names the item stat the defense already counts. An invented item that gives such a stat drops a worn change to defense beside it, since a small model writes both for one +1. A copied speed change is not capped, since it is a distance rather than a bonus.combat.damageTypes, conditions, hardness only with a spending style, and a sheet creature's hardness refused. The install gate asks for 1.56 in the ruleset file and in catalog files.adjustin fights, hardness in the pool block and on creatures indocs/extending/writing-rulesets.md(whose line saying fight parts were refused, and the "Not yet" line about sturdy targets, are corrected); the 1.56 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
3cb58aafd(one commit on stagingff59af37e):pnpm checkexits 0,pnpm localization:checkexits 0 andpnpm regressionpasses 464/464 on the final code, rebased onto current staging; Prettier passes on the changed files.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 27/27, and the game ruleset specs pass 8/8 on--project=mobile-chromium. These ran before the review fixes below and the last rebase; after both, the two item specs (e2e/game-ruleset-armor.e2e.tsande2e/game-ruleset-weapons.e2e.ts) passed again on desktop.Lanes:
game-ruleset-armor.regression.ts: every part at import and at the gate (each alone, a requirement's cost, a creature's hardness, a catalog file); items in a fight on attacks (also where no condition of the ruleset changes a number), defense on top of the coat's own guard, speed and cannot-move, attacks against the holder, failed saves, the waystone halving a cinder-moth's burn, the bell keeping Rattled off against the hollow warden's grip and an opening crash, an unmet requirement costing a die, one item once and a carried one doing nothing; the log naming the ring (even when a stack is named like a condition);resolution.adjuston attack rows, weapons, a weapon's skill, ability entries, contest checks off an ability, a save and a skill, saves, and initiative as a sum, as a pool and thrown again; hardness on the blow, at the line, in the forecast, off the sheet and out of the bestiary; item facts and the Game Master's line; invented items.e2e/game-ruleset-armor.e2e.ts(desktop and phone): the ring's and the bell's details in a Gravewatch game.Fifty-nine deliberate breaks, across the import checks, the gate, the fight's reading of items, the hide and condition immunities,
adjuston each kind of roll, hardness, the facts, invented items, the proposal form and the item details on screen, were each caught.Local CodeRabbit (
coderabbit review --agent --base staging), three passes:withoutItemReads,withoutWeaponsand the rest).combat.pool.hardness, which is redundant becausecombat.poolis refused outside a pool fight.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:
+1 Guard, but 2 of them also gave the bracerguard=1(orguard=2), a stat Guard already adds up, so those bracers would have given +2 or +3. A line in the form asking for one or the other did not change that (4 of 6 in the next two runs), so the Engine now drops the worn change beside such a stat and says so. After that, 3 of 3 bracers came out +1 Guard: two by the stat, one by the worn change.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 a Gravewatch game where Ada wears the widow's ring and the Dawn bell, both bound, the ring's details read "While worn: -1 on attacks" and the bell's "While worn: +1 on checks (Ward); immune to Rattled" (captured by
e2e/game-ruleset-armor.e2e.tsasruleset-armor-details.png, desktop and phone).Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.