Fixed issue with small key shuffle when big keys aren't

This commit is contained in:
aerinon
2022-08-26 15:20:53 -06:00
parent 55364c071a
commit 3e6f2bb79b
2 changed files with 4 additions and 0 deletions

View File

@@ -48,6 +48,9 @@ def fill_dungeons_restrictive(world, shuffled_locations):
bigs, smalls, others = [], [], []
for i in dungeon_items:
(bigs if i.bigkey else smalls if i.smallkey else others).append(i)
for i in world.itempool:
if i.smallkey and world.keyshuffle[i.player]:
smalls.append(i)
def fill(base_state, items, key_pool):
fill_restrictive(world, base_state, shuffled_locations, items, key_pool, True)