From e91c532910d337d2a05243fea962c7e72a7de049 Mon Sep 17 00:00:00 2001 From: Walofz Date: Sat, 18 Jan 2020 20:01:07 +0700 Subject: [PATCH] 20200118.2 - fix bugs --- ALAuto.py | 2 +- modules/combat.py | 2 +- util/utils.py | 2 +- version.txt | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ALAuto.py b/ALAuto.py index 5aa78b2..d80246a 100644 --- a/ALAuto.py +++ b/ALAuto.py @@ -210,7 +210,7 @@ def print_cycle_stats(self): try: while True: Utils.wait_update_screen(1) - # temporal solution to event alerts + # temporal solution to event alerts if Utils.find("menu/azurlane"): Logger.log_msg("Found Azurlane Screen") for x in range(2): diff --git a/modules/combat.py b/modules/combat.py index cb71990..391c4ea 100644 --- a/modules/combat.py +++ b/modules/combat.py @@ -75,7 +75,7 @@ def combat_logic_wrapper(self): Utils.touch_randomly(self.region['close_info_dialog']) self.exit = 2 break - if Utils.find("commission/button_confirm"): + if Utils.find("menu/button_confirm"): Logger.log_msg("Found commission info message.") Utils.touch_randomly(self.region["combat_com_confirm"]) continue diff --git a/util/utils.py b/util/utils.py index 2e02988..b756113 100644 --- a/util/utils.py +++ b/util/utils.py @@ -150,7 +150,7 @@ def check_oil(cls, limit=0): return True cls.menu_navigate("menu/button_battle") - + while len(oil) < 5: _res = int(cls.read_numbers(970, 38, 101, 36)) if last_ocr == '' or abs(_res - last_ocr) < 600: diff --git a/version.txt b/version.txt index 5660662..da93c5d 100644 --- a/version.txt +++ b/version.txt @@ -1,2 +1,2 @@ 0.0.5 -20200117.06 \ No newline at end of file +20200118.02 \ No newline at end of file