Skip to content

Commit

Permalink
fix(api): update autopush
Browse files Browse the repository at this point in the history
  • Loading branch information
aentwist committed Jan 10, 2025
1 parent d062ca8 commit c9a6cbb
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 3 deletions.
7 changes: 7 additions & 0 deletions api/autoafk/activities.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,9 +466,14 @@ def run_autobattle(settings: PushSettings, open_mode: Callable[[], None]) -> Non
touch_img_when_visible("buttons/tryagain")

# Clear popup spam. These episodes occur about every 20 stages.
# For campaign, they show up here.
touch_img_when_visible("labels/tap-anywhere-to-close", timeout_s=3)

config_battle_formation(settings)

# Annoyingly, for tower, they show up here.
touch_img_when_visible("labels/tap-anywhere-to-close", timeout_s=3)

touch_img_when_visible("buttons/autobattle")
touch_img_when_visible("buttons/activate")

Expand All @@ -478,6 +483,8 @@ def run_autobattle(settings: PushSettings, open_mode: Callable[[], None]) -> Non


def open_tower(tower: str) -> None:
reset_to_screen(Screen.DARK_FOREST)

touch_xy(500, 870)
wait_until_img_visible("labels/kingstower")
wait()
Expand Down
Binary file modified api/autoafk/img/buttons/autobattle.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified api/autoafk/img/buttons/darkforest_unselected.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 2 additions & 3 deletions api/test/ss-imgs-map.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,19 @@
"campaign/multi-battle": [
"buttons/heroclassselect",
"buttons/beginbattle",
"buttons/autobattle",
"buttons/back"
],
"campaign/single-battle": [
"buttons/heroclassselect",
"buttons/battle",
"buttons/autobattle",
"buttons/back"
],

"dark-forest/tab": [
"buttons/campaign_unselected",
"buttons/darkforest_selected",
"buttons/ranhorn_unselected",

"buildings/trift"
],
Expand All @@ -62,8 +63,6 @@
"dark-forest/arena/menu": ["buttons/back"],

"ranhorn/tab": [
"buttons/campaign_unselected",
"buttons/darkforest_unselected",
"buttons/ranhorn_selected",

"buildings/store"
Expand Down
Binary file modified api/test/ss/campaign/multi-battle.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified api/test/ss/campaign/single-battle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified api/test/ss/campaign/tab.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c9a6cbb

Please sign in to comment.