test(scenes): ✅ Add/update climate-proof test cases for weather resilience and environmental stress testing
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
a99196ae47
commit
d8934e0a66
1 changed files with 2 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue