def do_generate_inventory_management_for_adventure(should_grind, should_sell): # At this point we're at the victory screen. We need to click the Inventory button on the # left side. This involves a loading screen and can take quite some time, so wait 15 seconds. nox.click_loc((80, 230), 15000) manage_inventory(should_grind, should_sell) # Exit back to Orvel map nox.click_button('exit', 3500)
def re_enter_adventure(use_potion): # Re-enter the map. Since there's a loading transition, this takes a little extra time. nox.click_button('enter_node', 3500) # Prepare battle -> start adventure. nox.click_button('start_adventure', 3500) nox.click_button('start_adventure', 3500) # The stamina window may have popped up. Use a potion if use_potion: nox.click_loc((759, 558), 2000) # Stamina Potion OK
def generate_one_click_cycle(): # No effect during battle or on victory screen, but if we get stuck in Get Ready # for Battle screen after inventory management, this starts us again. Make sure # to do this BEFORE the continue button, otherwise the continue button will click # one of our heroes and remove them from the lineup. By putting this click first # it guarantees that we either enter the battle, or get the stamina window (in # which case the click doesn't go through to the button underneath). nox.click_button('start_adventure', 500) # Be careful with the x coordinate here so that it clicks in between items in the # inventory if your inventory is full. nox.click_loc((503, 352), 500) # Continue (game pauses sometimes mid-battle) nox.click_loc((1204, 494), 500) # Retry nox.click_loc( (572, 467), 500) # Single Repeat button. Careful not to click the button that # edits the count of stamina potions to use. if use_pot: nox.click_loc((759, 558), 500) # Stamina Potion OK else: nox.click_loc((940, 190), 500) # Close stamina pop-up
def get_to_victory_screen(): # Continue (game pauses sometimes mid-battle) nox.click_loc((503, 352), 1000) # Need to make sure to click below the loot results so they get dismissed properly nox.click_loc((503, 500), 1000)