mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6623] [MERGED] feat(game): a Game Master's invented opponent may be a sheet, held to its class and tier #7258
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#7258
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/6623
Author: @kolacheee
Created: 9/24/2026
Status: ✅ Merged
Merged: 9/24/2026
Merged by: @kolacheee
Base:
staging← Head:feat/ruleset-invented-sheets📝 Commits (10+)
6d2376ffeat(game): a Game Master's invented opponent may be a sheet, held to its tier3959cb0feat(game): an invented enemy keeps its class's own entries and fills the rest by temperament2a52f26docs(game): say how an invented enemy is held to its class, filled in, and left alone as a boss0c221f2fix(game): read each catalog once for the sheet brief, and name the fill limits270acd9fix(game): load every list an invented sheet may choose from, and share the creature key lists with the schema generator92adacafix(game): measure a striking round with strikes in hand going to the heaviest row, and file the Toll Sergeant under its own tier01c8dd1fix(game): bring an entry's other rows with it on an invented sheet, and show text fields in the sheet brief947d30bfix(game): measure a bigger payment per part, and let a layer keep only the values it took outbc05ce6fix(game): shave the rider a held round counts, as the plain clamp does0d06a36Merge remote-tracking branch 'origin/staging' into feat/ruleset-invented-sheets📊 Changes
18 files changed (+1906 additions, -140 deletions)
View changed files
📝
CHANGELOG.md(+1 -1)📝
docs/development/game-rulesets-and-sheets-implementation.md(+37 -3)📝
docs/development/ruleset-5e-2014.example.json(+3 -3)📝
docs/extending/writing-rulesets.md(+42 -3)📝
packages/client/src/lib/ruleset-catalog.ts(+4 -14)📝
packages/server/src/routes/combat-director.routes.ts(+36 -5)📝
packages/server/src/routes/encounter.routes.ts(+118 -0)📝
packages/server/src/services/game/ruleset-catalog.service.ts(+2 -1)📝
packages/server/src/services/game/ruleset-combat-director.service.ts(+84 -2)📝
packages/shared/src/features/ruleset-combat/creatures.ts(+3 -2)➕
packages/shared/src/features/ruleset-combat/hold.ts(+707 -0)📝
packages/shared/src/features/ruleset-combat/index.ts(+7 -0)📝
packages/shared/src/features/rulesets/scaled-rows.ts(+17 -0)📝
packages/shared/src/schemas/ruleset.schema.ts(+97 -15)📝
scripts/generate-ruleset-schema.mjs(+8 -3)📝
scripts/regressions/game-ruleset-combat-creature-sheets.regression.ts(+581 -69)📝
scripts/regressions/game-ruleset-json-schema.regression.ts(+9 -7)📝
scripts/regressions/ruleset-combat-director-route.regression.ts(+150 -12)📄 Description
Linked issue
Closes #6622
Why this change
What changed
sheet, read leniently inpackages/shared/src/features/ruleset-combat/hold.ts(readProposedRulesetSheet):restrictRulesetSheetEntrieskeeps only the entries a catalog filter withstartFromopens to the sheet's own value, matched bysheetFieldMatchTexts, which moved to shared so the picker and the fight agree. No format change.fillRulesetSheetChoicesworks on every list a creature chooses from (an ability source withonlyWhen):The route assigns tactics up front from the same unit and seed the picker would use, so the creature fills and fights with one temperament.
holdRulesetSheetHealthmoves health into the band through the one field the health pool reads, or asumwith one field in it, and otherwise leaves it as written with a log line; a wound track is never changed.holdRulesetCombatantthen works on the built combatant:EncounterSheetBriefgives the Game Master the sheet's ids and what each holds (text fields included), the lists a fight reads, the field that opens each list, up to 60 catalog names per list, and the boss rule. Each catalog is read once.narrowedByLayers), so a layer is never silently skipped and a bestiary file never refused over one.writing-rulesets.md(Opponents nobody wrote, creature sheets), implementation notes and the CHANGELOG, whose #6613 line is updated.Validation
pnpm checkpasses locallyCONTRIBUTING.mdCommands the agent ran on the branch:
pnpm check,pnpm regression(full suite), andpnpm localization:check.The new cases are in
scripts/regressions/game-ruleset-combat-creature-sheets.regression.tsand the route lane, and every behaviour was mutation-tested. The temperament tests assert margins, not a bare "more": without any weighting, protective and reckless come out level. Local CodeRabbit sweeps over this work raised ten findings across six rounds, and nine were fixed:The last round raised one trivial suggestion, which was declined: caching the brief's catalog names across encounter starts. The catalog loader is uncached by design, so a package update never serves stale entries, and the fight route itself reads the same catalogs on every start.
Manual verification notes
Needs doing by a human:
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)Translated docs: none of the pages this changes are carried on the
docs-i18nbranch (writing-rulesets.mdand the implementation notes are not translated).UI evidence (if applicable)
No UI changes.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.