From 1e5ecadf67e59571bc55d037c294984b4993fa3a Mon Sep 17 00:00:00 2001 From: Magnemania Date: Thu, 13 Oct 2022 13:17:29 -0400 Subject: [PATCH] SC2: Mission rando now uses world random --- worlds/sc2wol/Regions.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/worlds/sc2wol/Regions.py b/worlds/sc2wol/Regions.py index 75abc1b530..ece55c738f 100644 --- a/worlds/sc2wol/Regions.py +++ b/worlds/sc2wol/Regions.py @@ -144,28 +144,28 @@ def create_regions(world: MultiWorld, player: int, locations: Tuple[LocationData # Add no_build missions to the pool and fill in no_build slots missions_to_add = mission_pools['no_build'] for slot in no_build_slots: - filler = random.randint(0, len(missions_to_add)-1) + filler = world.random.randint(0, len(missions_to_add)-1) missions[slot] = missions_to_add.pop(filler) # Add easy missions into pool and fill in easy slots missions_to_add = missions_to_add + mission_pools['easy'] for slot in easy_slots: - filler = random.randint(0, len(missions_to_add) - 1) + filler = world.random.randint(0, len(missions_to_add) - 1) missions[slot] = missions_to_add.pop(filler) # Add medium missions into pool and fill in medium slots missions_to_add = missions_to_add + mission_pools['medium'] for slot in medium_slots: - filler = random.randint(0, len(missions_to_add) - 1) + filler = world.random.randint(0, len(missions_to_add) - 1) missions[slot] = missions_to_add.pop(filler) # Add hard missions into pool and fill in hard slots missions_to_add = missions_to_add + mission_pools['hard'] for slot in hard_slots: - filler = random.randint(0, len(missions_to_add) - 1) + filler = world.random.randint(0, len(missions_to_add) - 1) missions[slot] = missions_to_add.pop(filler)