Fill: fix non_local_items breaking in single player
This commit is contained in:
parent
ee1ea881e8
commit
5d68dc568f
3
Main.py
3
Main.py
|
@ -141,6 +141,9 @@ def main(args, seed=None):
|
|||
if world.players > 1:
|
||||
for player in world.player_ids:
|
||||
locality_rules(world, player)
|
||||
else:
|
||||
world.non_local_items[1] = set()
|
||||
world.local_items[1] = set()
|
||||
|
||||
AutoWorld.call_all(world, "set_rules")
|
||||
|
||||
|
|
|
@ -108,7 +108,7 @@ class LocalRom(object):
|
|||
self.encrypt_range(0x180140, 32, key)
|
||||
self.encrypt_range(0xEDA1, 8, key)
|
||||
|
||||
def write_to_file(self, file, hide_enemizer=False):
|
||||
def write_to_file(self, file):
|
||||
with open(file, 'wb') as outfile:
|
||||
outfile.write(self.buffer)
|
||||
|
||||
|
|
|
@ -298,7 +298,7 @@ class ALTTPWorld(World):
|
|||
if world.player_name[player] != 'Player%d' % player else ''
|
||||
|
||||
rompath = os.path.join(output_directory, f'AP_{world.seed_name}{outfilepname}.sfc')
|
||||
rom.write_to_file(rompath, hide_enemizer=True)
|
||||
rom.write_to_file(rompath)
|
||||
Patch.create_patch_file(rompath, player=player, player_name=world.player_name[player])
|
||||
os.unlink(rompath)
|
||||
self.rom_name = rom.name
|
||||
|
|
Loading…
Reference in New Issue