Clustered bias algorithm

Fixes for various other algorithms
This commit is contained in:
aerinon
2021-09-14 15:02:18 -06:00
parent ebf237cca3
commit 391db7b5c4
4 changed files with 344 additions and 191 deletions

View File

@@ -207,12 +207,10 @@ def main(args, seed=None, fish=None):
logger.info(world.fish.translate("cli","cli","placing.dungeon.items"))
if args.algorithm in ['balanced', 'dungeon_bias', 'entangled']:
if args.algorithm != 'equitable':
shuffled_locations = world.get_unfilled_locations()
random.shuffle(shuffled_locations)
fill_dungeons_restrictive(world, shuffled_locations)
elif args.algorithm == 'equitable':
promote_dungeon_items(world)
else:
promote_dungeon_items(world)