ensure Hyrule Castle Small Key locality in standard + small key shuffle

This commit is contained in:
Fabian Dill 2021-07-24 01:42:00 +02:00
parent e79a918c03
commit af30d8b7cd
3 changed files with 6 additions and 3 deletions

View File

@ -355,7 +355,8 @@ def balance_multiworld_progression(world: MultiWorld):
if world.has_beaten_game(state):
break
elif not sphere_locations:
raise RuntimeError('Not all required items reachable. Something went terribly wrong here.')
logging.warning("Progression Balancing ran out of paths.")
break
def swap_location_item(location_1: Location, location_2: Location, check_locked=True):

View File

@ -212,7 +212,7 @@ def main(args=None, callback=ERmain):
logging.debug(f"No player settings defined for option '{option}'")
if args.outputpath:
os.makedirs(args.outputpath, exist_ok=True)
with open(os.path.join(args.outputpath if args.outputpath else ".", f"mystery_result_{seed}.yaml"), "wt") as f:
with open(os.path.join(args.outputpath if args.outputpath else ".", f"generate_{seed_name}.yaml"), "wt") as f:
yaml.dump(important, f)
callback(erargs, seed)

View File

@ -180,7 +180,9 @@ def main(args, seed=None):
if not world.keyshuffle[player]:
world.non_local_items[player] -= item_name_groups['Small Keys']
# This could probably use a more elegant solution.
elif world.keyshuffle[player] == True and world.mode[player] == "Standard":
world.local_items[player].add("Small Key (Hyrule Castle)")
if not world.bigkeyshuffle[player]:
world.non_local_items[player] -= item_name_groups['Big Keys']