Extra Junk in GT for triforce Hunt

This commit is contained in:
Kevin Cathcart 2018-03-01 21:36:30 -05:00
parent 0c486593c5
commit df0835d3e7
1 changed files with 8 additions and 2 deletions

10
Main.py
View File

@ -92,9 +92,10 @@ def main(args, seed=None):
elif args.algorithm == 'vt25': elif args.algorithm == 'vt25':
distribute_items_restrictive(world, 0) distribute_items_restrictive(world, 0)
elif args.algorithm == 'vt26': 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': elif args.algorithm == 'balanced':
distribute_items_restrictive(world, random.randint(0, 15)) distribute_items_restrictive(world, gt_filler(world))
logger.info('Calculating playthrough.') logger.info('Calculating playthrough.')
@ -131,6 +132,11 @@ def main(args, seed=None):
return world return world
def gt_filler(world):
if world.goal == 'triforcehunt':
return random.randint(15, 50)
return random.randint(0, 15)
def copy_world(world): def copy_world(world):
# ToDo: Not good yet # 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) 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)