[PR #8034] [MERGED] Experience features 2/4: seasons, flying creatures, ruleset overlays, fight variants, dungeon looks, story reach and item costs (Capability API 1.351-1.359) #8065

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

📋 Pull Request Information

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

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


📝 Commits (6)

  • c16b30b Experience features 2/4: seasons, flying creatures, ruleset overlays, fight variants, dungeon looks, story reach and item costs (Capability API 1.351-1.359)
  • d33f9b1 Merge staging (Experience features 1/4) into Experience features 2/4
  • 681e095 Sort en.json keys
  • f251a42 Merge branch 'staging' of https://github.com/Pasta-Devs/Marinara-Engine into exp-part2
  • 5157867 Experience features part 2: answer Dottore's review
  • 6e84c2f Experience features part 2: overlay file ids per Experience, safe spend withdrawal

📊 Changes

58 files changed (+3530 additions, -174 deletions)

View changed files

📝 docs/development/optional-agent-packages.md (+81 -0)
📝 docs/extending/writing-creature-packs.md (+9 -1)
📝 docs/extending/writing-rulesets.md (+8 -0)
📝 docs/extending/writing-story-scripts.md (+87 -6)
📝 packages/client/src/components/game/CreatureArt.tsx (+21 -2)
📝 packages/client/src/components/game/DungeonMapView.tsx (+10 -4)
📝 packages/client/src/components/game/GameSurface.tsx (+1 -0)
📝 packages/client/src/components/game/RulesetCombatBoard.tsx (+1 -0)
📝 packages/client/src/components/game/TacticalCombatUI.tsx (+9 -1)
📝 packages/client/src/components/game/TownView.tsx (+9 -2)
📝 packages/client/src/components/game/WorldOverworld.tsx (+28 -10)
📝 packages/client/src/hooks/use-game.ts (+3 -0)
📝 packages/client/src/hooks/use-overworld-view.ts (+15 -2)
📝 packages/client/src/lib/ruleset-combat-log.ts (+2 -0)
📝 packages/client/src/lib/ruleset-combat-menu.ts (+10 -5)
📝 packages/client/src/localization/locales/en.json (+4 -0)
📝 packages/server/src/routes/combat-director.routes.ts (+21 -0)
📝 packages/server/src/routes/game.routes.ts (+26 -4)
📝 packages/server/src/routes/generate.routes.ts (+5 -1)
📝 packages/server/src/services/capability-packages/package-manager.service.ts (+70 -0)

...and 38 more files

📄 Description

Linked issue

Part of #7996 (2 of 4). Follows #8004; parts 3 and 4 open as this one merges, because each takes the next Capability numbers.

Why this change

  • A story could not hold a place in a season, scale a fight to the party it meets, or branch inside one event.
  • An Experience could bring creatures but not flying ones, could not add to a game's ruleset, and could not dress its hand-made dungeons in its own tiles.

What changed

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

  • 1.351: story seasons. A place (and everything inside it) or the whole world can be held at a season whatever the date; a season action changes or releases it. Battlefields can be painted per season.
  • 1.352, 1.354: flying creatures. Creature packs can give a creature flying art, and a ruleset fighter can be in the air (airborne), with free move:take-off and move:land moves.
  • 1.353: a story may hold 256 flags (64 before).
  • 1.355: an Experience can ship ruleset overlays. They add bestiary creatures, conditions, creature tags and catalog entries to a game's ruleset of that id while the Experience is on. An overlay that doesn't fit is left out whole.
  • 1.356: a story fight can have variants by party size, each with its own creatures, board and note. The Game Master is told which variant was set.
  • 1.357: an Experience can ship image tile packs for its hand-made maps (a dungeon set), and a hand map can carry its own words for the Game Master.
  • 1.358: story scripts reach further. They gain any condition groups, a fight event naming its fight, a leave event, number flags with min and max, and an if on each action and cutscene page.
  • 1.359: a ruleset overlay can give items a story cost (storyUses). A fight refuses the use while the story's flag is below the threshold, and the next story turn records what was spent.

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

  • pnpm check and the full pnpm regression (976 files) pass locally on this part, merged with staging after part 1 landed.
  • New regressions for each minor: world-story-seasons, game-creature-flying-art, game-ruleset-combat-airborne, world-experience-rulesets, world-story-fight-variants, world-experience-dungeon-looks, world-story-reach and world-story-item-costs, plus 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/extending/writing-creature-packs.md, docs/extending/writing-rulesets.md, docs/development/optional-agent-packages.md.

UI evidence (if applicable)

No new screens; flying art and seasons show on existing boards. 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/8034 **Author:** [@kolacheee](https://github.com/kolacheee) **Created:** 10/21/2026 **Status:** ✅ Merged **Merged:** 10/22/2026 **Merged by:** [@kolacheee](https://github.com/kolacheee) **Base:** `staging` ← **Head:** `claude/project-thread-iwmrlb-part2` --- ### 📝 Commits (6) - [`c16b30b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c16b30b18802f97990215131c825e20ee674e74d) Experience features 2/4: seasons, flying creatures, ruleset overlays, fight variants, dungeon looks, story reach and item costs (Capability API 1.351-1.359) - [`d33f9b1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d33f9b1ae0269417d4fe3c6dda94b668e4904132) Merge staging (Experience features 1/4) into Experience features 2/4 - [`681e095`](https://github.com/Pasta-Devs/Marinara-Engine/commit/681e0955732c4a4525c9db7d38d3bf1140aaca3f) Sort en.json keys - [`f251a42`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f251a424900b077dfa419f77b9e9cb3586243aca) Merge branch 'staging' of https://github.com/Pasta-Devs/Marinara-Engine into exp-part2 - [`5157867`](https://github.com/Pasta-Devs/Marinara-Engine/commit/51578670bbee3ca2bca9d070fbe7b1ccc8fa47a0) Experience features part 2: answer Dottore's review - [`6e84c2f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6e84c2f8e462e55cb6eb5067c6068ebaeaa6ae42) Experience features part 2: overlay file ids per Experience, safe spend withdrawal ### 📊 Changes **58 files changed** (+3530 additions, -174 deletions) <details> <summary>View changed files</summary> 📝 `docs/development/optional-agent-packages.md` (+81 -0) 📝 `docs/extending/writing-creature-packs.md` (+9 -1) 📝 `docs/extending/writing-rulesets.md` (+8 -0) 📝 `docs/extending/writing-story-scripts.md` (+87 -6) 📝 `packages/client/src/components/game/CreatureArt.tsx` (+21 -2) 📝 `packages/client/src/components/game/DungeonMapView.tsx` (+10 -4) 📝 `packages/client/src/components/game/GameSurface.tsx` (+1 -0) 📝 `packages/client/src/components/game/RulesetCombatBoard.tsx` (+1 -0) 📝 `packages/client/src/components/game/TacticalCombatUI.tsx` (+9 -1) 📝 `packages/client/src/components/game/TownView.tsx` (+9 -2) 📝 `packages/client/src/components/game/WorldOverworld.tsx` (+28 -10) 📝 `packages/client/src/hooks/use-game.ts` (+3 -0) 📝 `packages/client/src/hooks/use-overworld-view.ts` (+15 -2) 📝 `packages/client/src/lib/ruleset-combat-log.ts` (+2 -0) 📝 `packages/client/src/lib/ruleset-combat-menu.ts` (+10 -5) 📝 `packages/client/src/localization/locales/en.json` (+4 -0) 📝 `packages/server/src/routes/combat-director.routes.ts` (+21 -0) 📝 `packages/server/src/routes/game.routes.ts` (+26 -4) 📝 `packages/server/src/routes/generate.routes.ts` (+5 -1) 📝 `packages/server/src/services/capability-packages/package-manager.service.ts` (+70 -0) _...and 38 more files_ </details> ### 📄 Description ## Linked issue Part of #7996 (2 of 4). Follows #8004; parts 3 and 4 open as this one merges, because each takes the next Capability numbers. ## Why this change - A story could not hold a place in a season, scale a fight to the party it meets, or branch inside one event. - An Experience could bring creatures but not flying ones, could not add to a game's ruleset, and could not dress its hand-made dungeons in its own tiles. ## What changed Story tools and Experience content (Capability API 1.351-1.359, each declared by the map pack that uses it): - 1.351: story seasons. A place (and everything inside it) or the whole world can be held at a season whatever the date; a `season` action changes or releases it. Battlefields can be painted per season. - 1.352, 1.354: flying creatures. Creature packs can give a creature flying art, and a ruleset fighter can be in the air (`airborne`), with free `move:take-off` and `move:land` moves. - 1.353: a story may hold 256 flags (64 before). - 1.355: an Experience can ship ruleset overlays. They add bestiary creatures, conditions, creature tags and catalog entries to a game's ruleset of that id while the Experience is on. An overlay that doesn't fit is left out whole. - 1.356: a story fight can have variants by party size, each with its own creatures, board and note. The Game Master is told which variant was set. - 1.357: an Experience can ship image tile packs for its hand-made maps (a dungeon set), and a hand map can carry its own words for the Game Master. - 1.358: story scripts reach further. They gain `any` condition groups, a `fight` event naming its fight, a `leave` event, number flags with `min` and `max`, and an `if` on each action and cutscene page. - 1.359: a ruleset overlay can give items a story cost (`storyUses`). A fight refuses the use while the story's flag is below the threshold, and the next story turn records what was spent. 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 - `pnpm check` and the full `pnpm regression` (976 files) pass locally on this part, merged with staging after part 1 landed. - New regressions for each minor: `world-story-seasons`, `game-creature-flying-art`, `game-ruleset-combat-airborne`, `world-experience-rulesets`, `world-story-fight-variants`, `world-experience-dungeon-looks`, `world-story-reach` and `world-story-item-costs`, plus 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/extending/writing-creature-packs.md`, `docs/extending/writing-rulesets.md`, `docs/development/optional-agent-packages.md`. ## UI evidence (if applicable) No new screens; flying art and seasons show on existing boards. 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:06 +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#8065
No description provided.