TR Crystal Maze adjustments

Fixed key door candidate finder to stay within own dungeon
Standard mode support added
Added missed Pre-moldorm chest
Started work on new key logic analyzer
This commit is contained in:
aerinon
2019-11-19 10:50:44 -07:00
parent 644785b140
commit 48494a09ba
8 changed files with 237 additions and 12 deletions

View File

@@ -41,8 +41,9 @@ def generate_dungeon(available_sectors, entrance_region_names, world, player):
dungeon_cache = {}
backtrack = False
itr = 0
finished = False
# last_choice = None
while len(proposed_map) < len(doors_to_connect):
while not finished:
# what are my choices?
itr += 1
if itr > 5000:
@@ -55,6 +56,9 @@ def generate_dungeon(available_sectors, entrance_region_names, world, player):
dungeon, hangers, hooks = dungeon_cache[depth]
valid = True
if valid:
if len(proposed_map) == len(doors_to_connect):
finished = True
continue
prev_choices = choices_master[depth]
# make a choice
hanger, hook = make_a_choice(dungeon, hangers, hooks, prev_choices)