[PR #8039] [MERGED] Experience features 3/4: larger parties, exposures, fight adjustments, Held Ground and sheet actions (Capability API 1.360-1.371) #8068

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8039
Author: @kolacheee
Created: 10/22/2026
Status: ✅ Merged
Merged: 10/22/2026
Merged by: @kolacheee

Base: staging ← Head: claude/project-thread-iwmrlb-part3


📝 Commits (5)

  • 2aa66a8 Experience features 3/4: larger parties, exposures, fight adjustments, Held Ground and sheet actions (Capability API 1.360-1.371)
  • 5afa298 Merge remote-tracking branch 'origin/staging' into exp-part3-next
  • 5c71551 Experience features part 3: answer Dottore's review
  • 86574a7 Experience features part 3: answer Dottore's second sweep
  • 7547a87 Let a noncombatant sit out by its own id alone

📊 Changes

36 files changed (+3563 additions, -152 deletions)

View changed files

📝 docs/development/optional-agent-packages.md (+29 -5)
📝 docs/extending/writing-story-scripts.md (+132 -20)
📝 packages/server/src/routes/combat-director.routes.ts (+70 -5)
📝 packages/server/src/routes/generate.routes.ts (+145 -37)
📝 packages/server/src/services/game/experience-companions.service.ts (+46 -4)
📝 packages/server/src/services/game/map-pack.service.ts (+3 -0)
📝 packages/server/src/services/game/ruleset-combat-director.service.ts (+13 -0)
📝 packages/server/src/services/game/ruleset-registry.service.ts (+23 -14)
📝 packages/server/src/services/game/skill-check-resolution.service.ts (+11 -2)
➕ packages/server/src/services/game/story-exposure-saves.service.ts (+109 -0)
📝 packages/server/src/services/game/story-fight.service.ts (+75 -5)
➕ packages/server/src/services/game/story-held-ground.service.ts (+301 -0)
📝 packages/server/src/services/game/time.service.ts (+9 -0)
📝 packages/shared/src/features/ruleset-combat/encounter.ts (+30 -1)
📝 packages/shared/src/features/ruleset-combat/sight.ts (+11 -0)
📝 packages/shared/src/features/ruleset-combat/types.ts (+2 -0)
📝 packages/shared/src/features/rulesets/check-effects.ts (+4 -1)
📝 packages/shared/src/features/rulesets/live-state.ts (+13 -2)
📝 packages/shared/src/features/world/experience-people.ts (+16 -2)
📝 packages/shared/src/features/world/experience-rulesets.ts (+5 -1)

...and 16 more files

📄 Description

Linked issue

Part of #7996 (3 of 4). Follows #8034; part 4 opens as this one merges, because it takes the next Capability numbers.

Why this change

  • A story fight could not scale past a party of six or adjust a creature for the party it meets.
  • A story had no way to wear the party down over time (cold, hunger, dread), to hold death off where the party stands, or to change a character's sheet.
  • An Experience's ruleset overlay only reached a ruleset under its bare id, so an imported copy of the same ruleset played without it.

What changed

Story tools and Experience content (Capability API 1.360-1.371, each declared by the map pack that uses it):

  • 1.360: larger parties. A partySize condition, fight variants for parties above six or open-ended, and up to 12 variants.
  • 1.361: a season action can hold a place over everything inside it.
  • 1.362, 1.364, 1.365: exposures. A story can wear the party down over time with a sheet track, with an optional save (1.364) and places whose shade spares it (sparedByShade, 1.365). A track's upTo caps a mark (1.364).
  • 1.363, 1.371: a story fight can adjust its creatures (hit points, Legendary Resistance), by party level (levels) and with calls for help (1.371). The Game Master is told what changed.
  • 1.366, 1.369: Held Ground. A story can hold death off where the party stands (the ruleset's Held Ground rule), and release it on its own terms (1.369).
  • 1.367: an overlay can add sheet tracks.
  • 1.368: a sheet action puts a sheet condition on the party or moves a track.
  • 1.370: give can name an item by its bare entry id, or give a list.
  • An overlay for a ruleset's exact id (local/<id>, <owner>/<id>) wins over one for its bare id, and an imported copy plays the bare one.

Experiences play on generated worlds, so they need Overworld games turned on (MARINARA_OVERWORLD_GAMES) like any story script. No CHANGELOG.md edit, per #7483.

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

  • Typecheck, lint, formatting and the full pnpm regression pass locally on this part, merged with current staging (which now holds parts 1 and 2). launcher-browser-ready can't listen on ::1 in the container it ran in.
  • New regressions: world-story-party-size, world-story-exposures, world-story-exposure-saves, world-story-fight-adjust, world-story-held-ground, world-story-sheet-actions and world-story-precedence, plus additions to world-experience-rulesets, world-story-actions, world-experience-people and the lifecycle table.
  • Not tried against a live model.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README) 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): added to #7512
  • Version/release files updated (only if this PR includes a version bump)

Docs: docs/extending/writing-story-scripts.md, docs/development/optional-agent-packages.md.

UI evidence (if applicable)

No new screens; exposures and Held Ground show on the existing sheet and board. No screenshots attached.


🔄 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/8039 **Author:** [@kolacheee](https://github.com/kolacheee) **Created:** 10/22/2026 **Status:** ✅ Merged **Merged:** 10/22/2026 **Merged by:** [@kolacheee](https://github.com/kolacheee) **Base:** `staging` ← **Head:** `claude/project-thread-iwmrlb-part3` --- ### 📝 Commits (5) - [`2aa66a8`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2aa66a8fb202eb4395a977aab0b0b2bcb552522f) Experience features 3/4: larger parties, exposures, fight adjustments, Held Ground and sheet actions (Capability API 1.360-1.371) - [`5afa298`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5afa2982e78873f29e6778d141dc2b0a0798e162) Merge remote-tracking branch 'origin/staging' into exp-part3-next - [`5c71551`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5c7155160192dd27a68f96e2c8a80d722a58ba5a) Experience features part 3: answer Dottore's review - [`86574a7`](https://github.com/Pasta-Devs/Marinara-Engine/commit/86574a7e393810d5d4952631e154680a7a1b2470) Experience features part 3: answer Dottore's second sweep - [`7547a87`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7547a87ec5620695d516c14ffee31c3e11e71110) Let a noncombatant sit out by its own id alone ### 📊 Changes **36 files changed** (+3563 additions, -152 deletions) <details> <summary>View changed files</summary> 📝 `docs/development/optional-agent-packages.md` (+29 -5) 📝 `docs/extending/writing-story-scripts.md` (+132 -20) 📝 `packages/server/src/routes/combat-director.routes.ts` (+70 -5) 📝 `packages/server/src/routes/generate.routes.ts` (+145 -37) 📝 `packages/server/src/services/game/experience-companions.service.ts` (+46 -4) 📝 `packages/server/src/services/game/map-pack.service.ts` (+3 -0) 📝 `packages/server/src/services/game/ruleset-combat-director.service.ts` (+13 -0) 📝 `packages/server/src/services/game/ruleset-registry.service.ts` (+23 -14) 📝 `packages/server/src/services/game/skill-check-resolution.service.ts` (+11 -2) ➕ `packages/server/src/services/game/story-exposure-saves.service.ts` (+109 -0) 📝 `packages/server/src/services/game/story-fight.service.ts` (+75 -5) ➕ `packages/server/src/services/game/story-held-ground.service.ts` (+301 -0) 📝 `packages/server/src/services/game/time.service.ts` (+9 -0) 📝 `packages/shared/src/features/ruleset-combat/encounter.ts` (+30 -1) 📝 `packages/shared/src/features/ruleset-combat/sight.ts` (+11 -0) 📝 `packages/shared/src/features/ruleset-combat/types.ts` (+2 -0) 📝 `packages/shared/src/features/rulesets/check-effects.ts` (+4 -1) 📝 `packages/shared/src/features/rulesets/live-state.ts` (+13 -2) 📝 `packages/shared/src/features/world/experience-people.ts` (+16 -2) 📝 `packages/shared/src/features/world/experience-rulesets.ts` (+5 -1) _...and 16 more files_ </details> ### 📄 Description ## Linked issue Part of #7996 (3 of 4). Follows #8034; part 4 opens as this one merges, because it takes the next Capability numbers. ## Why this change - A story fight could not scale past a party of six or adjust a creature for the party it meets. - A story had no way to wear the party down over time (cold, hunger, dread), to hold death off where the party stands, or to change a character's sheet. - An Experience's ruleset overlay only reached a ruleset under its bare id, so an imported copy of the same ruleset played without it. ## What changed Story tools and Experience content (Capability API 1.360-1.371, each declared by the map pack that uses it): - 1.360: larger parties. A `partySize` condition, fight variants for parties above six or open-ended, and up to 12 variants. - 1.361: a `season` action can hold a place `over` everything inside it. - 1.362, 1.364, 1.365: exposures. A story can wear the party down over time with a sheet track, with an optional save (1.364) and places whose shade spares it (`sparedByShade`, 1.365). A track's `upTo` caps a mark (1.364). - 1.363, 1.371: a story fight can `adjust` its creatures (hit points, Legendary Resistance), by party level (`levels`) and with `calls` for help (1.371). The Game Master is told what changed. - 1.366, 1.369: Held Ground. A story can hold death off where the party stands (the ruleset's Held Ground rule), and `release` it on its own terms (1.369). - 1.367: an overlay can add sheet tracks. - 1.368: a `sheet` action puts a sheet condition on the party or moves a track. - 1.370: `give` can name an item by its bare entry id, or give a list. - An overlay for a ruleset's exact id (`local/<id>`, `<owner>/<id>`) wins over one for its bare id, and an imported copy plays the bare one. Experiences play on generated worlds, so they need Overworld games turned on (`MARINARA_OVERWORLD_GAMES`) like any story script. No CHANGELOG.md edit, per #7483. ## Validation - [x] `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 - Typecheck, lint, formatting and the full `pnpm regression` pass locally on this part, merged with current staging (which now holds parts 1 and 2). `launcher-browser-ready` can't listen on `::1` in the container it ran in. - New regressions: `world-story-party-size`, `world-story-exposures`, `world-story-exposure-saves`, `world-story-fight-adjust`, `world-story-held-ground`, `world-story-sheet-actions` and `world-story-precedence`, plus additions to `world-experience-rulesets`, `world-story-actions`, `world-experience-people` and the lifecycle table. - Not tried against a live model. ## Docs and release impact - [ ] No docs changes needed - [x] Updated docs (README / CONTRIBUTING / android/README) as needed - [x] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation): added to #7512 - [ ] Version/release files updated (only if this PR includes a version bump) Docs: `docs/extending/writing-story-scripts.md`, `docs/development/optional-agent-packages.md`. ## UI evidence (if applicable) No new screens; exposures and Held Ground show on the existing sheet and board. No screenshots attached. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-24 04:10:07 +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#8068
No description provided.