Fix issue with Crossed ER trying to use a previously consumed entrance

This commit is contained in:
codemann8
2021-11-03 23:16:35 -05:00
parent 34cea05444
commit 891c2d3565

View File

@@ -557,10 +557,10 @@ def link_entrances(world, player):
if world.logic[player] in ['noglitches', 'minorglitches'] or (invFlag != (0x1b in world.owswaps[player][0] and world.owMixed[player])): if world.logic[player] in ['noglitches', 'minorglitches'] or (invFlag != (0x1b in world.owswaps[player][0] and world.owMixed[player])):
bomb_shop_doors = [e for e in entrance_pool if e not in ['Pyramid Fairy']] bomb_shop_doors = [e for e in entrance_pool if e not in ['Pyramid Fairy']]
bomb_shop = random.choice(bomb_shop_doors) bomb_shop = random.choice(bomb_shop_doors)
pool.remove(bomb_shop)
connect_entrance(world, bomb_shop, 'Big Bomb Shop', player) connect_entrance(world, bomb_shop, 'Big Bomb Shop', player)
# shuffle connectors # shuffle connectors
pool = [e for e in pool if e in entrance_pool]
connect_caves(world, pool, [], caves, player) connect_caves(world, pool, [], caves, player)
# place remaining doors # place remaining doors