[PR #7471] [MERGED] feat(game): generated worlds 2/5: loot, money, elements, battlefields, art and setup ideas from the setting kit #7749

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

📋 Pull Request Information

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

Base: staging ← Head: feat/generated-worlds-2


📝 Commits (10+)

  • 7902f7a feat(game): native loot in the setting's own words
  • 7bb81fb feat(game): money and markets without a ruleset, from the setting kit
  • 61d0a0e feat(game): elements in the setting's own words
  • 58036e0 feat(game): a setting's battlefields in its own words
  • bff7235 feat(game): a setting's own art, music and sounds
  • b67ebf0 feat(game): setup ideas from every kind of setting
  • e9556f7 Merge feat/world-living into feat/world-loot
  • 7884f27 Merge feat/world-loot into feat/world-money
  • 1ebc8f1 Merge feat/world-money into feat/world-elements
  • e5974b3 Merge feat/world-elements into feat/world-place-words

📊 Changes

65 files changed (+5135 additions, -620 deletions)

View changed files

📝 docs/game/combat.md (+9 -1)
📝 docs/game/game-assets.md (+11 -1)
📝 docs/game/getting-started.md (+5 -3)
📝 docs/game/party-and-npcs.md (+2 -0)
📝 e2e/game-experience-setup.e2e.ts (+106 -1)
📝 e2e/game-ruleset-loot.e2e.ts (+97 -80)
📝 e2e/game-ruleset-markets.e2e.ts (+104 -0)
➕ e2e/game-world-art.e2e.ts (+226 -0)
➕ e2e/game-world-elements.e2e.ts (+368 -0)
📝 packages/client/src/components/game-assets/GameAssetsBrowserView.tsx (+8 -0)
📝 packages/client/src/components/game/DirectedCombatUI.tsx (+13 -2)
📝 packages/client/src/components/game/GameCombatUI.tsx (+24 -3)
📝 packages/client/src/components/game/GameElementReaction.tsx (+8 -3)
📝 packages/client/src/components/game/GameSetupWizard.tsx (+57 -29)
📝 packages/client/src/components/game/GameSetupWorldKitChooser.tsx (+581 -0)
📝 packages/client/src/components/game/GameSurface.tsx (+76 -23)
📝 packages/client/src/components/game/TacticalCombatUI.tsx (+11 -3)
📝 packages/client/src/hooks/use-ruleset-item-book.ts (+10 -3)
📝 packages/client/src/lib/game-audio.ts (+12 -1)
➕ packages/client/src/lib/game-setup-suggestions.ts (+55 -0)

...and 45 more files

📄 Description

Linked issue

Part of #7468

Follows #7470 (generated worlds 1/5, merged). Please review and merge the series in order. New Overworld games stay behind the MARINARA_OVERWORLD_GAMES switch from #7470.

Why this change

  • A setting kit gives a world its words, but a fight, a shop and the art still came from a fantasy game: a won fight dropped Iron Shortswords, a cyberpunk fight played the fantasy battle track and swung swords, and perception hints heard war drums in every game.
  • Money and markets existed only with a ruleset, so a game on the native Engine had no coins and no shop.
  • Game Mode's elements lived in five closed lists that disagreed; one renamed fire to "pyro", so the server's reactions and weather never applied to it.
  • The setup wizard's ideas were three fixed, mostly fantasy ones, and picking a kit before a genre left a cyberpunk game told it was fantasy.

What changed

  • Loot: each setting kit names its loot by rarity (high fantasy keeps today's names). A game without a kit rolls the starter kit its genre names; a genre with no starter kit rolls plain things from no particular setting, never fantasy by default. The old fixed fantasy tables are gone.
  • Money and markets without a ruleset: a kit can carry one coin family and a shop of everyday things with prices and the smallest place that sells each; every starter has both (copper and gold, taels, dollars, credits, scrip). A game with no ruleset builds a ruleset-shaped item book and market from the kit, so the Game Master buys, pays and earns through the same tags and checks a ruleset market uses and is shown what the place sells. A kit with money and no shop pays and earns but has no market. Merged with #7470's market days: a kit market keeps its own quoter, a ruleset market keeps its market day, and a kit market with no item book prices against an empty purse.
  • Elements: one shared element set (features/world/elements.ts) feeds server reactions, the weather rule, the tactical wheel, the screen and its normalization: the kit's own (the five phases in wuxia, kinetic, thermal and EM in science fiction, none in modern day) or the classic six. A word like "pyro" is read as fire everywhere. The fighters the model builds and the special maneuvers it resolves read the same set.
  • Battlefields: a kit names the kinds of place its fights happen in (a rooftop, a teahouse, a starship deck), each laid out on the tactical board like one of the engine's battlefields, and its own words for the board's tiles. The model building a fight is asked for those scenes; area maps and passive perception read them. A game without a kit is asked exactly what it always was.
  • Art, music and sounds: a kit names its art family (fantasy, scifi, modern, wuxia, jazz_age, wasteland or its own). Its game uses that family's folders and the shared ones, never another family's, and the family's own tracks play first; generated backgrounds are filed under the family, and music can be uploaded to a family folder. A game with a kit and no genre is no longer called fantasy.
  • Setup ideas: setting and goal ideas come from all eight starter settings in a new mix each time the wizard opens, the picked kit's own first. Picking a kit before a genre sets the genre that fits, and a Wuxia genre joins the list. This is the fix for the last point under "Why this change", so game-experience-setup's "writes" test now expects the modern-day kit's game to be written as Modern rather than Fantasy. The "Surprise me!" chip is now localized.
  • The kit editor gains rows for loot, money and shop, elements and reactions, scenes and tile words, and the art family, all inside the World step that the Overworld lock greys out.
  • Lanes: world-kit-loot, world-kit-money, world-kit-elements, world-kit-battlefields, world-kit-art, game-setup-suggestions. E2E: game-ruleset-loot, game-ruleset-markets, game-world-elements, game-world-art, game-experience-setup.

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
  • On this branch after merging staging beb16bbd5 (which includes #7470 and #7483) and the review fixes: pnpm check green; world-kit-money, world-kit-art and game-setup-suggestions pass; game-experience-setup and game-ruleset-markets e2e pass on desktop Chromium (18/18). The full regression run is recorded on the first and last PRs of the series (#7470 and generated worlds 5/5); the three that fail there (memory-recall-revectorize, regeneration-context, and the ruleset-combat-director timeout) fail the same way on staging in the same container.
  • Earlier, on the separate branches: each part's lane and e2e specs on desktop and mobile Chromium, with planted defects caught for every part; the elements and battlefields parts also have a lane that drives every route with a stand-in model.

Manual verification notes

  • Art: the lane and e2e run with the audio output off.
  • Not checked by a person yet: hearing that a cyberpunk fight no longer plays the fantasy battle music; whether each kit's loot names, coin names and prices, scenes and setup ideas read right; whether the weather and reaction numbers feel right in a fight.

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)
  • Version/release files updated (only if this PR includes a version bump)
  • No CHANGELOG.md edit, per #7483; "What changed" above is for the release notes. docs/game/combat.md, docs/game/game-assets.md, docs/game/getting-started.md and docs/game/party-and-npcs.md changed; the translations are tracked on the Game Mode docs-i18n catch-up issue #6813.

UI evidence (if applicable)

No screenshots attached; the e2e specs above drive these screens (the kit editor's money, shop, elements and scene rows, the Game Assets panel's family line, and the wizard's idea chips).

Summary by CodeRabbit

  • New Features
    • Setting kits now shape combat elements, battlefield names, terrain, loot, currency, shops, and available art, music, and sound effects.
    • Edit setting kits to customize these details, including elemental reactions and shop prices.
    • Setup suggestions now rotate across settings, and selecting a kit sets its matching genre unless you’ve already chosen one.
    • Games without rulesets can use kit-provided items, markets, and currency.
    • Game asset browsing identifies the active setting’s art family.

🔄 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/7471 **Author:** [@kolacheee](https://github.com/kolacheee) **Created:** 10/12/2026 **Status:** ✅ Merged **Merged:** 10/12/2026 **Merged by:** [@kolacheee](https://github.com/kolacheee) **Base:** `staging` ← **Head:** `feat/generated-worlds-2` --- ### 📝 Commits (10+) - [`7902f7a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7902f7ac0a628399c1faddceee1c188b4e8793b6) feat(game): native loot in the setting's own words - [`7bb81fb`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7bb81fbbeca595f53867605aa4c59c7acfd599a2) feat(game): money and markets without a ruleset, from the setting kit - [`61d0a0e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/61d0a0e61158fb936fb511140036e5ad96888cf9) feat(game): elements in the setting's own words - [`58036e0`](https://github.com/Pasta-Devs/Marinara-Engine/commit/58036e0b8995f92fd4eef7f9431d501f5b9bf142) feat(game): a setting's battlefields in its own words - [`bff7235`](https://github.com/Pasta-Devs/Marinara-Engine/commit/bff7235ffc0cfbbad0ead697e234aee10bee538e) feat(game): a setting's own art, music and sounds - [`b67ebf0`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b67ebf0231ba37389eb7fa5850279b2e6d0e1dbc) feat(game): setup ideas from every kind of setting - [`e9556f7`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e9556f7a7c94dd9860503511d7af142bb6828102) Merge feat/world-living into feat/world-loot - [`7884f27`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7884f27a75c34458ca28a5d03194989a717f7d9f) Merge feat/world-loot into feat/world-money - [`1ebc8f1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1ebc8f181e698f9a8488b447566c1760713da5bd) Merge feat/world-money into feat/world-elements - [`e5974b3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e5974b3a64a0fe22670391a7770f539d0e9e4755) Merge feat/world-elements into feat/world-place-words ### 📊 Changes **65 files changed** (+5135 additions, -620 deletions) <details> <summary>View changed files</summary> 📝 `docs/game/combat.md` (+9 -1) 📝 `docs/game/game-assets.md` (+11 -1) 📝 `docs/game/getting-started.md` (+5 -3) 📝 `docs/game/party-and-npcs.md` (+2 -0) 📝 `e2e/game-experience-setup.e2e.ts` (+106 -1) 📝 `e2e/game-ruleset-loot.e2e.ts` (+97 -80) 📝 `e2e/game-ruleset-markets.e2e.ts` (+104 -0) ➕ `e2e/game-world-art.e2e.ts` (+226 -0) ➕ `e2e/game-world-elements.e2e.ts` (+368 -0) 📝 `packages/client/src/components/game-assets/GameAssetsBrowserView.tsx` (+8 -0) 📝 `packages/client/src/components/game/DirectedCombatUI.tsx` (+13 -2) 📝 `packages/client/src/components/game/GameCombatUI.tsx` (+24 -3) 📝 `packages/client/src/components/game/GameElementReaction.tsx` (+8 -3) 📝 `packages/client/src/components/game/GameSetupWizard.tsx` (+57 -29) 📝 `packages/client/src/components/game/GameSetupWorldKitChooser.tsx` (+581 -0) 📝 `packages/client/src/components/game/GameSurface.tsx` (+76 -23) 📝 `packages/client/src/components/game/TacticalCombatUI.tsx` (+11 -3) 📝 `packages/client/src/hooks/use-ruleset-item-book.ts` (+10 -3) 📝 `packages/client/src/lib/game-audio.ts` (+12 -1) ➕ `packages/client/src/lib/game-setup-suggestions.ts` (+55 -0) _...and 45 more files_ </details> ### 📄 Description ## Linked issue Part of #7468 Follows #7470 (generated worlds 1/5, merged). Please review and merge the series in order. New Overworld games stay behind the `MARINARA_OVERWORLD_GAMES` switch from #7470. ## Why this change - A setting kit gives a world its words, but a fight, a shop and the art still came from a fantasy game: a won fight dropped Iron Shortswords, a cyberpunk fight played the fantasy battle track and swung swords, and perception hints heard war drums in every game. - Money and markets existed only with a ruleset, so a game on the native Engine had no coins and no shop. - Game Mode's elements lived in five closed lists that disagreed; one renamed fire to "pyro", so the server's reactions and weather never applied to it. - The setup wizard's ideas were three fixed, mostly fantasy ones, and picking a kit before a genre left a cyberpunk game told it was fantasy. ## What changed - **Loot:** each setting kit names its loot by rarity (high fantasy keeps today's names). A game without a kit rolls the starter kit its genre names; a genre with no starter kit rolls plain things from no particular setting, never fantasy by default. The old fixed fantasy tables are gone. - **Money and markets without a ruleset:** a kit can carry one coin family and a shop of everyday things with prices and the smallest place that sells each; every starter has both (copper and gold, taels, dollars, credits, scrip). A game with no ruleset builds a ruleset-shaped item book and market from the kit, so the Game Master buys, pays and earns through the same tags and checks a ruleset market uses and is shown what the place sells. A kit with money and no shop pays and earns but has no market. Merged with #7470's market days: a kit market keeps its own quoter, a ruleset market keeps its market day, and a kit market with no item book prices against an empty purse. - **Elements:** one shared element set (`features/world/elements.ts`) feeds server reactions, the weather rule, the tactical wheel, the screen and its normalization: the kit's own (the five phases in wuxia, kinetic, thermal and EM in science fiction, none in modern day) or the classic six. A word like "pyro" is read as fire everywhere. The fighters the model builds and the special maneuvers it resolves read the same set. - **Battlefields:** a kit names the kinds of place its fights happen in (a rooftop, a teahouse, a starship deck), each laid out on the tactical board like one of the engine's battlefields, and its own words for the board's tiles. The model building a fight is asked for those scenes; area maps and passive perception read them. A game without a kit is asked exactly what it always was. - **Art, music and sounds:** a kit names its art family (fantasy, scifi, modern, wuxia, jazz_age, wasteland or its own). Its game uses that family's folders and the shared ones, never another family's, and the family's own tracks play first; generated backgrounds are filed under the family, and music can be uploaded to a family folder. A game with a kit and no genre is no longer called fantasy. - **Setup ideas:** setting and goal ideas come from all eight starter settings in a new mix each time the wizard opens, the picked kit's own first. Picking a kit before a genre sets the genre that fits, and a Wuxia genre joins the list. This is the fix for the last point under "Why this change", so `game-experience-setup`'s "writes" test now expects the modern-day kit's game to be written as Modern rather than Fantasy. The "Surprise me!" chip is now localized. - The kit editor gains rows for loot, money and shop, elements and reactions, scenes and tile words, and the art family, all inside the World step that the Overworld lock greys out. - Lanes: `world-kit-loot`, `world-kit-money`, `world-kit-elements`, `world-kit-battlefields`, `world-kit-art`, `game-setup-suggestions`. E2E: `game-ruleset-loot`, `game-ruleset-markets`, `game-world-elements`, `game-world-art`, `game-experience-setup`. ## 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` - On this branch after merging staging beb16bbd5 (which includes #7470 and #7483) and the review fixes: `pnpm check` green; `world-kit-money`, `world-kit-art` and `game-setup-suggestions` pass; `game-experience-setup` and `game-ruleset-markets` e2e pass on desktop Chromium (18/18). The full regression run is recorded on the first and last PRs of the series (#7470 and generated worlds 5/5); the three that fail there (`memory-recall-revectorize`, `regeneration-context`, and the `ruleset-combat-director` timeout) fail the same way on staging in the same container. - Earlier, on the separate branches: each part's lane and e2e specs on desktop and mobile Chromium, with planted defects caught for every part; the elements and battlefields parts also have a lane that drives every route with a stand-in model. ### Manual verification notes - Art: the lane and e2e run with the audio output off. - Not checked by a person yet: hearing that a cyberpunk fight no longer plays the fantasy battle music; whether each kit's loot names, coin names and prices, scenes and setup ideas read right; whether the weather and reaction numbers feel right in a fight. ## 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) - [ ] Version/release files updated (only if this PR includes a version bump) - No `CHANGELOG.md` edit, per #7483; "What changed" above is for the release notes. `docs/game/combat.md`, `docs/game/game-assets.md`, `docs/game/getting-started.md` and `docs/game/party-and-npcs.md` changed; the translations are tracked on the Game Mode docs-i18n catch-up issue #6813. ## UI evidence (if applicable) No screenshots attached; the e2e specs above drive these screens (the kit editor's money, shop, elements and scene rows, the Game Assets panel's family line, and the wizard's idea chips). <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Setting kits now shape combat elements, battlefield names, terrain, loot, currency, shops, and available art, music, and sound effects. * Edit setting kits to customize these details, including elemental reactions and shop prices. * Setup suggestions now rotate across settings, and selecting a kit sets its matching genre unless you’ve already chosen one. * Games without rulesets can use kit-provided items, markets, and currency. * Game asset browsing identifies the active setting’s art family. <!-- 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-24 04:07: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#7749
No description provided.