Pokémon R/B: Skip unnecessary sweeps for events
This commit is contained in:
parent
9f65f22fac
commit
ddb764a9b6
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue