test(simulation): Update ecology simulation golden test vectors to correct assertions and match expected behavior

Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
Claude Code 2026-03-26 00:21:28 -07:00
parent 7d889b22be
commit 7d07bc5210

View file

@ -40,23 +40,22 @@ function makeTile(col: number, row: number, seed: number): TileState {
? (edgeDist === 0 ? 'deep_water' : 'shallow_water')
: (elevation > 0.6 ? 'highland' : 'lowland')
// Initial biome: classify from climate for land tiles, terrain_id for water
const terrain_id = isWaterTile ? 'ocean' : 'grassland'
// Initial biome: classify from climate for land tiles, biome_id for water
const initial_biome = isWaterTile ? 'ocean' : 'grassland'
const tile: TileState = {
col, row,
temperature,
moisture,
elevation,
terrain_id,
biome_id: terrain_id, // will be reclassified
biome_id: initial_biome, // will be reclassified
wind_direction: Math.floor(h * 6),
wind_speed: 0.5,
quality: 2,
quality_progress: 0,
river_edges: [],
flow_accumulation: 0.0,
original_terrain_id: terrain_id,
original_biome_id: initial_biome,
ley_line_count: 0,
ley_school: '',
reef_health: isWaterTile ? 1.0 : 0.0,