Add comment about swap count
This commit is contained in:
		
							parent
							
								
									2f56e40fb7
								
							
						
					
					
						commit
						dc82b384c5
					
				
							
								
								
									
										2
									
								
								Fill.py
								
								
								
								
							
							
						
						
									
										2
									
								
								Fill.py
								
								
								
								
							| 
						 | 
				
			
			@ -62,6 +62,8 @@ def fill_restrictive(world: MultiWorld, base_state: CollectionState, locations,
 | 
			
		|||
                # try swaping this item with previously placed items
 | 
			
		||||
                for(i, location) in enumerate(placements):
 | 
			
		||||
                    placed_item = location.item
 | 
			
		||||
                    # Unplaceable items can sometimes be swapped infinitely. Limit the 
 | 
			
		||||
                    # number of times we will swap an individual item to prevent this
 | 
			
		||||
                    if swapped_items[placed_item.player, placed_item.name] > 0:
 | 
			
		||||
                        continue
 | 
			
		||||
                    location.item = None
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue