[PR #1729] [MERGED] feat(gacha-forge): rework Formation combat to the intended design (1.24.0) #1713

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/1729
Author: @SpicyMarinara
Created: 10/26/2026
Status: ✅ Merged
Merged: 10/26/2026
Merged by: @SpicyMarinara

Base: staging ← Head: feat/gacha-forge-formation-rework


📝 Commits (6)

  • 80ce06d feat(gacha-forge): Formation engine 2 with planned turns, six seats and kit-true prompts
  • 7c13cc5 feat(gacha-forge): remake older Formation kits automatically
  • ea3aeca feat(gacha-forge): tap-to-plan Formation turn in the Classic tray
  • e774366 release(gacha-forge): 1.24.0 Formation rework
  • 912ae0c fix(gacha-forge): lock a revive or swap with nothing to reach
  • bb2a98c merge: staging

📊 Changes

34 files changed (+10178 additions, -3091 deletions)

View changed files

📝 .github/workflows/pull-request-checks.yml (+1 -0)
➕ artifacts/gacha-forge-1.24.0.zip (+0 -0)
📝 catalog/catalog.json (+24 -24)
📝 catalog/notes.json (+6 -6)
📝 catalog/v2/catalog.json (+24 -24)
📝 catalog/v2/notes.json (+6 -6)
📝 catalog/v3/catalog.json (+24 -24)
📝 catalog/v3/notes.json (+6 -6)
📝 packages/gacha-forge/CHANGELOG.md (+7 -0)
📝 packages/gacha-forge/README.md (+3 -5)
📝 packages/gacha-forge/bundle-patches.json (+65 -0)
📝 packages/gacha-forge/client.js (+2627 -871)
📝 packages/gacha-forge/docs/formation-combat.md (+13 -7)
📝 packages/gacha-forge/manifest.json (+21 -21)
📝 packages/gacha-forge/server.mjs (+2211 -681)
📝 packages/gacha-forge/src/combat-voices-client.mjs (+6 -2)
📝 packages/gacha-forge/src/formation-combat-client.mjs (+1148 -171)
📝 packages/gacha-forge/src/formation-combat-en.mjs (+227 -50)
➕ packages/gacha-forge/src/formation-combat-legacy.mjs (+870 -0)
📝 packages/gacha-forge/src/formation-combat-server.mjs (+98 -29)

...and 14 more files

📄 Description

Pull request

Important

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

Linked issue

Closes #1728

Why this change

  • The maintainer played Formation combat and found it did not work as they designed it:
    • teams were capped at four, although there are six seats;
    • skills were not described;
    • choosing actions used a dropdown panel instead of tapping characters;
    • the rules and prompts drifted from the design.
  • This rebuilds Formation to the maintainer's written design. Classic combat stays the default and is unchanged.

What changed

  • Free Attack and Guard are gone. A Front Row fighter that cannot afford anything worth casting can Hold, which keeps its energy. This was the maintainer's choice.

  • Kits converted before this update are remade automatically before a Formation world's next battle. This uses the existing conversion job and Continuity progress, and costs provider credits, as the maintainer chose. Until the remake finishes, old kits keep working. A cancelled or failed remake never blocks a battle. Classic worlds never generate Formation kits.

  • Teams: up to six, with 1–3 in the Front Row and up to 3 in the Back Row.

    • The Back Row cannot act and cannot be attacked.
    • Each living support makes +1 energy of its element at the start of its team's turn. Energy never disappears.
    • A side with no living Back Row gains +1 energy every other turn, so it never gets stuck.
    • Wiping the enemy Front Row wins the fight.
  • Turn flow: tap a Front Row fighter, pick an action in the Classic-style tray, then tap its target. The actions are Normal skill, Ultimate, Move/Swap and Hold, each showing its art, cost and description.

    • A plan list shows the order and the energy each action spends. Any entry can be changed or cleared before you press Fight, which resolves the plan.
    • If a target falls, the action retargets. An action that can no longer be paid becomes Hold, with a note.
    • Auto still plays whole turns. The Ultimate cut-in, voice lines and enemy dialogue still work.
  • Readability:

    • Skills: the tray tips and the aim banner show each skill's description and real numbers.
    • Enemies: protected enemies say why ("Back Row", "Only Fire", "Defeat ① first").
    • Energy: a strip shows each element, what the plan leaves, and "+N next turn". Supports show what they generate.
    • Rules and help: the objective and encounter rules stay on screen, and the in-battle and team-editor help describe Formation.
  • Ultimates and powers: an Ultimate needs its own element, with Light and Dark as wildcards; Light heals and Dark adds damage. Power numbers are literal, so the number shown is the number that hits, and Classic skill-form scaling no longer applies in Formation.

  • Team editor: six seats with row labels, F/B/⇄ preferred-row badges, and a live "Front 3/3 · Back 3/3 · +3 energy per turn". The old dropdown panel is gone.

  • Prompts: the unit, story and event encounter prompts now cover:

    • preferred-row archetypes: front attackers and tanks, back supports with strong passives, and hybrids that reward switching;
    • varied costs;
    • genre buffs, debuffs and board effects;
    • five-star signature mechanics;
    • creative boss rules (element-only, kill order);
    • enemy dialogue.

    They quote the engine's own number table, so stated values match play. Fixable kits are adjusted rather than rejected, so they never trigger paid retries.

  • Fights started before the update keep the old engine and are scored by their own rules. A Formation fight cannot start on an outdated engine.

  • Anti-stall: from round 12, healing fades and hits grow. The seeded balance simulation showed random fights stalling about 20% of the time without it.

  • Release: gacha-forge 1.24.0, with rebuilt bundles, manifest, artifact, catalog lanes, CHANGELOG and README, the Formation docs, and an in-game What's new entry. CI runs the new balance regression.

Package and security impact

  • Affected package IDs: gacha-forge
  • Engine compatibility impact: none
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact:
    • Formation worlds remake their kits automatically before their next battle, which costs provider credits.
    • Saved Classic data and Classic kits are untouched.

Validation

  • node scripts/validate-catalog.mjs passes locally
  • git diff --check passes locally
  • Rebuilt every affected manifest, payload, artifact, and catalog entry
  • Installed or updated the affected package through Marinara Engine
  • Checked supported modes, restart behavior, and uninstall cleanup
  • Read and followed CONTRIBUTING.md

Manual verification notes

Run by the agents:

  • All 416 tests/gacha-forge-*.regression.mjs pass. This includes the new seeded balance simulation and a byte-identical pin for Classic guides.
  • npm run check, validate-catalog, test-catalog-lanes, the package locale validators and the catalog release-notes regression pass.
  • Browser suites (desktop and phone Chromium, dark and light):
    • formation and boss-dialogue: 50/50;
    • units, choices, home and proactive-messages: 36/36;
    • seasonal-events, keep-playing, backgrounds and boss-dialogue: 38/38;
    • core: 8/9, with one desktop timeout that passed alone;
    • audio: 46/48, with the 2 failures being the cached-MP3 test without TTS_LOCAL_URLS_ENABLED, which CI sets;
    • a Classic battle path, which passes.
  • An independent review runs on this PR; fixes follow as commits.

Still to do by hand:

  • In a Formation world with six units, the team editor accepts three Front and three Back.
  • In a battle, tap each fighter, choose actions and targets, review the plan, and press Fight. The results match the plan.
  • Hold, Move and Swap work, and an empty Front seat can take a support.
  • Energy grows from the Back Row each turn, and Ultimates need their element or Light/Dark.
  • The automatic kit remake runs once before the first battle after updating.
  • A Classic world still plays exactly as before.
  • Check it on a real phone in landscape.

Documentation impact

  • No documentation changes needed
  • Updated this README catalog and package guidance
  • Updated linked Marinara Engine documentation

UI evidence (if applicable)

Browser-test screenshots show:

  • the tray with skill art and costs;
  • the aim banner with the skill's description, numbers, cost and "Pick an enemy fighter";
  • the plan list and Fight;
  • the six-seat team editor with energy per turn.

🤖 Generated with Claude Code


🔄 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-Agents/pull/1729 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/26/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feat/gacha-forge-formation-rework` --- ### 📝 Commits (6) - [`80ce06d`](https://github.com/Pasta-Devs/Marinara-Agents/commit/80ce06d163cd1706550dd7a436375c8015df2919) feat(gacha-forge): Formation engine 2 with planned turns, six seats and kit-true prompts - [`7c13cc5`](https://github.com/Pasta-Devs/Marinara-Agents/commit/7c13cc594c3b66fc3af151b762cac73780d18d7a) feat(gacha-forge): remake older Formation kits automatically - [`ea3aeca`](https://github.com/Pasta-Devs/Marinara-Agents/commit/ea3aeca41843e3183f1dfef4bdd1ca1af2327afd) feat(gacha-forge): tap-to-plan Formation turn in the Classic tray - [`e774366`](https://github.com/Pasta-Devs/Marinara-Agents/commit/e77436698cc04ab1d27fe4b1d8444ec548cce73c) release(gacha-forge): 1.24.0 Formation rework - [`912ae0c`](https://github.com/Pasta-Devs/Marinara-Agents/commit/912ae0c0821e36d3383369520dadc02c803b6e71) fix(gacha-forge): lock a revive or swap with nothing to reach - [`bb2a98c`](https://github.com/Pasta-Devs/Marinara-Agents/commit/bb2a98cbd0e160bfb6d1e3ac8b21640d80f68cc3) merge: staging ### 📊 Changes **34 files changed** (+10178 additions, -3091 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/pull-request-checks.yml` (+1 -0) ➕ `artifacts/gacha-forge-1.24.0.zip` (+0 -0) 📝 `catalog/catalog.json` (+24 -24) 📝 `catalog/notes.json` (+6 -6) 📝 `catalog/v2/catalog.json` (+24 -24) 📝 `catalog/v2/notes.json` (+6 -6) 📝 `catalog/v3/catalog.json` (+24 -24) 📝 `catalog/v3/notes.json` (+6 -6) 📝 `packages/gacha-forge/CHANGELOG.md` (+7 -0) 📝 `packages/gacha-forge/README.md` (+3 -5) 📝 `packages/gacha-forge/bundle-patches.json` (+65 -0) 📝 `packages/gacha-forge/client.js` (+2627 -871) 📝 `packages/gacha-forge/docs/formation-combat.md` (+13 -7) 📝 `packages/gacha-forge/manifest.json` (+21 -21) 📝 `packages/gacha-forge/server.mjs` (+2211 -681) 📝 `packages/gacha-forge/src/combat-voices-client.mjs` (+6 -2) 📝 `packages/gacha-forge/src/formation-combat-client.mjs` (+1148 -171) 📝 `packages/gacha-forge/src/formation-combat-en.mjs` (+227 -50) ➕ `packages/gacha-forge/src/formation-combat-legacy.mjs` (+870 -0) 📝 `packages/gacha-forge/src/formation-combat-server.mjs` (+98 -29) _...and 14 more files_ </details> ### 📄 Description # Pull request > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issue Closes #1728 ## Why this change - The maintainer played Formation combat and found it did not work as they designed it: - teams were capped at four, although there are six seats; - skills were not described; - choosing actions used a dropdown panel instead of tapping characters; - the rules and prompts drifted from the design. - This rebuilds Formation to the maintainer's written design. Classic combat stays the default and is unchanged. ## What changed - **Free Attack and Guard are gone.** A Front Row fighter that cannot afford anything worth casting can Hold, which keeps its energy. This was the maintainer's choice. - **Kits converted before this update are remade automatically** before a Formation world's next battle. This uses the existing conversion job and Continuity progress, and costs provider credits, as the maintainer chose. Until the remake finishes, old kits keep working. A cancelled or failed remake never blocks a battle. Classic worlds never generate Formation kits. - **Teams:** up to six, with 1–3 in the Front Row and up to 3 in the Back Row. - The Back Row cannot act and cannot be attacked. - Each living support makes +1 energy of its element at the start of its team's turn. Energy never disappears. - A side with no living Back Row gains +1 energy every other turn, so it never gets stuck. - Wiping the enemy Front Row wins the fight. - **Turn flow:** tap a Front Row fighter, pick an action in the Classic-style tray, then tap its target. The actions are Normal skill, Ultimate, Move/Swap and Hold, each showing its art, cost and description. - A plan list shows the order and the energy each action spends. Any entry can be changed or cleared before you press Fight, which resolves the plan. - If a target falls, the action retargets. An action that can no longer be paid becomes Hold, with a note. - Auto still plays whole turns. The Ultimate cut-in, voice lines and enemy dialogue still work. - **Readability:** - **Skills:** the tray tips and the aim banner show each skill's description and real numbers. - **Enemies:** protected enemies say why ("Back Row", "Only Fire", "Defeat ① first"). - **Energy:** a strip shows each element, what the plan leaves, and "+N next turn". Supports show what they generate. - **Rules and help:** the objective and encounter rules stay on screen, and the in-battle and team-editor help describe Formation. - **Ultimates and powers:** an Ultimate needs its own element, with Light and Dark as wildcards; Light heals and Dark adds damage. Power numbers are literal, so the number shown is the number that hits, and Classic skill-form scaling no longer applies in Formation. - **Team editor:** six seats with row labels, F/B/⇄ preferred-row badges, and a live "Front 3/3 · Back 3/3 · +3 energy per turn". The old dropdown panel is gone. - **Prompts:** the unit, story and event encounter prompts now cover: - preferred-row archetypes: front attackers and tanks, back supports with strong passives, and hybrids that reward switching; - varied costs; - genre buffs, debuffs and board effects; - five-star signature mechanics; - creative boss rules (element-only, kill order); - enemy dialogue. They quote the engine's own number table, so stated values match play. Fixable kits are adjusted rather than rejected, so they never trigger paid retries. - **Fights started before the update** keep the old engine and are scored by their own rules. A Formation fight cannot start on an outdated engine. - **Anti-stall:** from round 12, healing fades and hits grow. The seeded balance simulation showed random fights stalling about 20% of the time without it. - **Release:** `gacha-forge` 1.24.0, with rebuilt bundles, manifest, artifact, catalog lanes, CHANGELOG and README, the Formation docs, and an in-game What's new entry. CI runs the new balance regression. ## Package and security impact - Affected package IDs: `gacha-forge` - Engine compatibility impact: none - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: - Formation worlds remake their kits automatically before their next battle, which costs provider credits. - Saved Classic data and Classic kits are untouched. ## Validation - [ ] `node scripts/validate-catalog.mjs` passes locally - [ ] `git diff --check` passes locally - [ ] Rebuilt every affected manifest, payload, artifact, and catalog entry - [ ] Installed or updated the affected package through Marinara Engine - [ ] Checked supported modes, restart behavior, and uninstall cleanup - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes Run by the agents: - All 416 `tests/gacha-forge-*.regression.mjs` pass. This includes the new seeded balance simulation and a byte-identical pin for Classic guides. - `npm run check`, `validate-catalog`, `test-catalog-lanes`, the package locale validators and the catalog release-notes regression pass. - Browser suites (desktop and phone Chromium, dark and light): - formation and boss-dialogue: 50/50; - units, choices, home and proactive-messages: 36/36; - seasonal-events, keep-playing, backgrounds and boss-dialogue: 38/38; - core: 8/9, with one desktop timeout that passed alone; - audio: 46/48, with the 2 failures being the cached-MP3 test without `TTS_LOCAL_URLS_ENABLED`, which CI sets; - a Classic battle path, which passes. - An independent review runs on this PR; fixes follow as commits. Still to do by hand: - [ ] In a Formation world with six units, the team editor accepts three Front and three Back. - [ ] In a battle, tap each fighter, choose actions and targets, review the plan, and press Fight. The results match the plan. - [ ] Hold, Move and Swap work, and an empty Front seat can take a support. - [ ] Energy grows from the Back Row each turn, and Ultimates need their element or Light/Dark. - [ ] The automatic kit remake runs once before the first battle after updating. - [ ] A Classic world still plays exactly as before. - [ ] Check it on a real phone in landscape. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) Browser-test screenshots show: - the tray with skill art and costs; - the aim banner with the skill's description, numbers, cost and "Pick an enemy fighter"; - the plan list and Fight; - the six-seat team editor with energy per turn. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-27 06:06:08 +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-Agents#1713
No description provided.