diff --git a/DATA/assets/PopupName.py b/DATA/assets/PopupName.py index 0c150ab..3c10783 100644 --- a/DATA/assets/PopupName.py +++ b/DATA/assets/PopupName.py @@ -15,4 +15,3 @@ class PopupName: POPUP_MOMOTALK = "POPUP_MOMOTALK" POPUP_CAFE_REPLACE = "POPUP_CAFE_REPLACE" POPUP_CHAPTER_INFO = "POPUP_CHAPTER_INFO" - POPUP_EASY_QUEST = "POPUP_EASY_QUEST" diff --git a/modules/AllTask/InQuest/HardQuest.py b/modules/AllTask/InQuest/HardQuest.py index 7dba6c8..e2a9f0e 100644 --- a/modules/AllTask/InQuest/HardQuest.py +++ b/modules/AllTask/InQuest/HardQuest.py @@ -55,15 +55,10 @@ def on_run(self) -> None: "en_US": "Click on level {} from the top down ".format(level_ind+1)}) ScrollSelect(level_ind, 190, 306, 630, 1116, lambda: not match_pixel(Page.MAGICPOINT, Page.COLOR_WHITE)).run() - if quest_has_easy_tab(): + has_easy_tab = quest_has_easy_tab() + if has_easy_tab: # 适配日服简易攻略 click((385, 183)) - screenshot() - if not match(popup_pic(PopupName.POPUP_EASY_QUEST)): - # 匹配简易攻略弹窗失败 - logging.warn({"zh_CN": "简易攻略:未能匹配到扫荡弹窗,跳过", - "en_US": "Easy Quest: Cannot match the raid popup, skip"}) - break else: screenshot() if not match(popup_pic(PopupName.POPUP_TASK_INFO)): @@ -71,7 +66,7 @@ def on_run(self) -> None: logging.warn({"zh_CN": "未能匹配到扫荡弹窗,跳过", "en_US": "Cannot match the raid popup, skip"}) break # 扫荡 - RaidQuest(repeat_times, has_easy_tab=config.userconfigdict["SERVER_TYPE"] == "JP").run() + RaidQuest(repeat_times, has_easy_tab=has_easy_tab).run() # 关闭弹窗,直到看到hard按钮 close_popup_until_see(button_pic(ButtonName.BUTTON_HARD)) diff --git a/modules/AllTask/InQuest/NormalQuest.py b/modules/AllTask/InQuest/NormalQuest.py index c8d3d11..3df88b2 100644 --- a/modules/AllTask/InQuest/NormalQuest.py +++ b/modules/AllTask/InQuest/NormalQuest.py @@ -53,15 +53,10 @@ def on_run(self) -> None: click(Page.MAGICPOINT) ScrollSelect(level_ind, 190, 288, 628, 1115, lambda: not match_pixel(Page.MAGICPOINT, Page.COLOR_WHITE)).run() # 如果匹配到弹窗,看看是不是扫荡的弹窗, - - if quest_has_easy_tab(): + has_easy_tab = quest_has_easy_tab() + if has_easy_tab: # 适配简易攻略 click((385, 183)) - screenshot() - if not match(popup_pic(PopupName.POPUP_EASY_QUEST)): - # 匹配简易攻略弹窗失败 - logging.warn({"zh_CN": "简易攻略:未能匹配到扫荡弹窗,跳过", "en_US":"Easy Quest: Cannot match the raid popup, skip"}) - break else: screenshot() if not match(popup_pic(PopupName.POPUP_TASK_INFO)): @@ -69,7 +64,7 @@ def on_run(self) -> None: logging.warn({"zh_CN": "未能匹配到扫荡弹窗,跳过", "en_US":"Cannot match the raid popup, skip"}) break # 扫荡 - RaidQuest(repeat_times, has_easy_tab=config.userconfigdict["SERVER_TYPE"]=="JP").run() + RaidQuest(repeat_times, has_easy_tab=has_easy_tab).run() # 清除所有弹窗 close_popup_until_see(button_pic(ButtonName.BUTTON_NORMAL)) # 清除所有弹窗 diff --git a/modules/AllTask/SubTask/RaidQuest.py b/modules/AllTask/SubTask/RaidQuest.py index 2dc8898..e11c1ec 100644 --- a/modules/AllTask/SubTask/RaidQuest.py +++ b/modules/AllTask/SubTask/RaidQuest.py @@ -23,7 +23,7 @@ class RaidQuest(Task): recall_close:function 回调函数,用于后续关闭弹窗,通常建议将关闭操作放在此class外部 has_easy_tab: bool - 是否有简易攻略tab,用于适配日服简易攻略扫荡弹窗 + 是否有简易攻略tab,用于适配简易攻略扫荡弹窗 """ def __init__(self, raidtimes, recall_close=None, has_easy_tab=False, name="RaidQuest") -> None: diff --git a/modules/configs/MyConfig.py b/modules/configs/MyConfig.py index 352a3d9..6be3876 100644 --- a/modules/configs/MyConfig.py +++ b/modules/configs/MyConfig.py @@ -10,7 +10,7 @@ class MyConfigger: """ 维护config字典,包含软件config,用户任务config,语言包 """ - NOWVERSION="1.6.7" + NOWVERSION="1.6.8" USER_CONFIG_FOLDER="./BAAH_CONFIGS" SOFTWARE_CONFIG_FOLDER="./DATA/CONFIGS" LANGUAGE_PACKAGE_FOLDER="./DATA/i18n" diff --git a/modules/configs/defaultSettings.py b/modules/configs/defaultSettings.py index 41c8bdd..66a970b 100644 --- a/modules/configs/defaultSettings.py +++ b/modules/configs/defaultSettings.py @@ -128,8 +128,8 @@ "AUTO_ASSAULT_LEVEL":{"d":4}, - "RUN_UNTIL_TRY_TIMES":{"d":6}, - "RUN_UNTIL_WAIT_TIME":{"d":1.5}, + "RUN_UNTIL_TRY_TIMES":{"d":9}, + "RUN_UNTIL_WAIT_TIME":{"d":0.6}, # 是否直接使用emulator-5554这种序列号 "ADB_DIRECT_USE_SERIAL_NUMBER":{"d":False},