Fixed some multiworld issues
This commit is contained in:
2
Fill.py
2
Fill.py
@@ -67,7 +67,7 @@ def fill_dungeons_restrictive(world, shuffled_locations):
|
|||||||
|
|
||||||
all_state_base = world.get_all_state()
|
all_state_base = world.get_all_state()
|
||||||
for player in range(1, world.players + 1):
|
for player in range(1, world.players + 1):
|
||||||
if world.logic[player] == 'hybridglitches' and world.keyshuffle[i.player] in ['none', 'nearby'] \
|
if world.logic[player] == 'hybridglitches' and world.keyshuffle[player] in ['none', 'nearby'] \
|
||||||
and world.pottery[player] not in ['none', 'cave']:
|
and world.pottery[player] not in ['none', 'cave']:
|
||||||
# remove 2 keys from main pool
|
# remove 2 keys from main pool
|
||||||
count_to_remove = 2
|
count_to_remove = 2
|
||||||
|
|||||||
4
Main.py
4
Main.py
@@ -161,7 +161,7 @@ def main(args, seed=None, fish=None):
|
|||||||
if world.spoiler_mode != 'none' and not args.jsonout:
|
if world.spoiler_mode != 'none' and not args.jsonout:
|
||||||
logger.info(world.fish.translate("cli", "cli", "create.meta"))
|
logger.info(world.fish.translate("cli", "cli", "create.meta"))
|
||||||
world.spoiler.meta_to_file(output_path(f'{outfilebase}_Spoiler.txt'))
|
world.spoiler.meta_to_file(output_path(f'{outfilebase}_Spoiler.txt'))
|
||||||
if args.mystery and not (args.suppress_meta or args.spoiler != 'none'):
|
if args.mystery and not args.suppress_meta:
|
||||||
world.spoiler.mystery_meta_to_file(output_path(f'{outfilebase}_meta.txt'))
|
world.spoiler.mystery_meta_to_file(output_path(f'{outfilebase}_meta.txt'))
|
||||||
|
|
||||||
for player in range(1, world.players + 1):
|
for player in range(1, world.players + 1):
|
||||||
@@ -361,7 +361,7 @@ def main(args, seed=None, fish=None):
|
|||||||
with open(output_path('%s_multidata' % outfilebase), 'wb') as f:
|
with open(output_path('%s_multidata' % outfilebase), 'wb') as f:
|
||||||
f.write(multidata)
|
f.write(multidata)
|
||||||
|
|
||||||
if args.mystery and not (args.suppress_meta or args.spoiler not in ['full']):
|
if args.mystery and not args.suppress_meta:
|
||||||
world.spoiler.hashes_to_file(output_path(f'{outfilebase}_meta.txt'))
|
world.spoiler.hashes_to_file(output_path(f'{outfilebase}_meta.txt'))
|
||||||
elif world.spoiler_mode != 'none' and not args.jsonout:
|
elif world.spoiler_mode != 'none' and not args.jsonout:
|
||||||
world.spoiler.hashes_to_file(output_path(f'{outfilebase}_Spoiler.txt'))
|
world.spoiler.hashes_to_file(output_path(f'{outfilebase}_Spoiler.txt'))
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ def connect_hmg_entrances_regions(world, player):
|
|||||||
connection.connect(target)
|
connection.connect(target)
|
||||||
|
|
||||||
# Add the new Ice path (back of bomb drop to front) to the world and model it properly
|
# Add the new Ice path (back of bomb drop to front) to the world and model it properly
|
||||||
ip_clip_entrance = world.get_entrance('Ice Bomb Drop Clip', 1)
|
ip_clip_entrance = world.get_entrance('Ice Bomb Drop Clip', player)
|
||||||
clip_door = Door(player, "Ice Bomb Drop Clip", DoorType.Logical, ip_clip_entrance)
|
clip_door = Door(player, "Ice Bomb Drop Clip", DoorType.Logical, ip_clip_entrance)
|
||||||
world.doors += [clip_door]
|
world.doors += [clip_door]
|
||||||
world.initialize_doors([clip_door])
|
world.initialize_doors([clip_door])
|
||||||
|
|||||||
Reference in New Issue
Block a user