move LttP create_regions and set_rules to AutoWorld

This commit is contained in:
Fabian Dill
2021-07-22 15:51:50 +02:00
parent b2f5f095fc
commit 21af3bf563
6 changed files with 76 additions and 65 deletions

View File

@@ -222,7 +222,9 @@ for diff in {'easy', 'normal', 'hard', 'expert'}:
)
def generate_itempool(world, player: int):
def generate_itempool(world):
player = world.player
world = world.world
if world.difficulty[player] not in difficulties:
raise NotImplementedError(f"Diffulty {world.difficulty[player]}")
if world.goal[player] not in {'ganon', 'pedestal', 'bosses', 'triforcehunt', 'localtriforcehunt', 'icerodhunt',