alttp: remove triforce during dungeon item fill (#1801)

This ensures that even for minimal worlds, the locations will be checked appropriately.
This commit is contained in:
espeon65536 2023-05-10 05:06:25 -06:00 committed by GitHub
parent cc08e853a0
commit 48add4687c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -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)