Ensure that remaining items get placed if we run into a dead end while creating a seed.

This commit is contained in:
LLCoolDave 2017-05-22 21:34:38 +02:00
parent 090ea5282b
commit 034715c4e1
1 changed files with 2 additions and 1 deletions

View File

@ -114,7 +114,8 @@ def distribute_items(world):
# we placed all available progress items. Maybe the game can be beaten anyway?
if world.can_beat_game():
logging.getLogger('').warning('Not all locations reachable. Game beatable anyway.')
break
progress_done = True
continue
raise RuntimeError('No more progress items left to place.')
spot_to_fill = None