js脚本:打牌一条龙对话bug 修复 (#922)
* Update main.js * Update manifest.json * Update main.js
This commit is contained in:
@@ -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()) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"manifest_version": 1,
|
||||
"name": "打牌一条龙",
|
||||
"version": "1.9",
|
||||
"version": "1.91",
|
||||
"description": "只靠一个牌组的话,胜率还是太低了,所以有没有既简单又强势的卡组推荐下呢?",
|
||||
"authors": [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user