LttP: fix generation if other games are involved (#4901)

This commit is contained in:
Fabian Dill
2025-04-19 15:44:55 +02:00
committed by GitHub
parent 5088b02bfe
commit e090153d93

View File

@@ -850,9 +850,9 @@ def patch_rom(world: MultiWorld, rom: LocalRom, player: int, enemized: bool):
rom.write_byte(0x155C9, local_random.choice([0x11, 0x16])) # Randomize GT music too with map shuffle
# patch entrance/exits/holes
for region in world.regions:
for region in world.get_regions(player):
for exit in region.exits:
if exit.target is not None and exit.player == player:
if exit.target is not None:
if isinstance(exit.addresses, tuple):
offset = exit.target
room_id, ow_area, vram_loc, scroll_y, scroll_x, link_y, link_x, camera_y, camera_x, unknown_1, unknown_2, door_1, door_2 = exit.addresses