mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6613] [MERGED] feat(game): a creature written in the ruleset's own terms #7254
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#7254
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/6613
Author: @kolacheee
Created: 9/24/2026
Status: ✅ Merged
Merged: 9/24/2026
Merged by: @kolacheee
Base:
staging← Head:feat/ruleset-creature-sheets📝 Commits (3)
40be7defeat(game): a creature written in the ruleset's own terms1d0e301fix(game): hold a creature's sheet to the ranges and tiers its ruleset declarescb092f1Merge remote-tracking branch 'origin/staging' into feat/ruleset-creature-sheets📊 Changes
31 files changed (+2167 additions, -185 deletions)
View changed files
📝
CHANGELOG.md(+3 -1)📝
docs/development/game-rulesets-and-sheets-implementation.md(+51 -0)📝
docs/development/optional-agent-packages.md(+22 -0)📝
docs/development/ruleset-5e-2014.example.json(+73 -2)📝
docs/examples/rulesets/ember-roads.json(+51 -0)📝
docs/extending/ruleset.schema.json(+163 -8)📝
docs/extending/writing-rulesets.md(+84 -12)📝
packages/client/src/localization/locales/en.json(+3 -0)📝
packages/server/src/routes/combat-director.routes.ts(+15 -1)📝
packages/server/src/routes/encounter.routes.ts(+2 -2)📝
packages/server/src/services/capability-packages/package-manager.service.ts(+16 -0)📝
packages/server/src/services/game/ruleset-combat-director.service.ts(+27 -13)📝
packages/shared/src/features/ruleset-combat/creatures.ts(+56 -7)📝
packages/shared/src/features/ruleset-combat/encounter.ts(+121 -50)📝
packages/shared/src/features/ruleset-combat/index.ts(+6 -1)📝
packages/shared/src/features/ruleset-combat/options.ts(+2 -3)📝
packages/shared/src/features/ruleset-combat/resolve.ts(+5 -5)📝
packages/shared/src/features/ruleset-combat/types.ts(+22 -4)📝
packages/shared/src/schemas/capability-package.schema.ts(+10 -1)📝
packages/shared/src/schemas/ruleset.schema.ts(+236 -59)...and 11 more files
📄 Description
Linked issue
Closes #6610
Why this change
writing-rulesets.mdstill said signature actions were "stored, priced and spent today; see Not yet below", but the window that offers them shipped in C5b. Three more places said the same thing.What changed
sheet, in the same shape as a character's sheet and with every part optional. A fight builds it with the same function it uses for a party member (sheetCombatant), so its health (a pool or a track), defense, saves, initiative, speed and the attacks and abilities on its lists all come from the ruleset's own formulas. What the entry adds beside the sheet (tier, traits, block actions, signature points, riders, resist/vulnerable/immune, condition immunities) is kept.health,defense,initiativeModifier,speed,abilitiesandsavesare refused beside it, and it may have no block actions. Without one, the first three and an action are still required. The published JSON Schema enforces both halves, pinned by the JSON Schema lane.rulesetListRowIssues, now also run over fields. Rows must stay within each list'smaxItems._catalogmust name a catalog that feeds the list, and, when that catalog is inline, an entry it holds.rulesetBestiarySheetCatalogIds), after the bestiaries themselves and only when a sheet names one.payWith. Both are now proven for a sheet-backed opponent.rulesetProposedCreatureSchemahas nosheet, because the clamp holds an invention to its tier by its numbers. A proposal that carries one is not read, and the tier is used.no-healthrefusal: a sheet that adds up to no health is left out at fight time with its own reason.RulesetCombatRefusalreason must now have a sentence inen.jsonand in the server'srulesetRefusalMessage. C5b'swindow-openandstale-windowhad neither; C4a's four positioned reasons had no server sentence.writing-rulesets.md, a Capability API 1.34 section, implementation notes, and a CHANGELOG entry. Removed the stale "later release" claims about signature windows (writing-rulesets, the 5e example's Hollow Sentinel comment,options.ts,resolve.ts) and the "opponent has no sheet" comments this makes untrue.Validation
pnpm checkpasses locallyCONTRIBUTING.mdCommands the agent ran, on the rebased branch:
pnpm check,pnpm localization:check,pnpm version:checkpnpm regression(full suite)scripts/regressions/game-ruleset-combat-creature-sheets.regression.ts. Each behaviour was mutation-tested: 19 deliberate breakages, each confirmed to fail the lane.maxItems). It was valid and is fixed, including the same gap for offered proficiency tiers. The second run had zero findings.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: the new Capability API 1.34 section in
docs/development/optional-agent-packages.mdis added to the batched follow-up #6458.The 5e package in Marinara-Agents adopts this in its own release later. Nothing here changes the package.
UI evidence (if applicable)
No UI changes. The only client change is three new refusal sentences in
en.json.Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.