From 516994ba355cd9e8a520ff077f6550436eb17073 Mon Sep 17 00:00:00 2001 From: Claude Code Date: Thu, 26 Mar 2026 11:38:31 -0700 Subject: [PATCH] =?UTF-8?q?feat(tools):=20=E2=9C=A8=20Add=20TypeScript=20u?= =?UTF-8?q?tility=20for=20climate=20diagnostics=20and=20Python=20script=20?= =?UTF-8?q?for=20population=20modeling?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Lilith Autocommit --- tools/climate-diag.ts | 6 +++--- tools/population_sim.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/climate-diag.ts b/tools/climate-diag.ts index 35c9fef2..dbf884e9 100644 --- a/tools/climate-diag.ts +++ b/tools/climate-diag.ts @@ -56,13 +56,13 @@ const totalTurns = parseInt(opt('turns', '200'), 10) const every = parseInt(opt('every', '10'), 10) const jsonMode = flag('json') const terrainDetail = flag('terrain-detail') -const paramsPath = opt('params', path.join(ROOT, 'games/age-of-four/data/climate_params.json')) -const specPath = path.join(ROOT, 'games/age-of-four/data/climate_spec.json') +const paramsPath = opt('params', path.join(ROOT, 'games/age-of-dwarves/data/climate_params.json')) +const specPath = path.join(ROOT, 'games/age-of-dwarves/data/climate_spec.json') // ── Load data from disk (bypass Vite) ──────────────────────────────────────── function loadTerrainCache(): Map> { - const terrainDir = path.join(ROOT, 'games/age-of-four/data/terrain') + const terrainDir = path.join(ROOT, 'games/age-of-dwarves/data/terrain') const cache = new Map>() for (const file of fs.readdirSync(terrainDir)) { if (!file.endsWith('.json')) continue diff --git a/tools/population_sim.py b/tools/population_sim.py index e616954e..4aaa3578 100644 --- a/tools/population_sim.py +++ b/tools/population_sim.py @@ -17,7 +17,7 @@ from pathlib import Path from typing import Optional ROOT = Path(__file__).resolve().parent.parent -WEIGHTS_PATH = ROOT / "games/age-of-four/data/world/traits/biome_trait_weights.json" +WEIGHTS_PATH = ROOT / "games/age-of-dwarves/data/world/traits/biome_trait_weights.json" # --- Constants matching GDScript ---