Fix flood algorithm not checking if item is valid for selected location.
This commit is contained in:
parent
bc9cfb6053
commit
d853db308e
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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue