From 48add4687c38ee0633d109b69e7c8f50beb4f057 Mon Sep 17 00:00:00 2001 From: espeon65536 <81029175+espeon65536@users.noreply.github.com> Date: Wed, 10 May 2023 05:06:25 -0600 Subject: [PATCH] alttp: remove triforce during dungeon item fill (#1801) This ensures that even for minimal worlds, the locations will be checked appropriately. --- worlds/alttp/Dungeons.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/worlds/alttp/Dungeons.py b/worlds/alttp/Dungeons.py index a6a3bec9..b8da7dc2 100644 --- a/worlds/alttp/Dungeons.py +++ b/worlds/alttp/Dungeons.py @@ -164,6 +164,12 @@ def fill_dungeons_restrictive(world): (5 if (item.player, item.name) in dungeon_specific else 0)) for item in in_dungeon_items: all_state_base.remove(item) + + # Remove completion condition so that minimal-accessibility worlds place keys properly + for player in {item.player for item in in_dungeon_items}: + if all_state_base.has("Triforce", player): + all_state_base.remove(world.worlds[player].create_item("Triforce")) + fill_restrictive(world, all_state_base, locations, in_dungeon_items, True, True, allow_excluded=True)