mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
ALttP: Fix pre_fill
State Sweeping Too Early (#5215)
This commit is contained in:
@@ -505,10 +505,11 @@ class ALTTPWorld(World):
|
|||||||
def pre_fill(self):
|
def pre_fill(self):
|
||||||
from Fill import fill_restrictive, FillError
|
from Fill import fill_restrictive, FillError
|
||||||
attempts = 5
|
attempts = 5
|
||||||
all_state = self.multiworld.get_all_state(use_cache=False)
|
all_state = self.multiworld.get_all_state(perform_sweep=False)
|
||||||
crystals = [self.create_item(name) for name in ['Red Pendant', 'Blue Pendant', 'Green Pendant', 'Crystal 1', 'Crystal 2', 'Crystal 3', 'Crystal 4', 'Crystal 7', 'Crystal 5', 'Crystal 6']]
|
crystals = [self.create_item(name) for name in ['Red Pendant', 'Blue Pendant', 'Green Pendant', 'Crystal 1', 'Crystal 2', 'Crystal 3', 'Crystal 4', 'Crystal 7', 'Crystal 5', 'Crystal 6']]
|
||||||
for crystal in crystals:
|
for crystal in crystals:
|
||||||
all_state.remove(crystal)
|
all_state.remove(crystal)
|
||||||
|
all_state.sweep_for_advancements()
|
||||||
crystal_locations = [self.get_location('Turtle Rock - Prize'),
|
crystal_locations = [self.get_location('Turtle Rock - Prize'),
|
||||||
self.get_location('Eastern Palace - Prize'),
|
self.get_location('Eastern Palace - Prize'),
|
||||||
self.get_location('Desert Palace - Prize'),
|
self.get_location('Desert Palace - Prize'),
|
||||||
|
Reference in New Issue
Block a user