From 08a174e20458e8e10aa429f5b76d40742c2df36d Mon Sep 17 00:00:00 2001 From: Windsland52 <86581225+Windsland52@users.noreply.github.com> Date: Sat, 14 Dec 2024 03:57:00 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E5=A2=9E=E5=BC=BA=E8=BD=B6=E4=BA=8B?= =?UTF-8?q?=E6=B4=BE=E9=81=A3=E7=A8=B3=E5=AE=9A=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/resource/base/pipeline/anecdote.json | 85 +++++++++++++++++++-- 1 file changed, 78 insertions(+), 7 deletions(-) diff --git a/assets/resource/base/pipeline/anecdote.json b/assets/resource/base/pipeline/anecdote.json index f442628..17193c0 100644 --- a/assets/resource/base/pipeline/anecdote.json +++ b/assets/resource/base/pipeline/anecdote.json @@ -247,7 +247,24 @@ 0, 0 ], - "action": "Click" + "action": "Click", + "next": [ + "AnecdoteTaskAwardMainCompleted", + "AnecdoteTraceFlag2" + ] + }, + "AnecdoteTraceFlag2": { + "recognition": "TemplateMatch", + "template": [ + "StartUp/HomeButton.png", + "StartUp/HomeButton_White.png" + ], + "roi": [ + 70, + 0, + 144, + 144 + ] }, "AnecdoteTaskAwardMainConfirm": { "doc": "确认轶事追溯任务奖励", @@ -260,7 +277,16 @@ 31 ], "only_rec": true, - "action": "Click" + "action": "Click", + "post_wait_freezes": { + "time": 300, + "target": [ + 832, + 613, + 89, + 80 + ] + } }, "AnecdoteTaskCompleted_1": { "doc": "当前界面已无轶事追溯任务,向左滑后再次检查", @@ -580,6 +606,32 @@ "action": "Click" }, "AnecdoteCompleted": { + "doc": "追溯右上角无红点", + "recognition": "ColorMatch", + "lower": [ + 160, + 25, + 15 + ], + "upper": [ + 210, + 75, + 75 + ], + "roi": [ + 1145, + 481, + 16, + 15 + ], + "count": 100, + "inverse": true, + "next": [ + "AnecdoteTaskExist", + "AnecdoteCompleted_NoNext" + ] + }, + "AnecdoteCompleted_NoNext": { "doc": "追溯右上角无红点", "recognition": "ColorMatch", "lower": [ @@ -604,15 +656,34 @@ "AnecdoteNotRead": { "doc": "尚未阅读完故事,任务结束", "recognition": "OCR", - "expected": "已完成", + "expected": "剧情进度", "roi": [ 500, - 531, - 55, - 23 + 530, + 72, + 24 ], "only_rec": true, - "inverse": true + "next": [ + "AnecdoteTaskExist", + "AnecdoteCompleted" + ], + "interrupt": [ + "AnecdoteTryAward", + "ObtainedAwards" + ] + }, + "AnecdoteTryAward": { + "recognition": "OCR", + "expected": "7/7", + "roi": [ + 618, + 530, + 43, + 25 + ], + "action": "Click", + "post_wait_freezes": 300 }, "ActivityMainSelectAnecdote": { "recognition": "OCR",