Ensure that remaining items get placed if we run into a dead end while creating a seed.
This commit is contained in:
		
							parent
							
								
									090ea5282b
								
							
						
					
					
						commit
						034715c4e1
					
				
							
								
								
									
										3
									
								
								Main.py
								
								
								
								
							
							
						
						
									
										3
									
								
								Main.py
								
								
								
								
							|  | @ -114,7 +114,8 @@ def distribute_items(world): | ||||||
|                 # we placed all available progress items. Maybe the game can be beaten anyway? |                 # we placed all available progress items. Maybe the game can be beaten anyway? | ||||||
|                 if world.can_beat_game(): |                 if world.can_beat_game(): | ||||||
|                     logging.getLogger('').warning('Not all locations reachable. Game beatable anyway.') |                     logging.getLogger('').warning('Not all locations reachable. Game beatable anyway.') | ||||||
|                     break |                     progress_done = True | ||||||
|  |                     continue | ||||||
|                 raise RuntimeError('No more progress items left to place.') |                 raise RuntimeError('No more progress items left to place.') | ||||||
| 
 | 
 | ||||||
|         spot_to_fill = None |         spot_to_fill = None | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue