diff --git a/Main.py b/Main.py index 24a17ad7..4144283a 100644 --- a/Main.py +++ b/Main.py @@ -92,9 +92,10 @@ def main(args, seed=None): elif args.algorithm == 'vt25': distribute_items_restrictive(world, 0) elif args.algorithm == 'vt26': - distribute_items_restrictive(world, random.randint(0, 15), shuffled_locations) + + distribute_items_restrictive(world, gt_filler(world), shuffled_locations) elif args.algorithm == 'balanced': - distribute_items_restrictive(world, random.randint(0, 15)) + distribute_items_restrictive(world, gt_filler(world)) logger.info('Calculating playthrough.') @@ -131,6 +132,11 @@ def main(args, seed=None): return world +def gt_filler(world): + if world.goal == 'triforcehunt': + return random.randint(15, 50) + return random.randint(0, 15) + def copy_world(world): # ToDo: Not good yet ret = World(world.shuffle, world.logic, world.mode, world.difficulty, world.timer, world.progressive, world.goal, world.algorithm, world.place_dungeon_items, world.check_beatable_only, world.shuffle_ganon, world.quickswap, world.fastmenu, world.disable_music, world.keysanity, world.custom, world.customitemarray)