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:
espeon65536 2021-11-07 08:05:23 -06:00 committed by Fabian Dill
parent 97ee73d79f
commit db2731dfb7
2 changed files with 3 additions and 2 deletions

View File

@ -637,8 +637,6 @@ hint_dist_keys = {
# builds out general hints based on location and whether an item is required or not
def buildWorldGossipHints(world, checkedLocations=None):
# Seed the RNG
world.hint_rng = world.world.slot_seeds[world.player]
# rebuild hint exclusion list
hintExclusions(world, clear_cache=True)

View File

@ -712,6 +712,9 @@ class OOTWorld(World):
for trap in ice_traps:
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)}"
rom = Rom(file=get_options()['oot_options']['rom_file'])
if self.hints != 'none':