actually launch the randomization

master
Lucent 2023-10-13 00:27:29 +02:00
parent bd7e1bc15d
commit 409efe14ac
1 changed files with 66 additions and 64 deletions

View File

@ -5021,6 +5021,7 @@ def start_randomizer(rom, settings):
else: else:
Patch = False Patch = False
settings.pop('Patch') settings.pop('Patch')
for loop in range(repeat): for loop in range(repeat):
initialize() initialize()
SeedSettings = settings.copy() SeedSettings = settings.copy()
@ -5028,6 +5029,7 @@ def start_randomizer(rom, settings):
print('Debug generation enabled') print('Debug generation enabled')
if loop > 0: if loop > 0:
SeedValue = str(random.randrange(sys.maxsize)) SeedValue = str(random.randrange(sys.maxsize))
Difficulty = SeedSettings['Difficulty'] Difficulty = SeedSettings['Difficulty']
DamageRuns = SeedSettings['DamageRuns'] DamageRuns = SeedSettings['DamageRuns']
random.seed(SeedValue + str(SeedSettings)) random.seed(SeedValue + str(SeedSettings))