Fill: log per-player item and location counts in case of mismatch.
This commit is contained in:
		
							parent
							
								
									9fbc7470c1
								
							
						
					
					
						commit
						7a7e3544cf
					
				
							
								
								
									
										6
									
								
								Fill.py
								
								
								
								
							
							
						
						
									
										6
									
								
								Fill.py
								
								
								
								
							| 
						 | 
					@ -209,6 +209,12 @@ def distribute_items_restrictive(world: MultiWorld):
 | 
				
			||||||
    if unplaced or unfilled:
 | 
					    if unplaced or unfilled:
 | 
				
			||||||
        logging.warning(
 | 
					        logging.warning(
 | 
				
			||||||
            f'Unplaced items({len(unplaced)}): {unplaced} - Unfilled Locations({len(unfilled)}): {unfilled}')
 | 
					            f'Unplaced items({len(unplaced)}): {unplaced} - Unfilled Locations({len(unfilled)}): {unfilled}')
 | 
				
			||||||
 | 
					        items_counter = Counter([location.item.player for location in world.get_locations()])
 | 
				
			||||||
 | 
					        locations_counter = Counter([location.player for location in world.get_locations()])
 | 
				
			||||||
 | 
					        items_counter.update([item.player for item in unplaced])
 | 
				
			||||||
 | 
					        locations_counter.update([location.player for location in unfilled])
 | 
				
			||||||
 | 
					        print_data = {"items": items_counter, "locations": locations_counter}
 | 
				
			||||||
 | 
					        logging.info(f'Per-Player counts: {print_data})')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def fast_fill(world: MultiWorld, item_pool: typing.List, fill_locations: typing.List) -> typing.Tuple[typing.List, typing.List]:
 | 
					def fast_fill(world: MultiWorld, item_pool: typing.List, fill_locations: typing.List) -> typing.Tuple[typing.List, typing.List]:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue