Always include team number in rom name
This commit is contained in:
4
Rom.py
4
Rom.py
@@ -1860,8 +1860,6 @@ def patch_rom(world, rom, player, team, is_mystery=False, rom_header=None):
|
|||||||
|
|
||||||
if world.players > 1 and world.teams > 1 and len(rom_header) <= 12:
|
if world.players > 1 and world.teams > 1 and len(rom_header) <= 12:
|
||||||
rom.name = bytearray(f"GK_{rom_header}_{team + 1}_{player}", 'utf8')
|
rom.name = bytearray(f"GK_{rom_header}_{team + 1}_{player}", 'utf8')
|
||||||
elif world.players > 1 and len(rom_header) <= 15:
|
|
||||||
rom.name = bytearray(f"GK_{rom_header}_{player}", 'utf8')
|
|
||||||
elif len(rom_header) <= 18:
|
elif len(rom_header) <= 18:
|
||||||
rom.name = bytearray(f"GK_{rom_header}", 'utf8')
|
rom.name = bytearray(f"GK_{rom_header}", 'utf8')
|
||||||
else:
|
else:
|
||||||
@@ -1869,8 +1867,6 @@ def patch_rom(world, rom, player, team, is_mystery=False, rom_header=None):
|
|||||||
else:
|
else:
|
||||||
if world.players > 1 and world.teams > 1:
|
if world.players > 1 and world.teams > 1:
|
||||||
rom.name = bytearray(f'GK_{world.seed}_{team + 1}_{player}', 'utf8')
|
rom.name = bytearray(f'GK_{world.seed}_{team + 1}_{player}', 'utf8')
|
||||||
elif world.players > 1:
|
|
||||||
rom.name = bytearray(f'GK_{world.seed}_{player}', 'utf8')
|
|
||||||
else:
|
else:
|
||||||
rom.name = bytearray(f'GK_{world.seed}', 'utf8')
|
rom.name = bytearray(f'GK_{world.seed}', 'utf8')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user