create per-team enemizer calls

This commit is contained in:
Fabian Dill 2021-01-27 02:39:12 +01:00
parent 7531bb9d11
commit 8ddb1ab614
2 changed files with 5 additions and 5 deletions

View File

@ -234,7 +234,7 @@ def main(args, seed=None):
patch_rom(world, rom, player, team, use_enemizer)
if use_enemizer:
patch_enemizer(world, player, rom, args.enemizercli)
patch_enemizer(world, team, player, rom, args.enemizercli)
if args.race:
patch_race_rom(rom, world, player)

8
Rom.py
View File

@ -272,11 +272,11 @@ def apply_random_sprite_on_event(rom: LocalRom, sprite, local_random, allow_rand
rom.write_bytes(0x307078 + (i * 0x8000), sprite.glove_palette)
def patch_enemizer(world, player: int, rom: LocalRom, enemizercli):
def patch_enemizer(world, team: int, player: int, rom: LocalRom, enemizercli):
check_enemizer(enemizercli)
randopatch_path = os.path.abspath(output_path(f'enemizer_randopatch_{player}.sfc'))
options_path = os.path.abspath(output_path(f'enemizer_options_{player}.json'))
enemizer_output_path = os.path.abspath(output_path(f'enemizer_output_{player}.sfc'))
randopatch_path = os.path.abspath(output_path(f'enemizer_randopatch_{team}_{player}.sfc'))
options_path = os.path.abspath(output_path(f'enemizer_options_{team}_{player}.json'))
enemizer_output_path = os.path.abspath(output_path(f'enemizer_output_{team}_{player}.sfc'))
# write options file for enemizer
options = {