From bfa28a65dfa7b2218eaced34c3d6efdb221ac167 Mon Sep 17 00:00:00 2001 From: zzyyyl Date: Tue, 23 Aug 2022 21:08:08 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=BF=9E=E7=BB=AD=204=20=E6=AC=A1?= =?UTF-8?q?=E8=A1=8C=E5=8A=A8=E5=A4=B1=E8=B4=A5=E6=97=B6=E8=B7=B3=E8=BF=87?= =?UTF-8?q?=E8=A1=8C=E5=8A=A8=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit close https://github.com/MaaAssistantArknights/MaaAssistantArknights/issues/1641 --- resource/tasks.json | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/resource/tasks.json b/resource/tasks.json index e6c1c2e55e..459055daf7 100644 --- a/resource/tasks.json +++ b/resource/tasks.json @@ -2236,6 +2236,9 @@ 143 ], "action": "DoNothing", + "reduceOtherTimes": [ + "FightMissionFailed" + ], "next": [ "ClickCorner" ] @@ -2462,10 +2465,28 @@ "OfflineConfirm", "StartButton1" ], + "maxTimes": 3, + "maxTimesDoc": "这是失败次数的限制,超过此限制会停止任务,但每成功一次 EndOfAction 会减少一次失败次数", + "exceededNext": [ + "FightMissionFailedAndStop" + ], "onErrorNext": [ "ClickCornerAfterPRTS_1" ] }, + "FightMissionFailedAndStop": { + "algorithm": "OcrDetect", + "text": [ + "任务失败" + ], + "action": "ClickSelf", + "roi": [ + 36, + 226, + 482, + 269 + ] + }, "OfflineConfirmAfterBattle": { "template": "PopupConfirm.png", "action": "ClickSelf",