Adjust map locations for flute spots and prizes to layout

This commit is contained in:
Catobat
2026-01-10 17:41:50 +01:00
parent d0e9fa73fa
commit 6afdd79741
4 changed files with 41 additions and 11 deletions

View File

@@ -1387,6 +1387,8 @@ def generate_random_grid_layout(world: World, player: int, connected_edges: List
map_grid[w][(i + 1) % 8][j] = screen_id + 0x08
map_grid[w][(i + 1) % 8][(j + 1) % 8] = screen_id + 0x09
world.owgrid[player] = map_grid
world.owlayoutmap_lw[player] = {id & 0xBF: i for i, id in enumerate(sum(map_grid[0], []))}
world.owlayoutmap_dw[player] = {id & 0xBF: i for i, id in enumerate(sum(map_grid[1], []))}
world.spoiler.set_map('layout_grid_lw', format_grid_for_spoiler(grid[0]), grid[0], player)
if not world.owParallel[player]: