feat(grid): apply elevation to movement cost and high ground
This commit is contained in:
+5
-1
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user