[GH-ISSUE #6407] [Feature]: a ruleset cannot express a wound track with named levels, penalties and damage kinds, so the tracked systems cannot be written #3584

Closed
opened 2026-10-21 06:04:31 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @kolacheee on GitHub (Sep 20, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6407

Originally assigned to: @kolacheee on GitHub.

The gap

A ruleset can declare a health pool (one number, a maximum that may be a formula, an optional temporary buffer). That is the right shape for hit points. It is the wrong shape for the tracked systems: World of Darkness, Chronicles of Darkness, Exalted, Fate. Those have a track of levels, each level carrying a name and a penalty, marked with damage of different kinds that sort and upgrade.

None of that can be said today:

  • liveTrackSchema (packages/shared/src/schemas/ruleset.schema.ts) is { id, label, min, max, default? }: a bounded integer, with no per-step label and no per-step penalty.
  • Nothing anywhere reads a pool or a track and applies a modifier to a roll. I checked difficultyLadder and proficiencyTiers, which are the two ladder-shaped things in the format: the first is check difficulties and the second is skill training, and neither reads live state. So a wound track cannot bite.
  • There are no damage kinds on a track. applyRulesetSheetOp's damage op (packages/shared/src/features/rulesets/live-state.ts) is arithmetic on one number, with no type argument, no marks, no sorting and no upgrading. (combat.damageTypes exists, but only for resist/vulnerable/immune multipliers inside a fight; it never writes to the sheet.)
  • combat.health names one entry of sheet.live.pools and the schema refuses a track id outright, so health cannot be a track even if one could hold this.

The only lever today is the Game Master manually typing bonus="-2" on a check, inside the ruleset's declared situationalDice range. A rule the book states as a number becomes the model's judgement, which is the same complaint as #6405.

A shape that is already proven

A contributor has built this against Marinara as an overlay extension, for V20 and for Exalted 3rd, and their format says it in a way that maps almost directly onto ours:

{
  "id": "health",
  "label": "Health",
  "levels": [
    { "label": "Bruised", "penalty": 0 },
    { "label": "Hurt", "penalty": -1 },
    { "label": "Injured", "penalty": -1 },
    { "label": "Wounded", "penalty": -2 },
    { "label": "Mauled", "penalty": -2 },
    { "label": "Crippled", "penalty": -5 },
    { "label": "Incapacitated", "penalty": -99 }
  ],
  "damageTypes": [
    { "id": "bashing", "label": "B", "severity": 0 },
    { "id": "lethal", "label": "L", "severity": 1 },
    { "id": "aggravated", "label": "A", "severity": 2 }
  ]
}

Their Exalted track is the same shape with different labels (-0, -1, -1, -2, -2, -4, Inc).

Two things to notice, because they carry their weight:

  • severity gives the sorting for free. Marks sort by severity, so aggravated sits above lethal sits above bashing without a rule being written, and "bashing upgrades to lethal when the track is full" is an ordering statement rather than special-case code.
  • penalty is per level, not per box, which is what makes the duplicate labels (-1, -1) meaningful.

Suggested shape for the Engine

A live.tracks[] entry gains two optional keys, and a track that declares levels is a wound track rather than a bounded integer:

levels?: [{ label, penalty }]        // 1..16, in order, worst last
marks?:  [{ id, label, severity }]   // 1..6, the kinds of damage it can take

Then:

  • The live state for such a track holds its marks rather than one integer, kept sorted by severity. { op: "damage", track, kind, amount } marks it; a mark landing on a full track upgrades the lowest mark to the next severity, which is exactly the SRD-of-Darkness rule.
  • The penalty is read by the resolver. For dice-pool it takes dice off the pool; for dice-sum it is a flat modifier. That single wire is what turns the track from a picture into a rule, and it is the part the contributor could not do from outside the Engine.
  • combat.health accepts a track with levels as well as a pool, and the combat resolver marks it instead of subtracting.
  • The sheet shows the boxes with their labels, and the player can mark and clear them by hand, because these systems expect a player to manage their own track.
  • Refused at import for a ruleset whose resolution kind cannot honour the penalty, and gated behind a Capability API bump so an older Engine refuses the package rather than showing a track that does nothing.

The player-editable maximum the contributor asked about (Chronicles' Stamina + Size, Exalted buying levels) already works through a pool's max being a value reference over a derived sum, recomputed on every read. It is the levels and the marks that are missing, not the arithmetic.

Why it matters

Every system on that contributor's list except the d20 ones is a tracked system. Without this they are all "a number that goes down", and the thing that makes them feel like themselves, taking a beating and fighting on worse, is not modelled.

Originally created by @kolacheee on GitHub (Sep 20, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6407 Originally assigned to: @kolacheee on GitHub. ## The gap A ruleset can declare a health **pool** (one number, a maximum that may be a formula, an optional temporary buffer). That is the right shape for hit points. It is the wrong shape for the tracked systems: World of Darkness, Chronicles of Darkness, Exalted, Fate. Those have a **track of levels**, each level carrying a name and a penalty, marked with damage of different kinds that sort and upgrade. None of that can be said today: - `liveTrackSchema` (`packages/shared/src/schemas/ruleset.schema.ts`) is `{ id, label, min, max, default? }`: a bounded integer, with no per-step label and no per-step penalty. - **Nothing anywhere reads a pool or a track and applies a modifier to a roll.** I checked `difficultyLadder` and `proficiencyTiers`, which are the two ladder-shaped things in the format: the first is check difficulties and the second is skill training, and neither reads live state. So a wound track cannot bite. - There are no damage kinds on a track. `applyRulesetSheetOp`'s `damage` op (`packages/shared/src/features/rulesets/live-state.ts`) is arithmetic on one number, with no type argument, no marks, no sorting and no upgrading. (`combat.damageTypes` exists, but only for resist/vulnerable/immune multipliers inside a fight; it never writes to the sheet.) - `combat.health` names one entry of `sheet.live.pools` and the schema refuses a track id outright, so health cannot be a track even if one could hold this. The only lever today is the Game Master manually typing `bonus="-2"` on a check, inside the ruleset's declared `situationalDice` range. A rule the book states as a number becomes the model's judgement, which is the same complaint as #6405. ## A shape that is already proven A contributor has built this against Marinara as an overlay extension, for V20 and for Exalted 3rd, and their format says it in a way that maps almost directly onto ours: ```json { "id": "health", "label": "Health", "levels": [ { "label": "Bruised", "penalty": 0 }, { "label": "Hurt", "penalty": -1 }, { "label": "Injured", "penalty": -1 }, { "label": "Wounded", "penalty": -2 }, { "label": "Mauled", "penalty": -2 }, { "label": "Crippled", "penalty": -5 }, { "label": "Incapacitated", "penalty": -99 } ], "damageTypes": [ { "id": "bashing", "label": "B", "severity": 0 }, { "id": "lethal", "label": "L", "severity": 1 }, { "id": "aggravated", "label": "A", "severity": 2 } ] } ``` Their Exalted track is the same shape with different labels (`-0`, `-1`, `-1`, `-2`, `-2`, `-4`, `Inc`). Two things to notice, because they carry their weight: - **`severity` gives the sorting for free.** Marks sort by severity, so aggravated sits above lethal sits above bashing without a rule being written, and "bashing upgrades to lethal when the track is full" is an ordering statement rather than special-case code. - **`penalty` is per level, not per box**, which is what makes the duplicate labels (`-1`, `-1`) meaningful. ## Suggested shape for the Engine A `live.tracks[]` entry gains two optional keys, and a track that declares `levels` is a wound track rather than a bounded integer: ``` levels?: [{ label, penalty }] // 1..16, in order, worst last marks?: [{ id, label, severity }] // 1..6, the kinds of damage it can take ``` Then: - The live state for such a track holds its marks rather than one integer, kept sorted by severity. `{ op: "damage", track, kind, amount }` marks it; a mark landing on a full track upgrades the lowest mark to the next severity, which is exactly the SRD-of-Darkness rule. - **The penalty is read by the resolver.** For `dice-pool` it takes dice off the pool; for `dice-sum` it is a flat modifier. That single wire is what turns the track from a picture into a rule, and it is the part the contributor could not do from outside the Engine. - `combat.health` accepts a track with `levels` as well as a pool, and the combat resolver marks it instead of subtracting. - The sheet shows the boxes with their labels, and the player can mark and clear them by hand, because these systems expect a player to manage their own track. - Refused at import for a ruleset whose resolution kind cannot honour the penalty, and gated behind a Capability API bump so an older Engine refuses the package rather than showing a track that does nothing. The player-editable maximum the contributor asked about (Chronicles' Stamina + Size, Exalted buying levels) **already works** through a pool's `max` being a value reference over a derived `sum`, recomputed on every read. It is the levels and the marks that are missing, not the arithmetic. ## Why it matters Every system on that contributor's list except the d20 ones is a tracked system. Without this they are all "a number that goes down", and the thing that makes them feel like themselves, taking a beating and fighting on worse, is not modelled.
bsakaguchi 2026-10-21 06:04:31 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Sep 20, 2026):

Implemented and merged into staging in #6416, with integration fixes and regression coverage.

<!-- gh-comment-id:5750153050 --> @SpicyMarinara commented on GitHub (Sep 20, 2026): Implemented and merged into staging in #6416, with integration fixes and regression coverage.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#3584
No description provided.