Fix standard mode checks for per-player settings

This commit is contained in:
compiling
2020-01-19 21:23:06 +11:00
parent 49398fb454
commit d3a6dd9138
6 changed files with 9 additions and 11 deletions

View File

@@ -256,8 +256,7 @@ def distribute_items_restrictive(world, gftower_trash=False, fill_locations=None
# Make sure the escape small key is placed first in standard with key shuffle to prevent running out of spots
# todo: crossed
if world.keyshuffle[item.player] and world.mode == 'standard':
progitempool.sort(key=lambda item: 1 if item.name == 'Small Key (Escape)' else 0)
progitempool.sort(key=lambda item: 1 if item.name == 'Small Key (Escape)' and world.keyshuffle[item.player] and world.mode[item.player] == 'standard' else 0)
fill_restrictive(world, world.state, fill_locations, progitempool)