[GH-ISSUE #2136] [Issue]: Game mode — combat encounters are a fixed deterministic stub ("Enemy N", one attack, no boss mechanics) #1044

Closed
opened 2026-10-21 05:25:32 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @Romuromylus on GitHub (Jun 4, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2136

Originally assigned to: @cha1latte on GitHub.

Summary

Severity: major. Game-mode combat init no longer calls the LLM. Every encounter is a generic deterministic stub, ignoring character cards, persona, inventory, spellbook, and chat history.

Expected behavior

As in main: escalating a scene to combat runs a ~12k-token LLM blueprint pass (buildInitPrompt) that designs a bespoke battle — named/described enemies with multiple scaled attacks, allies with card-derived abilities, boss mechanics (triggers/counterplay), dialogue cues, item effects, environment style notes, and visuals (isBossFight, enemyImagePrompts, background/illustration prompts).

Actual behavior

gameApi.initCombatEncounter builds combat state with no LLM call: enemies are literally Enemy ${index + 1}, flat 18 HP, a single "Strike"; party members get one "Attack"; mechanics, dialogueCues, and boss visuals are always empty. connectionId/spellbookId are accepted but ignored. The faithful LLM port exists (initRoleplayEncounter) but is wired only to roleplay mode.

Steps to reproduce

  1. Start a game-mode chat with character cards and trigger combat.
  2. Inspect the generated combat state: enemies named "Enemy 1/2/3", 18 HP each, one attack, no boss fight, no enemy/boss art, no battle dialogue.

Impact area

  • Game mode
  • React-free engine behavior, contracts, agents, or capability ports

Environment

  • Branch or commit: refactor @ 14894608
  • Run mode: Tauri desktop
  • Compared against: main @ c49f1d95 (legacy web app)

Regression notes

Worked in the legacy web app.

  • main: packages/server/src/routes/encounter.routes.ts:577-616 (LLM chatComplete on buildInitPrompt), invoked by game mode at packages/client/src/components/game/GameSurface.tsx:5991.
  • refactor: src/features/modes/game/api/game-api.ts:2528-2612 (deterministic stub), wired at src/features/modes/game/components/GameSurface.tsx:6158. LLM port src/engine/modes/roleplay/encounter/encounter-service.ts:60 is reachable only from roleplay.
Originally created by @Romuromylus on GitHub (Jun 4, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2136 Originally assigned to: @cha1latte on GitHub. ## Summary **Severity: major.** Game-mode combat init no longer calls the LLM. Every encounter is a generic deterministic stub, ignoring character cards, persona, inventory, spellbook, and chat history. ## Expected behavior As in main: escalating a scene to combat runs a ~12k-token LLM blueprint pass (`buildInitPrompt`) that designs a bespoke battle — named/described enemies with multiple scaled attacks, allies with card-derived abilities, boss mechanics (triggers/counterplay), dialogue cues, item effects, environment style notes, and visuals (`isBossFight`, `enemyImagePrompts`, background/illustration prompts). ## Actual behavior `gameApi.initCombatEncounter` builds combat state with no LLM call: enemies are literally `Enemy ${index + 1}`, flat 18 HP, a single "Strike"; party members get one "Attack"; `mechanics`, `dialogueCues`, and boss `visuals` are always empty. `connectionId`/`spellbookId` are accepted but ignored. The faithful LLM port exists (`initRoleplayEncounter`) but is wired only to roleplay mode. ## Steps to reproduce 1. Start a game-mode chat with character cards and trigger combat. 2. Inspect the generated combat state: enemies named "Enemy 1/2/3", 18 HP each, one attack, no boss fight, no enemy/boss art, no battle dialogue. ## Impact area - [x] Game mode - [x] React-free engine behavior, contracts, agents, or capability ports ## Environment - Branch or commit: `refactor` @ `14894608` - Run mode: Tauri desktop - Compared against: `main` @ `c49f1d95` (legacy web app) ## Regression notes Worked in the legacy web app. - main: `packages/server/src/routes/encounter.routes.ts:577-616` (LLM `chatComplete` on `buildInitPrompt`), invoked by game mode at `packages/client/src/components/game/GameSurface.tsx:5991`. - refactor: `src/features/modes/game/api/game-api.ts:2528-2612` (deterministic stub), wired at `src/features/modes/game/components/GameSurface.tsx:6158`. LLM port `src/engine/modes/roleplay/encounter/encounter-service.ts:60` is reachable only from roleplay.
bsakaguchi 2026-10-21 05:25:32 +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#1044
No description provided.