mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Fix flood algorithm not checking if item is valid for selected location.
This commit is contained in:
2
Main.py
2
Main.py
@@ -259,7 +259,7 @@ def flood_items(world):
|
|||||||
random.shuffle(location_list)
|
random.shuffle(location_list)
|
||||||
spot_to_fill = None
|
spot_to_fill = None
|
||||||
for location in location_list:
|
for location in location_list:
|
||||||
if world.state.can_reach(location):
|
if world.state.can_reach(location) and location.item_rule(itempool[0]):
|
||||||
spot_to_fill = location
|
spot_to_fill = location
|
||||||
break
|
break
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user