Always include team number in rom name

This commit is contained in:
2026-01-24 21:59:11 -06:00
parent a3f67a39ab
commit 9733da9f44

4
Rom.py
View File

@@ -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:
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:
rom.name = bytearray(f"GK_{rom_header}", 'utf8')
else:
@@ -1869,8 +1867,6 @@ def patch_rom(world, rom, player, team, is_mystery=False, rom_header=None):
else:
if world.players > 1 and world.teams > 1:
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:
rom.name = bytearray(f'GK_{world.seed}', 'utf8')