Generation improvements
Potential fix for overworld problem
This commit is contained in:
@@ -1575,6 +1575,8 @@ def assign_crystal_switch_sectors(dungeon_map, crystal_switches, crystal_barrier
|
||||
valid = global_pole.is_valid_choice(dungeon_map, builder_choice, test_set)
|
||||
assign_sector(switch_choice, builder_choice, crystal_switches, global_pole)
|
||||
return crystal_switches
|
||||
if len(crystal_switches) == 0:
|
||||
raise GenerationException('No crystal switches to assign')
|
||||
sector_list = list(crystal_switches)
|
||||
choices = random.sample(sector_list, k=len(population))
|
||||
for i, choice in enumerate(choices):
|
||||
|
||||
Reference in New Issue
Block a user