对话结束后,在 委托描述 出现前增加延时 (#2074)

This commit is contained in:
DarkFlameMaster
2025-10-04 15:09:18 +08:00
committed by GitHub
parent 02cf708dc3
commit 7e24a2f47b
3 changed files with 5 additions and 7 deletions

View File

@@ -40,6 +40,6 @@
"莎拉"
]
},
"note": "执行对话步骤优先选择特定选项并与白名单NPC交互"
"note": "与莎拉对话"
}
]

View File

@@ -13,10 +13,6 @@
},
"note": "执行对话步骤优先选择特定选项并与白名单NPC交互"
},
{
"type": "关闭商店界面",
"note": "关闭商店界面(如果现在在商店页面)"
},
{
"type": "地图追踪",
"data": "餐品订单-晨曦酒庄-1.json",
@@ -34,6 +30,6 @@
"恩内斯特"
]
},
"note": "执行对话步骤优先选择特定选项并与白名单NPC交互"
"note": "与恩内斯特对话"
}
]

View File

@@ -195,7 +195,7 @@ var DialogProcessor = {
let exitList = await Utils.easyTemplateMatch(
Constants.TALK_EXIT_IMAGE_PATH,
dialogRegion,
(useMask = true)
true
);
let iconList = await Utils.easyTemplateMatch(
Constants.TALK_ICON_IMAGE_PATH,
@@ -246,7 +246,9 @@ var DialogProcessor = {
if (isInMainUI()) {
log.info("已返回主界面,自动剧情执行完成");
await sleep(500) //等主界面加载完毕,防止吞操作
keyPress("V");
await sleep(2000) //等待委托任务描述加载完毕
} else {
log.warn(
"已达到最大尝试次数 {attempts},但未检测到返回主界面",