diff --git a/repo/js/WeeklyThousandStarRealm/assets/room_ready.png b/repo/js/WeeklyThousandStarRealm/assets/room_ready.png new file mode 100644 index 000000000..3331e1bed Binary files /dev/null and b/repo/js/WeeklyThousandStarRealm/assets/room_ready.png differ diff --git a/repo/js/WeeklyThousandStarRealm/main.js b/repo/js/WeeklyThousandStarRealm/main.js index 7bdfdca6e..56853b789 100644 --- a/repo/js/WeeklyThousandStarRealm/main.js +++ b/repo/js/WeeklyThousandStarRealm/main.js @@ -4,12 +4,13 @@ import { findImgAndClick, waitUntilTextAppear, waitUntilImgDisappear, - waitUntilImgAppear + waitUntilImgAppear, findImg } from "../../../packages/utils/tool"; import fold_triangle from "assets/fold_triangle.png"; import check_box from "assets/check_box.png"; import exit_room from "assets/exit_room.png"; +import room_ready from "assets/room_ready.png"; import paimon from "../../../packages/assets/imgs/paimon_menu.png"; const duration = 1000; // 默认点击等待延时 @@ -295,6 +296,13 @@ async function createRoom() { } await findText("开始游戏", 960, 540, 960, 540); click(770, 275); + // 校验点击状态 + let is_ready = await findImg(room_ready, 600, 170, 350, 230); + while (!is_ready.isExist()) { + await sleep(duration); + click(770, 275); + is_ready = await findImg(room_ready, 600, 170, 350, 230); + } await sleep(duration); } diff --git a/repo/js/WeeklyThousandStarRealm/manifest.json b/repo/js/WeeklyThousandStarRealm/manifest.json index 1859860f7..b274368e8 100644 --- a/repo/js/WeeklyThousandStarRealm/manifest.json +++ b/repo/js/WeeklyThousandStarRealm/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 1, "name": "千星奇域每周成就经验刷取", - "version": "3.2", + "version": "3.3", "bgi_version": "0.57.0", "description": "无需自己找图,可用于利用成就高经验值刷取经验,默认配置每周刷满需要22分钟,秒刷图仅需9分钟", "authors": [