def setup(preset='itopod'): preset = Setup.presets[preset] # print(preset) Helper.init() # loadout Navigation.menu('inventory') Inventory.loadout(preset['loadout']) # blood magic Navigation.menu('bloodMagic') BloodMagic.cap() # wandoos Navigation.menu('wandoos') Wandoos.addEnergy(cap=True) Wandoos.addMagic(cap=True) # time machine Navigation.menu('timeMachine') Misc.inputValue(1e9) TimeMachine.addEnergy() TimeMachine.addMagic() # augments Navigation.menu('augments') Augmentation.augmentation(aug=5) Augmentation.augmentation(aug=5, upgrade=True) # gold diggers Navigation.menu('goldDiggers') GoldDiggers.clearActive() GoldDiggers.activate(preset['diggers']) # advanced training Navigation.menu('advTraining') Helper.click(*coords.ADV_TOUGHNESS) Helper.click(*coords.ADV_POWER) Helper.click(*coords.ADV_BLOCK) Helper.click(*coords.ADV_WANDOOS_MAGIC) Helper.click(*coords.ADV_WANDOOS_ENERGY) # ngu Navigation.menu('ngu') print('waiting for e/m') Helper.sleep(65) # Misc.inputResource(**preset['energy_input']) NGU.addEnergy(preset['energy_ngus']) # Misc.inputResource(**preset['magic_input']) NGU.addMagic(preset['magic_ngus'])
def lsc(): """ LSC challenge logic.""" start = time.time() Navigation.menu('fightBoss') FightBosses.nuke() Helper.sleep(3) # wait for nuke FightBosses.fightBoss() Navigation.menu('inventory') Inventory.loadout(1) # gold heavy Navigation.menu('adventure') Adventure.adventureZone('bae') Adventure.turnIdleOn() # before augments Misc.inputValue(2e9) Navigation.menu('timeMachine') TimeMachine.addEnergy() TimeMachine.addMagic() Navigation.menu('wandoos') Wandoos.addEnergy(cap=False) Wandoos.addMagic(cap=False) Navigation.menu('fightBoss') FightBosses.nuke() FightBosses.fightBoss() Navigation.menu('goldDiggers') GoldDiggers.clearActive() GoldDiggers.activate(['STAT', 'WANDOOS', 'MAGIC_BEARD', 'BLOOD']) Challenges.update() while Challenges.is_active(): Navigation.menu('augments') Misc.inputResource(amount='half', idle=True, energy=True) Augmentation.augmentation(aug=7) Augmentation.augmentation(aug=7, upgrade=True) Helper.sleep(3) Navigation.menu('fightBoss') FightBosses.nuke() FightBosses.fightBoss() Navigation.menu('wandoos') Wandoos.addEnergy(cap=True) # release some energy Wandoos.addMagic(cap=True) Navigation.menu('bloodMagic') for i in range(1, 8): BloodMagic.addMagic(magic=i, cap=True) Challenges.update() print('done with challenge') print('waiting for 3 min') while time.time() - start <= 180: Helper.sleep(1) print('starting another one') ChallengeRuns.completed += 1 print(f'completed: {ChallengeRuns.completed}') ChallengeRuns.start(args.challenge)