@@ -829,8 +829,8 @@ def generate_basic(self): # mostly killing locations that shouldn't exist by se
829
829
# Kill unreachable events that can't be gotten even with all items
830
830
# Make sure to only kill actual internal events, not in-game "events"
831
831
all_state = self .get_state_with_complete_itempool ()
832
- all_state .sweep_for_events ()
833
832
all_locations = self .get_locations ()
833
+ all_state .sweep_for_events (locations = all_locations )
834
834
reachable = self .multiworld .get_reachable_locations (all_state , self .player )
835
835
unreachable = [loc for loc in all_locations if
836
836
(loc .internal or loc .type == 'Drop' ) and loc .event and loc .locked and loc not in reachable ]
@@ -858,7 +858,7 @@ def prefill_state(base_state):
858
858
state = base_state .copy ()
859
859
for item in self .get_pre_fill_items ():
860
860
self .collect (state , item )
861
- state .sweep_for_events (self .get_locations ())
861
+ state .sweep_for_events (locations = self .get_locations ())
862
862
return state
863
863
864
864
# Prefill shops, songs, and dungeon items
@@ -870,7 +870,7 @@ def prefill_state(base_state):
870
870
state = CollectionState (self .multiworld )
871
871
for item in self .itempool :
872
872
self .collect (state , item )
873
- state .sweep_for_events (self .get_locations ())
873
+ state .sweep_for_events (locations = self .get_locations ())
874
874
875
875
# Place dungeon items
876
876
special_fill_types = ['GanonBossKey' , 'BossKey' , 'SmallKey' , 'HideoutSmallKey' , 'Map' , 'Compass' ]
0 commit comments