mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Move hint info gathering to stage_generate_output
only loops over world locations once rather than many times
This commit is contained in:
@@ -640,21 +640,12 @@ def buildWorldGossipHints(world, checkedLocations=None):
|
||||
# Seed the RNG
|
||||
world.hint_rng = world.world.slot_seeds[world.player]
|
||||
|
||||
# Gather woth, barren, major items
|
||||
world.gather_hint_data()
|
||||
|
||||
# rebuild hint exclusion list
|
||||
hintExclusions(world, clear_cache=True)
|
||||
|
||||
world.barren_dungeon = 0
|
||||
world.woth_dungeon = 0
|
||||
|
||||
# search = Search.max_explore([w.state for w in orlds])
|
||||
# for stone in gossipLocations.values():
|
||||
# stone.reachable = (
|
||||
# search.spot_access(world.get_location(stone.location))
|
||||
# and search.state_list[world.id].guarantee_hint())
|
||||
|
||||
if checkedLocations is None:
|
||||
checkedLocations = {player: set() for player in world.world.player_ids}
|
||||
|
||||
@@ -669,8 +660,6 @@ def buildWorldGossipHints(world, checkedLocations=None):
|
||||
|
||||
stoneIDs = list(gossipLocations.keys())
|
||||
|
||||
# world.distribution.configure_gossip(stoneIDs)
|
||||
|
||||
if 'disabled' in world.hint_dist_user:
|
||||
for stone_name in world.hint_dist_user['disabled']:
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user