Sorting flute spots by OW Slot
This commit is contained in:
5
Rom.py
5
Rom.py
@@ -688,8 +688,9 @@ def patch_rom(world, rom, player, team, enemized, is_mystery=False):
|
|||||||
flute_spots = world.owflutespots[player]
|
flute_spots = world.owflutespots[player]
|
||||||
owFlags |= 0x0100
|
owFlags |= 0x0100
|
||||||
|
|
||||||
for o in range(0, len(flute_spots)):
|
flute_writes = sorted([(f, flute_data[f][1]) for f in flute_spots], key = lambda f: f[1])
|
||||||
owid = flute_spots[o]
|
for o in range(0, len(flute_writes)):
|
||||||
|
owid = flute_writes[o][0]
|
||||||
offset = 0
|
offset = 0
|
||||||
data = flute_data[owid]
|
data = flute_data[owid]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user