feat(tools): Add TypeScript utility for climate diagnostics and Python script for population modeling

Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
Claude Code 2026-03-26 11:38:31 -07:00
parent e1fe0afe7f
commit 516994ba35
2 changed files with 4 additions and 4 deletions

View file

@ -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<string, Record<string, unknown>> {
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<string, Record<string, unknown>>()
for (const file of fs.readdirSync(terrainDir)) {
if (!file.endsWith('.json')) continue

View file

@ -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 ---