Crossed Dungeon generation work

-Added a bunch of crystal switch logic
-Added a check for maiden backtracking
-OrderedFrozenSet to prevent randomization leaks with the same seed
-A few key improvements from an outstanding PR
This commit is contained in:
aerinon
2020-08-13 16:23:40 -06:00
parent df52ca2730
commit 2eb6c1ebc0
5 changed files with 464 additions and 351 deletions

View File

@@ -764,7 +764,7 @@ def find_small_key_door_candidates(builder, start_regions, world, player):
checked_doors = set()
for region in start_regions:
possible, checked = find_key_door_candidates(region, checked_doors, world, player)
candidates.extend(possible)
candidates.extend([x for x in possible if x not in candidates])
checked_doors.update(checked)
flat_candidates = []
for candidate in candidates: