From db2731dfb7b37dfa1f9ec61be734cbc82b2f1a13 Mon Sep 17 00:00:00 2001 From: espeon65536 Date: Sun, 7 Nov 2021 08:05:23 -0600 Subject: [PATCH] OoT: create OOTWorld.hint_rng earlier in generate_output Otherwise the generator crashes when trying to make Ganondorf's text with hints off. --- worlds/oot/Hints.py | 2 -- worlds/oot/__init__.py | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/worlds/oot/Hints.py b/worlds/oot/Hints.py index c05f8986..6423be34 100644 --- a/worlds/oot/Hints.py +++ b/worlds/oot/Hints.py @@ -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) diff --git a/worlds/oot/__init__.py b/worlds/oot/__init__.py index e4dc8d84..89d65bd5 100644 --- a/worlds/oot/__init__.py +++ b/worlds/oot/__init__.py @@ -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':