def setDefaultPatches(startLocation): # called by the isolver in seedless mode. # activate only layout patch (the most common one), red tower blue doors and the startLocation's patches. from graph.graph_utils import GraphUtils RomPatches.ActivePatches[0] = [ RomPatches.RedTowerBlueDoors ] + RomPatches.TotalLayout + GraphUtils.getGraphPatches(startLocation)
# output ROM name if args.patchOnly == False: fileName = 'VARIA_Randomizer_' + seedCode + str(seed) + '_' + preset if args.progressionSpeed != "random": fileName += "_" + args.progressionSpeed else: fileName = 'VARIA' # TODO : find better way to name the file (argument?) seedName = fileName if args.directory != '.': fileName = args.directory + '/' + fileName if args.noLayout == True: RomPatches.ActivePatches = RomPatches.TotalBase else: RomPatches.ActivePatches = RomPatches.Total RomPatches.ActivePatches.remove(RomPatches.BlueBrinstarBlueDoor) RomPatches.ActivePatches += GraphUtils.getGraphPatches(args.startLocation) if gravityBehaviour != "Balanced": RomPatches.ActivePatches.remove(RomPatches.NoGravityEnvProtection) if gravityBehaviour == "Progressive": RomPatches.ActivePatches.append(RomPatches.ProgressiveSuits) if args.nerfedCharge == True: RomPatches.ActivePatches.append(RomPatches.NerfedCharge) if args.noVariaTweaks == False: RomPatches.ActivePatches += RomPatches.VariaTweaks if minimizerN is not None: RomPatches.ActivePatches.append(RomPatches.NoGadoras) if args.tourian == 'Fast': RomPatches.ActivePatches += RomPatches.MinimizerTourian elif args.tourian == 'Disabled': RomPatches.ActivePatches.append(RomPatches.NoTourian) missileQty = float(args.missileQty)