[GH-ISSUE #2153] [Issue]: Game mode — scene-forced weather hardcodes 20C/calm/clear, discarding biome/season values #1063

Closed
opened 2026-10-21 05:26:11 +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/2153

Originally assigned to: @cha1latte on GitHub.

Summary

Severity: minor. When the scene analyzer forces a weather type (action set), the refactor stamps a constant 20C / calm / clear / empty-description regardless of biome, season, or type — so a forced blizzard shows 20C. Main derived these from biome+season.

Expected behavior

As in main: the set path runs generateWeather(biome, season) and overrides only type and description, keeping the generated temperature/wind/visibility consistent with the chosen condition.

Actual behavior

if (data.type) { forced = { type, temperature: 20, description: "", wind: "calm", visibility: "clear" } } — generateWeather is bypassed entirely for forced weather. The hardcoded 20C reaches the player-visible game-state text and the LLM context.

Steps to reproduce

  1. Drive the narrative so the scene analyzer forces a cold-weather type (e.g. blizzard).
  2. Refactor: the weather HUD reads 20C, calm, clear. Main: a biome/season-appropriate sub-zero temperature, gale wind, poor visibility.

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/game.routes.ts:5496-5509 (generate then override type/description); weather.service.ts:128-179.
  • refactor: src/features/modes/game/api/game-api.ts:2316-2317 (hardcoded); caller GameSurface.tsx:4269-4274; surfaced via use-game.ts:679.
Originally created by @Romuromylus on GitHub (Jun 4, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2153 Originally assigned to: @cha1latte on GitHub. ## Summary **Severity: minor.** When the scene analyzer forces a weather type (action `set`), the refactor stamps a constant 20C / calm / clear / empty-description regardless of biome, season, or type — so a forced blizzard shows 20C. Main derived these from biome+season. ## Expected behavior As in main: the `set` path runs `generateWeather(biome, season)` and overrides only `type` and `description`, keeping the generated temperature/wind/visibility consistent with the chosen condition. ## Actual behavior `if (data.type) { forced = { type, temperature: 20, description: "", wind: "calm", visibility: "clear" } }` — `generateWeather` is bypassed entirely for forced weather. The hardcoded 20C reaches the player-visible game-state text and the LLM context. ## Steps to reproduce 1. Drive the narrative so the scene analyzer forces a cold-weather type (e.g. blizzard). 2. Refactor: the weather HUD reads 20C, calm, clear. Main: a biome/season-appropriate sub-zero temperature, gale wind, poor visibility. ## 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/game.routes.ts:5496-5509` (generate then override type/description); `weather.service.ts:128-179`. - refactor: `src/features/modes/game/api/game-api.ts:2316-2317` (hardcoded); caller `GameSurface.tsx:4269-4274`; surfaced via `use-game.ts:679`.
bsakaguchi 2026-10-21 05:26:11 +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#1063
No description provided.