From 5c9c9947f3a489a6054edf7485162945c38bb6a0 Mon Sep 17 00:00:00 2001 From: aerinon Date: Tue, 8 Dec 2020 08:54:49 -0700 Subject: [PATCH] Minor bugfix --- DoorShuffle.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/DoorShuffle.py b/DoorShuffle.py index 3c614030..635923ef 100644 --- a/DoorShuffle.py +++ b/DoorShuffle.py @@ -1720,12 +1720,10 @@ def shuffle_bombable_dashable(bd_candidates, bombable_counts, dashable_counts, w if all_dash_counts < 8: for chosen in random.sample(all_candidates, min(8 - all_dash_counts, len(all_candidates))): change_pair_type(chosen, DoorKind.Dashable, world, player) - world.spoiler.set_door_type(chosen.name + ' <-> ' + chosen.dest.name, DoorKind.Dashable, player) all_candidates.remove(chosen) if all_bomb_counts < 12: for chosen in random.sample(all_candidates, min(12 - all_bomb_counts, len(all_candidates))): change_pair_type(chosen, DoorKind.Bombable, world, player) - world.spoiler.set_door_type(chosen.name + ' <-> ' + chosen.dest.name, DoorKind.Bombable, player) all_candidates.remove(chosen) for excluded in all_candidates: remove_pair_type_if_present(excluded, world, player)