Compass/Map can be progressive

Fixed filter_for_potential_bk_locations
Changed rules to use dungeon_table
This commit is contained in:
aerinon
2021-08-26 15:25:29 -06:00
parent 6f06dbcd04
commit 4d776e0fee
3 changed files with 13 additions and 11 deletions

View File

@@ -679,7 +679,8 @@ def create_graph_piece_from_state(door, o_state, b_state, proposed_map, exceptio
def filter_for_potential_bk_locations(locations, world, player):
return count_locations_exclude_big_chest(locations, world, player)
return [x for x in locations if '- Big Chest' not in x.name and not not reserved_location(x, world, player) and
not x.forced_item and not prize_or_event(x) and not blind_boss_unavail(x, locations, world, player)]
type_map = {
@@ -1078,7 +1079,7 @@ def prize_or_event(loc):
def reserved_location(loc, world, player):
return loc.name in world.item_pool_config.reserved_locations[player]
return hasattr(world, 'item_pool_config') and loc.name in world.item_pool_config.reserved_locations[player]
def blind_boss_unavail(loc, locations, world, player):