[PR #8964] MRPG (Marinara RPG): a class system for Game Mode, with Legacy kept for older games #8920

Open
opened 2026-11-08 05:56:46 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8964
Author: @kolacheee
Created: 11/7/2026
Status: 🔄 Open

Base: staging ← Head: claude/project-thread-iavqvq


📝 Commits (7)

  • 7b0f12b MRPG (Marinara RPG): a class system for Game Mode, with Legacy kept for older games
  • f6e6f6e MRPG: a new main tree keeps a fallen member fallen and their companions; a fled party keeps only what it stole
  • 31e1882 MRPG review fixes: a failed join can retry, the upgrade waits for its preview, turn marker unclipped, accessories keep their places, no hidden persona picks shared, board AI failures logged
  • af6b26e MRPG review fixes: an MRPG join the server refuses shows no error; board AI failures are rate limited
  • 902e0d1 MRPG: the joiner's stat amounts parse without a backtracking pattern
  • 284bb32 MRPG: spaces inside a stat word or number still leave the term unread
  • adef919 Merge remote-tracking branch 'upstream/staging' into mrpg/staging-pr

📊 Changes

137 files changed (+32439 additions, -460 deletions)

View changed files

📝 docs/CONFIGURATION.md (+1 -1)
📝 docs/characters/colors-and-stats.md (+20 -5)
📝 docs/characters/creating-and-editing-characters.md (+1 -1)
📝 docs/characters/personas.md (+3 -3)
📝 docs/extending/ruleset-combat.md (+2 -2)
📝 docs/extending/ruleset-items.md (+5 -5)
📝 docs/extending/ruleset-mechanics.md (+2 -2)
📝 docs/extending/ruleset-sheets.md (+1 -1)
📝 docs/extending/writing-rulesets.md (+1 -1)
📝 docs/game/combat.md (+47 -7)
📝 docs/game/dice-and-skill-checks.md (+26 -2)
📝 docs/game/fighting-on-a-ruleset.md (+1 -1)
📝 docs/game/getting-started.md (+12 -11)
📝 docs/game/map-time-weather.md (+3 -3)
➕ docs/game/mrpg-classes.md (+158 -0)
📝 docs/game/party-and-npcs.md (+5 -3)
📝 docs/game/rulesets.md (+1 -1)
📝 docs/roleplay/hud-and-trackers.md (+1 -1)
📝 e2e/game-combat-ai.e2e.ts (+10 -0)
📝 e2e/game-combat-director.e2e.ts (+10 -0)

...and 80 more files

📄 Description

Linked issue

Closes #8959

Why this change

Game Mode's own character sheets (now called Legacy) are free-form: a class name, some attributes and HP/MP pools. That leaves fights and skill checks with little to read, and gives players no growth they can plan. MRPG adds a full class system for Game Mode games that don't use a ruleset. Existing games keep working exactly as before until their players choose to move over.

What changed

  • Classes: eight class trees with seven classes each. The player picks a primary tree, and the character's temperament gives a sister tree. Levels are kept per class, with promotion at 10 and 20, a cap of 30 and hidden growths. Stats are HP, Str, Mag, Skl, Spd, Def, Res and Lck. Characters can switch class outside combat. A character sheet shows classes, skills, gear and tamed companions.
  • Battles: Turn-Based and Tactical battles both play MRPG, with an MRPG bestiary sized to the party's level, item tables, shops and loot.
  • Checks: skill checks outside battle read the MRPG stats, with a bonus from -1 to +5.
  • New games: every new game is MRPG. The server sets it whatever the client sends, including a multiplayer room's new game. A ruleset game keeps its ruleset's sheets.
  • Legacy games: games made before MRPG keep their Legacy sheets, fights and checks, and never meet the MRPG bestiary.
  • The upgrade: a Legacy game's Journal offers a one-way upgrade, from the game's latest session only.
    • Each member gets one class at level 10, with each level's gains rolled.
    • Legacy gear can be swapped for the nearest MRPG piece.
    • Nothing else in the save changes.
  • Cards and personas: their Game Mode section gets a guided MRPG builder (starting tree, strong and weak stats, then a review). Their pools and attributes are now called Roleplay Stats and are still used by Roleplay chats and Legacy games.
  • Multiplayer: guests build their own MRPG character, and the GM places late joiners at a level of their choosing.
  • Naming: player-facing names are now VN / Overworld (game style), Turn-Based / Tactical (battles) and MRPG / Legacy (class system). Internal ids are unchanged.
  • Docs: a new player guide, docs/game/mrpg-classes.md, plus updated combat, dice, party, card, persona and HUD pages.

No CHANGELOG.md edit.

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

  • Full regression suite: 1708/1710 pass. The two failures, connection-balance-prices and launcher-browser-ready, fail the same way on staging without this PR.
  • Game Mode browser tests (e2e/game-*.e2e.ts, desktop Chromium): 176 passed, 2 skipped.
  • New regressions cover:
    • an upgrade through the real route, checking that nothing else in the save moves, that two upgrades sent at once give one, and that an older session is refused;
    • new games always being MRPG;
    • Legacy games never meeting the MRPG bestiary.
  • The Legacy combat browser tests mark their game as one made before MRPG, so Legacy fights stay covered.

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)

[docs-i18n] follow-up: #8965.

UI evidence (if applicable)

None 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/8964 **Author:** [@kolacheee](https://github.com/kolacheee) **Created:** 11/7/2026 **Status:** 🔄 Open **Base:** `staging` ← **Head:** `claude/project-thread-iavqvq` --- ### 📝 Commits (7) - [`7b0f12b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7b0f12be357a21375ccb801f2bcd5d1710b1cbbd) MRPG (Marinara RPG): a class system for Game Mode, with Legacy kept for older games - [`f6e6f6e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f6e6f6e33c325fe45d0d208b93bec9367bd68804) MRPG: a new main tree keeps a fallen member fallen and their companions; a fled party keeps only what it stole - [`31e1882`](https://github.com/Pasta-Devs/Marinara-Engine/commit/31e188281104767b3aaaae62d7d6ba7e413f4dcd) MRPG review fixes: a failed join can retry, the upgrade waits for its preview, turn marker unclipped, accessories keep their places, no hidden persona picks shared, board AI failures logged - [`af6b26e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/af6b26e70f18a5f7d47922b06374dcc38ad931d9) MRPG review fixes: an MRPG join the server refuses shows no error; board AI failures are rate limited - [`902e0d1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/902e0d11cf49176cb8f9dee45a999be72c410332) MRPG: the joiner's stat amounts parse without a backtracking pattern - [`284bb32`](https://github.com/Pasta-Devs/Marinara-Engine/commit/284bb327158a6ab817967ed2508761cd2cd286d1) MRPG: spaces inside a stat word or number still leave the term unread - [`adef919`](https://github.com/Pasta-Devs/Marinara-Engine/commit/adef919f1d62b74de0f953d9502fa0759ecefe8e) Merge remote-tracking branch 'upstream/staging' into mrpg/staging-pr ### 📊 Changes **137 files changed** (+32439 additions, -460 deletions) <details> <summary>View changed files</summary> 📝 `docs/CONFIGURATION.md` (+1 -1) 📝 `docs/characters/colors-and-stats.md` (+20 -5) 📝 `docs/characters/creating-and-editing-characters.md` (+1 -1) 📝 `docs/characters/personas.md` (+3 -3) 📝 `docs/extending/ruleset-combat.md` (+2 -2) 📝 `docs/extending/ruleset-items.md` (+5 -5) 📝 `docs/extending/ruleset-mechanics.md` (+2 -2) 📝 `docs/extending/ruleset-sheets.md` (+1 -1) 📝 `docs/extending/writing-rulesets.md` (+1 -1) 📝 `docs/game/combat.md` (+47 -7) 📝 `docs/game/dice-and-skill-checks.md` (+26 -2) 📝 `docs/game/fighting-on-a-ruleset.md` (+1 -1) 📝 `docs/game/getting-started.md` (+12 -11) 📝 `docs/game/map-time-weather.md` (+3 -3) ➕ `docs/game/mrpg-classes.md` (+158 -0) 📝 `docs/game/party-and-npcs.md` (+5 -3) 📝 `docs/game/rulesets.md` (+1 -1) 📝 `docs/roleplay/hud-and-trackers.md` (+1 -1) 📝 `e2e/game-combat-ai.e2e.ts` (+10 -0) 📝 `e2e/game-combat-director.e2e.ts` (+10 -0) _...and 80 more files_ </details> ### 📄 Description ## Linked issue Closes #8959 ## Why this change Game Mode's own character sheets (now called Legacy) are free-form: a class name, some attributes and HP/MP pools. That leaves fights and skill checks with little to read, and gives players no growth they can plan. MRPG adds a full class system for Game Mode games that don't use a ruleset. Existing games keep working exactly as before until their players choose to move over. ## What changed - **Classes:** eight class trees with seven classes each. The player picks a primary tree, and the character's temperament gives a sister tree. Levels are kept per class, with promotion at 10 and 20, a cap of 30 and hidden growths. Stats are HP, Str, Mag, Skl, Spd, Def, Res and Lck. Characters can switch class outside combat. A character sheet shows classes, skills, gear and tamed companions. - **Battles:** Turn-Based and Tactical battles both play MRPG, with an MRPG bestiary sized to the party's level, item tables, shops and loot. - **Checks:** skill checks outside battle read the MRPG stats, with a bonus from -1 to +5. - **New games:** every new game is MRPG. The server sets it whatever the client sends, including a multiplayer room's new game. A ruleset game keeps its ruleset's sheets. - **Legacy games:** games made before MRPG keep their Legacy sheets, fights and checks, and never meet the MRPG bestiary. - **The upgrade:** a Legacy game's Journal offers a one-way upgrade, from the game's latest session only. - Each member gets one class at level 10, with each level's gains rolled. - Legacy gear can be swapped for the nearest MRPG piece. - Nothing else in the save changes. - **Cards and personas:** their Game Mode section gets a guided MRPG builder (starting tree, strong and weak stats, then a review). Their pools and attributes are now called **Roleplay Stats** and are still used by Roleplay chats and Legacy games. - **Multiplayer:** guests build their own MRPG character, and the GM places late joiners at a level of their choosing. - **Naming:** player-facing names are now VN / Overworld (game style), Turn-Based / Tactical (battles) and MRPG / Legacy (class system). Internal ids are unchanged. - **Docs:** a new player guide, `docs/game/mrpg-classes.md`, plus updated combat, dice, party, card, persona and HUD pages. No `CHANGELOG.md` edit. ## 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) - [x] Read and followed `CONTRIBUTING.md` ### Manual verification notes - Full regression suite: 1708/1710 pass. The two failures, `connection-balance-prices` and `launcher-browser-ready`, fail the same way on `staging` without this PR. - Game Mode browser tests (`e2e/game-*.e2e.ts`, desktop Chromium): 176 passed, 2 skipped. - New regressions cover: - an upgrade through the real route, checking that nothing else in the save moves, that two upgrades sent at once give one, and that an older session is refused; - new games always being MRPG; - Legacy games never meeting the MRPG bestiary. - The Legacy combat browser tests mark their game as one made before MRPG, so Legacy fights stay covered. ## 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) `[docs-i18n]` follow-up: #8965. ## UI evidence (if applicable) None attached. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#8920
No description provided.