Skip to content

Commit

Permalink
Precompleted fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
fenhl committed Nov 18, 2024
1 parent 3fedc69 commit 363c2c7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions Main.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,14 +159,16 @@ def build_world_graphs(settings: Settings) -> list[World]:
if world.settings.shuffle_dungeon_rewards in ('vanilla', 'reward'):
world.fill_bosses()

if settings.empty_dungeons_mode == 'rewards':
world.set_empty_dungeon_rewards(settings.empty_dungeons_rewards)

if settings.triforce_hunt:
settings.distribution.configure_triforce_hunt(worlds)

logger.info('Setting Entrances.')
set_entrances(worlds, savewarps_to_connect)

for world in worlds:
if world.settings.empty_dungeons_mode == 'rewards':
world.set_empty_dungeon_rewards(world.settings.empty_dungeons_rewards)

return worlds


Expand Down
2 changes: 1 addition & 1 deletion World.py
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ def fill_bosses(self, boss_count: int = 9) -> None:
self.push_item(loc, item)

def set_empty_dungeon_rewards(self, empty_rewards: list[str] = []) -> None:
empty_dungeon_bosses = list(map(lambda reward: self.find_items(reward)[0].name, empty_rewards))
empty_dungeon_bosses = list(map(lambda reward: self.find_items(reward)[0], empty_rewards))
for boss in empty_dungeon_bosses:
hint_area = HintArea.at(boss)
if hint_area.dungeon_name in self.precompleted_dungeons: # filter out side dungeons and overworld
Expand Down

0 comments on commit 363c2c7

Please sign in to comment.