feat(grid): apply elevation to movement cost and high ground

This commit is contained in:
2026-09-05 16:18:56 +02:00
parent 30f8905a3e
commit ab99ab67e3
6 changed files with 427 additions and 15 deletions
+5 -1
View File
@@ -46,7 +46,11 @@ def test_sample_arena_loads() -> None:
def test_sample_arena_zones_and_elevation() -> None:
spec = load_map(MAPS_DIR / "sample_arena.yaml")
assert spec.elevation is not None
assert spec.elevation[1][2] == "1"
# Flattened to '.' — platform removed so elevation has no mechanical effect
assert spec.elevation[1][2] == "."
assert all(
ch == "." for row in spec.elevation for ch in row
)
cells_a = zone_cells(spec, "A")
assert cells_a == [
(1, 1), (1, 2), (1, 3), (1, 4),