[PR #6454] [MERGED] docs(rulesets): say why a health pool cannot carry kinds of harm #7182

Closed
opened 2026-10-23 04:17:18 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/6454
Author: @kolacheee
Created: 9/20/2026
Status: ✅ Merged
Merged: 9/20/2026
Merged by: @kolacheee

Base: staging ← Head: docs/ruleset-damage-kinds-guidance


📝 Commits (7)

  • 51d22f4 docs(rulesets): say why a pool cannot carry kinds of harm, and drop the em dashes from this arc's pages
  • 1ce0ccb feat(rulesets): a weapon can be a single strike a turn however many attacks its wielder has
  • a6299f1 Merge remote-tracking branch 'origin/staging' into docs/ruleset-damage-kinds-guidance
  • bd91c72 feat(game): a condition that outlives a fight is the Game Master's to end
  • 5fda712 test(rulesets): the health-refusal case asserts the refusal before reading it
  • 2643fac Merge remote-tracking branch 'origin/staging' into docs/ruleset-damage-kinds-guidance
  • 3264925 Merge remote-tracking branch 'origin/staging' into docs/ruleset-damage-kinds-guidance

📊 Changes

17 files changed (+247 additions, -27 deletions)

View changed files

📝 CHANGELOG.md (+6 -0)
📝 docs/development/game-rulesets-and-sheets-implementation.md (+3 -3)
📝 docs/development/optional-agent-packages.md (+22 -0)
📝 docs/development/ruleset-5e-2014.example.json (+10 -1)
📝 docs/extending/ruleset.schema.json (+15 -0)
📝 docs/extending/writing-rulesets.md (+10 -3)
📝 docs/game/dice-and-skill-checks.md (+1 -1)
📝 packages/client/src/lib/ruleset-combat-bridge.ts (+23 -0)
📝 packages/server/src/services/capability-packages/package-manager.service.ts (+13 -0)
📝 packages/shared/src/features/ruleset-combat/encounter.ts (+3 -1)
📝 packages/shared/src/schemas/capability-package.schema.ts (+7 -1)
📝 packages/shared/src/schemas/ruleset.schema.ts (+33 -8)
📝 scripts/regressions/capability-package-lifecycle.regression.ts (+4 -4)
📝 scripts/regressions/game-ruleset-combat-core.regression.ts (+45 -4)
📝 scripts/regressions/game-ruleset-combat-creatures.regression.ts (+4 -1)
📝 scripts/regressions/game-ruleset-combat-wounds.regression.ts (+29 -0)
📝 scripts/regressions/ruleset-combat-screen-client.regression.ts (+19 -0)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

No issue: this is a documentation gap found while writing the 5e package's 1.29 release (https://github.com/Pasta-Devs/Marinara-Agents/pull/994), where an author would have hit the refusal this explains. Related to #6314.

Why this change

  • The repo recorded the RULE that combat.damageKinds is required with a wound track and refused with a pool, in three places: the schema refusal, the authoring guide's key reference, and the Capability API 1.30 row. None of them said WHY, or what to do instead.
  • So an author writing a system whose wounds are bashing, lethal or aggravated, with health as a pool, meets a bare refusal and has nothing telling them that a pool has nowhere to keep a kind and a wound track does. The reasoning existed only in a chat log, which is no use to the next person reading the guide.
  • That is the shape of question the guide exists to answer: it is a choice between two health shapes, made once, early, and expensive to get wrong.

What changed

  • docs/extending/writing-rulesets.md gains a short paragraph at the head of Wound tracks, where an author picks between the two shapes: a pool records how MUCH harm landed, a track records how much and what KIND each piece of it was, so a kind that still matters after the blow needs a mark to live on. It also says what a pool CAN still do, since damageTypes and an opponent's resistances are a different question, and that is worth not overstating.
  • The damageKinds key reference points at that explanation instead of only stating the rule.
  • The refusal an author actually sees now names the remedy: "…and health is a pool, which has nowhere to keep one: point health at a wound track if what KIND a wound was still matters after the blow."
  • No em dashes left in this arc's own pages: docs/extending/writing-rulesets.md, docs/game/dice-and-skill-checks.md and the sheets plan, where a comma, a parenthesis or the words n/a say the same thing. Two of the three were in a paragraph added earlier the same day, so this is tidying up after myself rather than rewriting anybody else's prose. docs/development/optional-agent-packages.md has 57 more, all of them in other features' sections, and they are deliberately left alone.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

pnpm check exit 0, and the 22 game-ruleset* regressions pass, including the one that pins the refusal message by pattern. One local CodeRabbit sweep against staging, zero findings.

The wording was checked against the code rather than written from memory: a pool ruleset really is refused damageKinds (game-ruleset-combat-wounds.regression.ts asserts it), a wound track's marks really do carry a kind that healing reads, and a pool ruleset really can still declare damageTypes and have creatures resist them, which is why the paragraph says so rather than implying a pool is blind to type.

Nothing to verify by hand beyond reading it: no behaviour changes, and the only code change is the text of one refusal message.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

Docs touched: docs/extending/writing-rulesets.md, docs/game/dice-and-skill-checks.md, docs/development/game-rulesets-and-sheets-implementation.md (an internal plan, not translated) and CHANGELOG.md. The first two are on the docs-i18n list and are already inside the translation pass being coordinated in #6429, which covers writing-rulesets.md and the ruleset game pages; this PR adds one paragraph and one clause to files that pass already includes, so it needs no new follow-up issue. Say if you would rather have one.

UI evidence (if applicable)

None: documentation and one refusal string.

Summary by CodeRabbit

  • New Features

    • Combat recaps now identify conditions that persist after a fight and explain how to remove them.
    • Weapons can be configured to allow only one strike per turn, supporting Loading-style rules.
  • Documentation

    • Clarified when to use wound tracks instead of pool-based health for damage types.
    • Added guidance for configuring per-weapon strike limits.
    • Standardized unavailable-value notation and clarified custom dice notation.
  • Validation

    • Improved authoring errors for incompatible health and damage-type configurations.
    • Added compatibility checks for rulesets using per-weapon strike limits.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/6454 **Author:** [@kolacheee](https://github.com/kolacheee) **Created:** 9/20/2026 **Status:** ✅ Merged **Merged:** 9/20/2026 **Merged by:** [@kolacheee](https://github.com/kolacheee) **Base:** `staging` ← **Head:** `docs/ruleset-damage-kinds-guidance` --- ### 📝 Commits (7) - [`51d22f4`](https://github.com/Pasta-Devs/Marinara-Engine/commit/51d22f4cf8d9a4f8e30f03af9ef410346081a1ee) docs(rulesets): say why a pool cannot carry kinds of harm, and drop the em dashes from this arc's pages - [`1ce0ccb`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1ce0ccbb222df93d8e3b7c380ed433b0708b90e9) feat(rulesets): a weapon can be a single strike a turn however many attacks its wielder has - [`a6299f1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a6299f14e3204d4d32c7effda134d21916a89837) Merge remote-tracking branch 'origin/staging' into docs/ruleset-damage-kinds-guidance - [`bd91c72`](https://github.com/Pasta-Devs/Marinara-Engine/commit/bd91c722efb996405d4638e086939ae7fa85564c) feat(game): a condition that outlives a fight is the Game Master's to end - [`5fda712`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5fda712cccb6637d8feee35b7e7fbee424f7e154) test(rulesets): the health-refusal case asserts the refusal before reading it - [`2643fac`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2643facaa388c680be52572a750cd1c49d6ef9ee) Merge remote-tracking branch 'origin/staging' into docs/ruleset-damage-kinds-guidance - [`3264925`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3264925f31c76c77928901005b5caf672e294c11) Merge remote-tracking branch 'origin/staging' into docs/ruleset-damage-kinds-guidance ### 📊 Changes **17 files changed** (+247 additions, -27 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+6 -0) 📝 `docs/development/game-rulesets-and-sheets-implementation.md` (+3 -3) 📝 `docs/development/optional-agent-packages.md` (+22 -0) 📝 `docs/development/ruleset-5e-2014.example.json` (+10 -1) 📝 `docs/extending/ruleset.schema.json` (+15 -0) 📝 `docs/extending/writing-rulesets.md` (+10 -3) 📝 `docs/game/dice-and-skill-checks.md` (+1 -1) 📝 `packages/client/src/lib/ruleset-combat-bridge.ts` (+23 -0) 📝 `packages/server/src/services/capability-packages/package-manager.service.ts` (+13 -0) 📝 `packages/shared/src/features/ruleset-combat/encounter.ts` (+3 -1) 📝 `packages/shared/src/schemas/capability-package.schema.ts` (+7 -1) 📝 `packages/shared/src/schemas/ruleset.schema.ts` (+33 -8) 📝 `scripts/regressions/capability-package-lifecycle.regression.ts` (+4 -4) 📝 `scripts/regressions/game-ruleset-combat-core.regression.ts` (+45 -4) 📝 `scripts/regressions/game-ruleset-combat-creatures.regression.ts` (+4 -1) 📝 `scripts/regressions/game-ruleset-combat-wounds.regression.ts` (+29 -0) 📝 `scripts/regressions/ruleset-combat-screen-client.regression.ts` (+19 -0) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. <!-- See CONTRIBUTING.md § Branches. --> ## Linked issue No issue: this is a documentation gap found while writing the 5e package's 1.29 release (https://github.com/Pasta-Devs/Marinara-Agents/pull/994), where an author would have hit the refusal this explains. Related to #6314. ## Why this change - The repo recorded the RULE that `combat.damageKinds` is required with a wound track and refused with a pool, in three places: the schema refusal, the authoring guide's key reference, and the Capability API 1.30 row. None of them said WHY, or what to do instead. - So an author writing a system whose wounds are bashing, lethal or aggravated, with health as a pool, meets a bare refusal and has nothing telling them that a pool has nowhere to keep a kind and a wound track does. The reasoning existed only in a chat log, which is no use to the next person reading the guide. - That is the shape of question the guide exists to answer: it is a choice between two health shapes, made once, early, and expensive to get wrong. ## What changed - `docs/extending/writing-rulesets.md` gains a short paragraph at the head of **Wound tracks**, where an author picks between the two shapes: a pool records how MUCH harm landed, a track records how much and what KIND each piece of it was, so a kind that still matters after the blow needs a mark to live on. It also says what a pool CAN still do, since `damageTypes` and an opponent's resistances are a different question, and that is worth not overstating. - The `damageKinds` key reference points at that explanation instead of only stating the rule. - The refusal an author actually sees now names the remedy: "…and health is a pool, which has nowhere to keep one: point health at a wound track if what KIND a wound was still matters after the blow." - No em dashes left in this arc's own pages: `docs/extending/writing-rulesets.md`, `docs/game/dice-and-skill-checks.md` and the sheets plan, where a comma, a parenthesis or the words `n/a` say the same thing. Two of the three were in a paragraph added earlier the same day, so this is tidying up after myself rather than rewriting anybody else's prose. `docs/development/optional-agent-packages.md` has 57 more, all of them in other features' sections, and they are deliberately left alone. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes `pnpm check` exit 0, and the 22 `game-ruleset*` regressions pass, including the one that pins the refusal message by pattern. One local CodeRabbit sweep against `staging`, zero findings. The wording was checked against the code rather than written from memory: a pool ruleset really is refused `damageKinds` (`game-ruleset-combat-wounds.regression.ts` asserts it), a wound track's marks really do carry a kind that healing reads, and a pool ruleset really can still declare `damageTypes` and have creatures resist them, which is why the paragraph says so rather than implying a pool is blind to type. Nothing to verify by hand beyond reading it: no behaviour changes, and the only code change is the text of one refusal message. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) Docs touched: `docs/extending/writing-rulesets.md`, `docs/game/dice-and-skill-checks.md`, `docs/development/game-rulesets-and-sheets-implementation.md` (an internal plan, not translated) and `CHANGELOG.md`. The first two are on the `docs-i18n` list and are already inside the translation pass being coordinated in #6429, which covers `writing-rulesets.md` and the ruleset game pages; this PR adds one paragraph and one clause to files that pass already includes, so it needs no new follow-up issue. Say if you would rather have one. ## UI evidence (if applicable) None: documentation and one refusal string. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Combat recaps now identify conditions that persist after a fight and explain how to remove them. - Weapons can be configured to allow only one strike per turn, supporting Loading-style rules. - **Documentation** - Clarified when to use wound tracks instead of pool-based health for damage types. - Added guidance for configuring per-weapon strike limits. - Standardized unavailable-value notation and clarified custom dice notation. - **Validation** - Improved authoring errors for incompatible health and damage-type configurations. - Added compatibility checks for rulesets using per-weapon strike limits. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:17:18 +07:00
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#7182
No description provided.