From 8c8dc5ffb3d25ddc153bf409cc44135ea8ad09f6 Mon Sep 17 00:00:00 2001 From: wangli <342970955@qq.com> Date: Mon, 30 Jan 2023 20:33:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E7=94=9F=E6=81=AF=E6=BC=94=E7=AE=97=E7=9A=84=E8=8B=A5=E5=B9=B2?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resource/tasks.json | 26 ++++++++++++++++-------- src/MaaWpfGui/Main/TaskQueueViewModel.cs | 2 +- 2 files changed, 19 insertions(+), 9 deletions(-) diff --git a/resource/tasks.json b/resource/tasks.json index 5b2ee44a93..9fd4285869 100644 --- a/resource/tasks.json +++ b/resource/tasks.json @@ -9777,11 +9777,13 @@ ] }, "Reclamation@ConfirmStart":{ + "cache": false, + "algorithm": "OcrDetect", + "text": [ + "演算", "开始" + ], "roi": [ - 874, - 503, - 350, - 212 + 790, 497, 465, 223 ], "action": "ClickSelf", "next": [ @@ -9831,12 +9833,14 @@ 557, 281, 162, 155 ], "action": "ClickSelf", - "postDelay": 1000, + "exceededNext": [ + "Reclamation@ResetScope" + ], "next": [ + "Reclamation@NextDay", "Reclamation@ClickAnyZoneOcr", "Reclamation@SkipAnnounce", "Reclamation@SkipDailyReport", - "Reclamation@ResetScope", "Reclamation@ClickCenterBase" ] }, @@ -9892,12 +9896,14 @@ ], "action": "ClickSelf", "next": [ + "Reclamation@ClickExitLevel", "Reclamation@StartActionPopupConfirm", "Reclamation@StartActionConfirm" ] }, "Reclamation@StartActionPopupConfirm":{ "template": "PopupConfirm.png", + "templThreshold": 0.7, "action": "ClickSelf", "roi": [ 630, @@ -9969,6 +9975,7 @@ "action": "ClickSelf", "postDelay": 500, "next": [ + "Reclamation@NextDay", "Reclamation@ClickCenterBase", "Reclamation@ResetScope" ] @@ -9978,7 +9985,7 @@ 1055, 0, 225, 177 ], "action": "ClickSelf", - "postDelay": 1000, + "postDelay": 4000, "next": [ "Reclamation@Emergency", "Reclamation@NextDay", @@ -9987,6 +9994,7 @@ }, "Reclamation@Emergency":{ "action": "DoNothing", + "templThreshold": 0.7, "roi": [ 1055, 0, 225, 181 ], @@ -10016,6 +10024,7 @@ }, "Reclamation@GiveupAlgorithmConfirm":{ "template": "PopupConfirm.png", + "templThreshold": 0.7, "action": "ClickSelf", "roi": [ 630, @@ -10054,7 +10063,8 @@ ], "action": "ClickSelf", "next": [ - "Reclamation@Begin" + "Reclamation@Begin", + "Reclamation@GainReword" ] } } diff --git a/src/MaaWpfGui/Main/TaskQueueViewModel.cs b/src/MaaWpfGui/Main/TaskQueueViewModel.cs index c648243e02..3ab4174cac 100644 --- a/src/MaaWpfGui/Main/TaskQueueViewModel.cs +++ b/src/MaaWpfGui/Main/TaskQueueViewModel.cs @@ -655,7 +655,7 @@ namespace MaaWpfGui { ret &= AppendRoguelike(); } - else if(item.OriginalName == "ReclamationAlgorithm") + else if (item.OriginalName == "ReclamationAlgorithm") { ret &= AppendReclamation(); }