Merged in DR v0.5.1.0

This commit is contained in:
codemann8
2021-08-20 13:10:27 -05:00
16 changed files with 1159 additions and 295 deletions

View File

@@ -1203,10 +1203,11 @@ def connect_doors(world, doors, targets, player):
"""This works inplace"""
random.shuffle(doors)
random.shuffle(targets)
while doors:
door = doors.pop()
target = targets.pop()
placing = min(len(doors), len(targets))
for door, target in zip(doors, targets):
connect_entrance(world, door, target, player)
doors[:] = doors[placing:]
targets[:] = targets[placing:]
def skull_woods_shuffle(world, player):