mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 12:11:33 -06:00
add AutoWorld.generate_early, optimize Location
This commit is contained in:
4
Main.py
4
Main.py
@@ -122,9 +122,11 @@ def main(args, seed=None):
|
||||
world.set_options(args)
|
||||
world.glitch_triforce = args.glitch_triforce # This is enabled/disabled globally, no per player option.
|
||||
|
||||
world.slot_seeds = {player: random.Random(world.random.randint(0, 999999999)) for player in
|
||||
world.slot_seeds = {player: random.Random(world.random.getrandbits(64)) for player in
|
||||
range(1, world.players + 1)}
|
||||
|
||||
AutoWorld.call_all(world, "generate_early")
|
||||
|
||||
# system for sharing ER layouts
|
||||
for player in world.alttp_player_ids:
|
||||
world.er_seeds[player] = str(world.random.randint(0, 2 ** 64))
|
||||
|
Reference in New Issue
Block a user