mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #6610] [Feature]: Game Mode: let a ruleset's stat block carry the ruleset's own parameters, not a fixed shape #3701
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#3701
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?
Originally created by @kolacheee on GitHub (Sep 24, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6610
Originally assigned to: @kolacheee on GitHub.
What problem does this solve?
In a Game Mode fight resolved by a ruleset's own numbers, a party member has a sheet built from whatever the ruleset declares: its own fields, pools, tracks, skills and saves. An opponent has a stat block instead, and a stat block has a fixed shape:
healthnumber, onedefensenumber, aninitiativeModifierand aspeedsaveskeyed by the ruleset's own save ids, which is the one part that already speaks the ruleset's languageabilities, which are carried for the Game Master and never read by anythingIt has no pools, no tracks, no skills and no fields. Rulesets do not all use the same stats, skills and other parameters, so an opponent can only be described as far as that fixed shape happens to fit a given system. Where it does not fit, the gap shows up in several places at once:
healthis a number.docs/extending/writing-rulesets.mdlists this as a known limit: an opponent has no sheet to mark, so a blow against one cannot be softened by its kind.toHit, and a save must carry its own difficulty on the action, because, as the authoring guide puts it, a stat block is not a character sheet, so there is nowhere else for that number to come from.Proposed solution
Let a stat block carry the ruleset's own declared parameters, keyed by the same ids the ruleset's sheet declares, instead of a fixed set:
An action could then name a
costagainst the block's own pools, the same way a catalog entry does, and read its numbers from the block's own values instead of carrying flat ones. The fixed fields that exist today would stay valid, so every bestiary already shipped keeps working, and a block that names nothing new behaves exactly as it does now.This is a format change, so a ruleset package that uses it would need a new Capability API minor. It must not be shaped around any one system: the keys are whatever the ruleset itself declares.
Alternatives considered
Make every creature a full sheet build, the same shape a party member has. That is the cleanest in principle, since a creature could then say anything a character can, but it is a lot to ask of a bestiary. The 5e package alone ships over three hundred creatures. It could still be offered as an option beside the lighter block.
Add pools to stat blocks and nothing else. That would let opponents spend and upcast, but it leaves wound tracks, several defenses and skills where they are. Fixing one parameter at a time would keep the block shaped around whichever systems were looked at first.
Additional context
Part of the ruleset combat arc. Raised in review of #6608, where the upcasting change turned out to reach only characters with sheets. The current block is
RulesetStatBlockinpackages/shared/src/features/ruleset-combat/types.ts, and the limits it causes are listed in the Not yet section ofdocs/extending/writing-rulesets.md.Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@kolacheee commented on GitHub (Sep 24, 2026):
Taking this on, together with a leftover from https://github.com/Pasta-Devs/Marinara-Engine/pull/6525:
docs/extending/writing-rulesets.mdstill says signature actions are only "stored, priced and spent today; see Not yet below", though that Not yet entry went away when they got their window between turns. One PR for both.Working shape, to steer early if it is wrong: a bestiary entry may carry a partial character sheet in the ruleset's own terms (every part of a sheet build already defaults to empty, so
{ "fields": { "ac": 13 } }is a whole one). An opponent built from it goes through the same path a party member does, so its health (pool or track), defense, saves, speed, initiative, the abilities on its lists, their costs and upcasting all come from the ruleset's own declarations, and its block actions still add to that. The fixed numbers a sheet replaces are not also given, so there is one source of truth. A creature the Game Master invents mid-scene stays a plain block, because the clamp that holds an invention to its tier cannot vouch for a sheet. An opponent's sheet lives for the fight only and is never written back to any character, which needs a fix first: the write-back today picks out party members by "has a sheet".