mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Pokémon R/B: Skip unnecessary sweeps for events
This commit is contained in:
@@ -345,8 +345,9 @@ class PokemonRedBlueWorld(World):
|
|||||||
for item in reversed(self.multiworld.itempool):
|
for item in reversed(self.multiworld.itempool):
|
||||||
if item.player == self.player and loc.can_fill(self.multiworld.state, item, False):
|
if item.player == self.player and loc.can_fill(self.multiworld.state, item, False):
|
||||||
self.multiworld.itempool.remove(item)
|
self.multiworld.itempool.remove(item)
|
||||||
state = sweep_from_pool(self.multiworld.state, self.multiworld.itempool + unplaced_items)
|
if item.advancement:
|
||||||
if state.can_reach(loc, "Location", self.player):
|
state = sweep_from_pool(self.multiworld.state, self.multiworld.itempool + unplaced_items)
|
||||||
|
if (not item.advancement) or state.can_reach(loc, "Location", self.player):
|
||||||
loc.place_locked_item(item)
|
loc.place_locked_item(item)
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
|
Reference in New Issue
Block a user