js脚本:打牌一条龙对话bug 修复 (#922)

* Update main.js

* Update manifest.json

* Update main.js
This commit is contained in:
5117600049
2025-05-26 13:11:12 +08:00
committed by GitHub
parent d9c2d72594
commit 153e6b23a3
2 changed files with 5 additions and 3 deletions

View File

@@ -71,7 +71,7 @@ async function checkChallengeResults() {
//自动对话,直到出现选项框 await autoConversation();
async function autoConversation() {
await sleep(2000); //点击后等待一段时间避免误判
await sleep(2500); //点击后等待一段时间避免误判
const region1 = RecognitionObject.ocr(785, 890, 340, 82); // 对话区域
const region2 = RecognitionObject.ocr(1250, 400, 660, 440); // 选项区域
let talkTime = 0;
@@ -87,8 +87,10 @@ async function autoConversation() {
keyPress("VK_SPACE");
await sleep(500);
} else if (!res1.isEmpty() && !res2.isEmpty()) {
keyPress("F");
await sleep(1000);
keyPress("F");
await sleep(400);
keyPress("F");
log.info("已选择谈话内容");
return;
} else if (res1.isEmpty() && !res2.isEmpty()) {

View File

@@ -1,7 +1,7 @@
{
"manifest_version": 1,
"name": "打牌一条龙",
"version": "1.9",
"version": "1.91",
"description": "只靠一个牌组的话,胜率还是太低了,所以有没有既简单又强势的卡组推荐下呢?",
"authors": [
{