From d8934e0a66225d56e78ecfdc9f4726b0d3e16402 Mon Sep 17 00:00:00 2001 From: Claude Code Date: Wed, 25 Mar 2026 23:53:21 -0700 Subject: [PATCH] =?UTF-8?q?test(scenes):=20=E2=9C=85=20Add/update=20climat?= =?UTF-8?q?e-proof=20test=20cases=20for=20weather=20resilience=20and=20env?= =?UTF-8?q?ironmental=20stress=20testing?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Lilith Autocommit --- engine/scenes/tests/climate_proof.gd | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/engine/scenes/tests/climate_proof.gd b/engine/scenes/tests/climate_proof.gd index 69cc6499..5e3b10a7 100644 --- a/engine/scenes/tests/climate_proof.gd +++ b/engine/scenes/tests/climate_proof.gd @@ -36,7 +36,6 @@ const TERRAIN_COLORS: Dictionary = { "mountains": Color(0.45, 0.42, 0.40), "hills": Color(0.55, 0.45, 0.30), "swamp": Color(0.30, 0.35, 0.15), - "corrupted_land": Color(0.40, 0.10, 0.30), "volcano": Color(0.75, 0.15, 0.10), "land": Color(0.50, 0.50, 0.30), } @@ -104,7 +103,7 @@ func _print_stats() -> void: var lake_count: int = 0 for tile: Variant in _game_map.tiles.values(): - var tid: String = tile.terrain_id + var tid: String = tile.biome_id terrain_counts[tid] = terrain_counts.get(tid, 0) + 1 if not tile.river_edges.is_empty(): river_tile_count += 1 @@ -147,7 +146,7 @@ func _draw() -> void: if offset.x & 1: y += CELL_H * 0.5 - var color: Color = TERRAIN_COLORS.get(tile.terrain_id, Color(0.5, 0.0, 0.5)) + var color: Color = TERRAIN_COLORS.get(tile.biome_id, Color(0.5, 0.0, 0.5)) draw_rect(Rect2(x, y, CELL_W - 1, CELL_H - 1), color) # Draw river edges as blue dots on tiles with rivers