Rework __init__ to use create_items and pre_fill properly

Puts keys into the itempool along with all other items
Fixes a bug where dungeon smallkeys + nondungeon big keys fails generation
Also includes some minor optimizations mostly relating to iterables
This commit is contained in:
espeon65536
2021-09-05 23:07:39 -05:00
committed by Fabian Dill
parent 5d68dc568f
commit 9f6fa2bd05
3 changed files with 165 additions and 169 deletions

View File

@@ -193,7 +193,7 @@ def set_entrances_based_rules(ootworld):
if ootworld.world.accessibility == 'beatable':
return
all_state = ootworld.state_with_items(ootworld.itempool)
all_state = ootworld.world.get_all_state(False)
for location in ootworld.get_locations():
# If a shop is not reachable as adult, it can't have Goron Tunic or Zora Tunic as child can't buy these