diff --git a/DungeonGenerator.py b/DungeonGenerator.py index 72938538..55a4b9ec 100644 --- a/DungeonGenerator.py +++ b/DungeonGenerator.py @@ -680,7 +680,7 @@ def create_graph_piece_from_state(door, o_state, b_state, proposed_map, exceptio def filter_for_potential_bk_locations(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 + return [x for x in locations if '- Big Chest' not in x.name and 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)] diff --git a/Fill.py b/Fill.py index 65aa2f85..339a01ce 100644 --- a/Fill.py +++ b/Fill.py @@ -167,7 +167,7 @@ def valid_key_placement(item, location, itempool, world): cr_count = world.crystals_needed_for_gt[location.player] return key_logic.check_placement(unplaced_keys, location if item.bigkey else None, prize_loc, cr_count) else: - return item.is_inside_dungeon_item(world) + return not item.is_inside_dungeon_item(world) # todo: big deal for ambrosia to fix this def valid_reserved_placement(item, location, world):