Fix bugs that prevent seed rolling from continuing if too many plando items are placed.

This commit is contained in:
CaitSith2
2021-01-06 11:13:22 -08:00
parent 07f97887d1
commit 113efa8f02
2 changed files with 5 additions and 1 deletions

2
Rom.py
View File

@@ -2066,7 +2066,7 @@ def write_strings(rom, world, player, team):
items_to_hint.extend(BigKeys)
local_random.shuffle(items_to_hint)
hint_count = 5 if world.shuffle[player] not in ['vanilla', 'dungeonssimple', 'dungeonsfull'] else 8
while hint_count > 0:
while hint_count > 0 and items_to_hint:
this_item = items_to_hint.pop(0)
this_location = world.find_items(this_item, player)
local_random.shuffle(this_location)