Bug with key flooding (events that would flood the key are not unresolved)

Last ditch placement efforts for when things get stuck (crossed standard mostly)
This commit is contained in:
aerinon
2021-07-13 10:38:14 -07:00
parent 8c2b6f3bd2
commit 9ef24a610d
2 changed files with 68 additions and 1 deletions

View File

@@ -505,6 +505,7 @@ class CollectionState(object):
unresolved_events = [x for y in self.reachable_regions[player] for x in y.locations
if x.event and x.item and (x.item.smallkey or x.item.bigkey or x.item.advancement)
and x not in self.locations_checked and x.can_reach(self)]
unresolved_events = self._do_not_flood_the_keys(unresolved_events)
if len(unresolved_events) == 0:
self.check_key_doors_in_dungeons(rrp, player)