OoT: create OOTWorld.hint_rng earlier in generate_output
Otherwise the generator crashes when trying to make Ganondorf's text with hints off.
This commit is contained in:
		
							parent
							
								
									97ee73d79f
								
							
						
					
					
						commit
						db2731dfb7
					
				|  | @ -637,8 +637,6 @@ hint_dist_keys = { | ||||||
| 
 | 
 | ||||||
| # builds out general hints based on location and whether an item is required or not | # builds out general hints based on location and whether an item is required or not | ||||||
| def buildWorldGossipHints(world, checkedLocations=None): | def buildWorldGossipHints(world, checkedLocations=None): | ||||||
|     # Seed the RNG |  | ||||||
|     world.hint_rng = world.world.slot_seeds[world.player] |  | ||||||
| 
 | 
 | ||||||
|     # rebuild hint exclusion list |     # rebuild hint exclusion list | ||||||
|     hintExclusions(world, clear_cache=True) |     hintExclusions(world, clear_cache=True) | ||||||
|  |  | ||||||
|  | @ -712,6 +712,9 @@ class OOTWorld(World): | ||||||
|             for trap in ice_traps: |             for trap in ice_traps: | ||||||
|                 trap.looks_like_item = self.create_item(self.world.slot_seeds[self.player].choice(self.fake_items).name) |                 trap.looks_like_item = self.create_item(self.world.slot_seeds[self.player].choice(self.fake_items).name) | ||||||
| 
 | 
 | ||||||
|  |             # Seed hint RNG, used for ganon text lines also | ||||||
|  |             self.hint_rng = self.world.slot_seeds[self.player] | ||||||
|  | 
 | ||||||
|             outfile_name = f"AP_{self.world.seed_name}_P{self.player}_{self.world.get_player_name(self.player)}" |             outfile_name = f"AP_{self.world.seed_name}_P{self.player}_{self.world.get_player_name(self.player)}" | ||||||
|             rom = Rom(file=get_options()['oot_options']['rom_file']) |             rom = Rom(file=get_options()['oot_options']['rom_file']) | ||||||
|             if self.hints != 'none': |             if self.hints != 'none': | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue