From df0835d3e7647ee31b98e72f3d2224911636c792 Mon Sep 17 00:00:00 2001 From: Kevin Cathcart Date: Thu, 1 Mar 2018 21:36:30 -0500 Subject: [PATCH] Extra Junk in GT for triforce Hunt --- Main.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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)