def run5(): """ Perform a 5 minute run.""" start = time.time() Inventory.loadout(2) # loadout 2 is bars-heavy BasicTraining.basicTraining() FightBosses.nuke() sleep(3) Adventure.adventureZone() # go to latest zone Misc.inputResource() # all energy print(f'Time Machine loop for 2:30 minutes') inv1 = False lastZone = False loopCounter = 0 while time.time() - start < 150: loopCounter += 1 TimeMachine.addEnergy() TimeMachine.addMagic() if time.time() - start > 120 and not inv1: Inventory.loadout(1) BasicTraining.basicTraining() inv1 = True if loopCounter == 10: Adventure.itopodFarm() # if not lastZone: # Adventure.adventureZone() # lastZone = True Misc.reclaimAll() # reclaim energy and magic from TM print(f'Main loop until 5 minutes') mainStart = time.time() pushAdventure = False loopCounter = 0 while time.time() - start < 280: loopCounter += 1 # push to new adventure zone # if time.time() - mainStart > 30 and not pushAdventure: # Adventure.adventureZone() # pushAdventure = True # fight bosses if loopCounter == 2: Adventure.itopodFarm() FightBosses.nuke() for _ in range(5): FightBosses.fightBoss() # augments Misc.inputResource(amount='quarter', idle=True) for _ in range(3): Augmentation.augmentation(aug=2) Augmentation.augmentation(aug=2, upgrade=True) # blood magic # BloodMagic.addMagic(cap=True) # BloodMagic.addMagic(magic=2, cap=True) # BloodMagic.addMagic(magic=3, cap=True) BloodMagic.addMagic(magic=3, cap=True) print(f'sleeping 15 seconds') sleep(15) MoneyPit.moneyPit() FightBosses.nuke() FightBosses.fightBoss() print('getting exp') # Statistics.screenshot('rebirth.png') expStart = time.time() exp = Statistics.getEXP() expEnd = time.time() print(f'time: {round(expStart - expEnd, 3)}') print('waiting for time') while time.time() - start < 300: sleep(1) Navigation.menu('fightBoss') click(*coords.STOP) # stop fighting bosses Navigation.menu('rebirth') Rebirth.rebirth() return exp
def run3(): """ Perform a 3 minute run. """ start = time.time() Inventory.loadout(2) FightBosses.nuke() sleep(5) for i in range(3): FightBosses.fightBoss() Adventure.adventureZone('mega') sleep(5) Adventure.itopodFarm() Misc.inputResource() bm = False done = False wandoos = False adv = False while time.time() - start < 165: Misc.inputResource(amount='quarter', idle=True) if wandoos: Wandoos.addMagic() Wandoos.addEnergy() TimeMachine.addEnergy() TimeMachine.addMagic() Augmentation.augmentation(aug=4) Augmentation.augmentation(aug=4, upgrade=True) Wandoos.addEnergy() if time.time() - start > 60 and not done: Inventory.loadout(1) GoldDiggers.wandoosDigger() Adventure.adventureZone() sleep(5) Adventure.itopodFarm() bm = True if bm and not done: Misc.reclaimMagic() BloodMagic.addMagic(magic=5, cap=True) BloodMagic.addMagic(magic=4, cap=True) BloodMagic.addMagic(magic=3, cap=True) BloodMagic.addMagic(magic=2, cap=True) BloodMagic.addMagic(magic=1, cap=True) done = True wandoos = True FightBosses.nuke() FightBosses.fightBoss() GoldDiggers.clearActive() GoldDiggers.statDigger() MoneyPit.moneyPit() FightBosses.nuke() for i in range(4): FightBosses.fightBoss() sleep(1) # Navigation.menu('rebirth') while time.time() - start < 175: sleep(0.1) exp = Statistics.getEXP() # Statistics.screenshot('rebirth.png') Navigation.menu('fightBoss') click(*coords.STOP) # stop fighting Navigation.menu('rebirth') while time.time() - start < 180: sleep(0.1) Rebirth.rebirth() return exp