LttP: deprioritize locked locations for ingame hints (#3127)
This commit is contained in:
		
							parent
							
								
									1c14d1107f
								
							
						
					
					
						commit
						19f1b265b1
					
				| 
						 | 
				
			
			@ -2397,6 +2397,9 @@ def write_strings(rom, world, player):
 | 
			
		|||
            if hint_count:
 | 
			
		||||
                locations = world.find_items_in_locations(items_to_hint, player, True)
 | 
			
		||||
                local_random.shuffle(locations)
 | 
			
		||||
                # make locked locations less likely to appear as hint,
 | 
			
		||||
                # chances are the lock means the player already knows.
 | 
			
		||||
                locations.sort(key=lambda sorting_location: not sorting_location.locked)
 | 
			
		||||
                for x in range(min(hint_count, len(locations))):
 | 
			
		||||
                    this_location = locations.pop()
 | 
			
		||||
                    this_hint = this_location.item.hint_text + ' can be found ' + hint_text(this_location) + '.'
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue