From 2596c9437b3d6c1e4a7f85e553d4848bd58ce587 Mon Sep 17 00:00:00 2001 From: zzyyyl Date: Tue, 1 Nov 2022 21:21:34 +0800 Subject: [PATCH 1/3] =?UTF-8?q?feat:=20tasks.json=20=E4=B8=AD=EF=BC=8C?= =?UTF-8?q?=E5=90=8C=E5=90=8D=E5=9B=BD=E9=99=85=E6=9C=8D=E8=B5=84=E6=BA=90?= =?UTF-8?q?=E6=98=BE=E5=BC=8F=E5=A3=B0=E6=98=8E=E7=9A=84=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E8=A6=86=E5=86=99=E5=9B=BD=E6=9C=8D=E8=B5=84=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MeoAssistant/TaskData.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/MeoAssistant/TaskData.cpp b/src/MeoAssistant/TaskData.cpp index b770010e5e..c78cca2d94 100644 --- a/src/MeoAssistant/TaskData.cpp +++ b/src/MeoAssistant/TaskData.cpp @@ -42,6 +42,7 @@ bool asst::TaskData::parse(const json::value& json) // must_true 若为真,那么 return false 了就是炸了。 // 否则可能只是某个 B@A 的任务没定义 A(这不是少见现象,例如 Roguelike@Abandon) generate_fun = [&](const std::string& name, bool must_true) -> bool { + // 不是需要 generate 的资源(不在 tasks.json 中) if (!to_be_generated[task_name_view(name)]) { // 已生成(它是之前加载过的某个资源的 base) if (m_raw_all_tasks_info.contains(name)) { @@ -58,11 +59,19 @@ bool asst::TaskData::parse(const json::value& json) return false; } const json::value& task_json = json_obj.at(name); + + // 已生成(例如国际服覆写国服资源) + if (m_raw_all_tasks_info.contains(name)) { + return generate_task(name, "", get_raw(name), task_json); + } + + // BaseTask if (auto opt = task_json.find("baseTask")) { std::string base = opt.value(); return generate_fun(base, must_true) && generate_task(name, "", get_raw(base), task_json); } + // TemplateTask if (size_t p = name.find('@'); p != std::string::npos) { if (std::string base = name.substr(p + 1); generate_fun(base, false)) { return generate_task(name, name.substr(0, p), get_raw(base), task_json); From d6fca7b6a13f6c9ada5d81dab308076a99f43aa2 Mon Sep 17 00:00:00 2001 From: MistEO Date: Wed, 2 Nov 2022 21:58:49 +0800 Subject: [PATCH 2/3] =?UTF-8?q?chore:=20=E6=9B=B4=E6=96=B0=E5=A4=96?= =?UTF-8?q?=E6=9C=8D=E8=B5=84=E6=BA=90=E5=8F=8A=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- README_en-US.md | 4 +- README_ja-JP.md | 2 +- README_zh-TW.md | 2 +- resource/global/YoStarEN/resource/tasks.json | 291 +---------- resource/global/YoStarJP/resource/tasks.json | 472 +----------------- resource/global/YoStarKR/resource/tasks.json | 54 +- .../resource/template/EndOfAction.png | Bin 7206 -> 0 bytes resource/global/txwy/readme.md | 2 + resource/global/txwy/resource/tasks.json | 247 +-------- 10 files changed, 25 insertions(+), 1051 deletions(-) delete mode 100644 resource/global/YoStarKR/resource/template/EndOfAction.png diff --git a/README.md b/README.md index 3dde0871f1..6fad896147 100644 --- a/README.md +++ b/README.md @@ -81,7 +81,7 @@ MAA 的意思是 MAA Assistant Arknights - 韩服 支持基本的刷理智功能,请参考 [说明](resource/global/YoStarKR/readme.md) - 繁中服 - 支持基本的刷理智、自动公招、公招识别功能,请参考 [说明](resource/global/txwy/readme.md) + 支持基本的刷理智、自动公招、自动肉鸽、领取日常、公招识别功能,请参考 [说明](resource/global/txwy/readme.md) 由于外服用户较少及项目人手不足的问题,外服目前都仅适配了基本的功能。若您有强需求,欢迎在 [讨论区](https://github.com/MaaAssistantArknights/MaaAssistantArknights/discussions) 催更,或加入我们一起建设 MAA! diff --git a/README_en-US.md b/README_en-US.md index 8ef60c8b52..d9db23b9f1 100644 --- a/README_en-US.md +++ b/README_en-US.md @@ -79,9 +79,9 @@ Please refer to: [FAQ](docs/en-us/1.2-FAQ.md) - JP Client Supports basic features like Combat, Credit Shopping, Auto Recruiting, Visiting, Collocting, Auto Roguelike(beta), Recruitment calculate, etc. See also [README](resource/global/YoStarJP/readme.md) - KR Client - Supports basic features like Combat, etc. See also [README](resource/global/YoStarKR/readme.md) + Supports basic features like Combat, etc. See also [README](resource/global/YoStarKR/readme.md) - ZH_CHT Client - Supports basic features like Combat, etc. See also [README](resource/global/txwy/readme.md) + Supports basic features like Combat, Auto Recruiting, Auto Roguelike(beta), Recruitment calculate, etc. See also [README](resource/global/txwy/readme.md) Due to the small number of overseas clients users and the lack of project manpower, the overseas clients is currently only adapted to basic functions. If you have strong needs, welcome to ask the progress in the [discussions](https://github.com/MaaAssistantArknights/MaaAssistantArknights/discussions), or join us to make MAA better! diff --git a/README_ja-JP.md b/README_ja-JP.md index 2fed4eddec..55b505f721 100644 --- a/README_ja-JP.md +++ b/README_ja-JP.md @@ -82,7 +82,7 @@ UIを見れば使い方もすぐ分かる! 基本的な作戦機能のみサポートされている。 サポート内容については[README](resource/global/YoStarKR/readme.md)を参照してください。 - TXWYサーバー - 基本的な作戦、自動公開求人、公開求人認識の機能がサポートされている。 + 基本的な作戦、自動公開求人、統合戦略(ベータ版)、公開求人認識の機能がサポートされている。 サポート内容については[README](resource/global/txwy/readme.md)を参照してください。 海外サーバーのユーザーが不足しており、基本的な機能しかサポートされていません。要件があれば[提案](https://github.com/MaaAssistantArknights/MaaAssistantArknights/discussions)ページで提案をお願い致します。~~いっしょにMAAの開発に協力しましょう~~ diff --git a/README_zh-TW.md b/README_zh-TW.md index 903387f7a0..d2f74ad098 100644 --- a/README_zh-TW.md +++ b/README_zh-TW.md @@ -81,7 +81,7 @@ MAA 的意思是 MAA Assistant Arknights - 韓服 支援基本的刷理智功能,請參考 [說明](resource/global/YoStarKR/readme.md) - 繁中服 - 支援基本的刷理智、自動公招、公招辨識功能,請參考 [說明](resource/global/txwy/readme.md) + 支援基本的刷理智、自動公招、自動肉鴿、領取日常、公招辨識功能,請參考 [說明](resource/global/txwy/readme.md) 由於外服使用者較少及項目人手不足的問題,外服目前都僅適配了基本的功能。若您有強需求,歡迎在 [討論區](https://github.com/MaaAssistantArknights/MaaAssistantArknights/discussions) 催更,~~或加入我們一起建設 MAA~~ diff --git a/resource/global/YoStarEN/resource/tasks.json b/resource/global/YoStarEN/resource/tasks.json index 32c1a77696..3585b6fcd6 100644 --- a/resource/global/YoStarEN/resource/tasks.json +++ b/resource/global/YoStarEN/resource/tasks.json @@ -1,115 +1,31 @@ { "StartButton1": { - "algorithm": "OcrDetect", "text": [ "Start" - ], - "cache": false, - "preDelay": 500, - "roi": [ - 1000, - 600, - 280, - 120 - ], - "exceededNext": [ - "StageSNReturnFlag", - "Stop" - ], - "action": "ClickSelf", - "next": [ - "StartButton2", - "UseMedicine", - "UseStone", - "NoStone", - "OfflineConfirm", - "AnnihilationConfirm" ] }, - "PRTS": { - "algorithm": "OcrDetect", + "PRTS2": { "text": [ "Takeover" - ], - "roi": [ - 0, - 500, - 1280, - 220 - ], - "action": "DoNothing", - "postDelay": 5000, - "next": [ - "PRTS", - "PRTS3", - "EndOfAction", - "PrtsErrorConfirm", - "OfflineConfirm", - "WaitAfterPRTS" ] }, "VisitNextOcr": { - "algorithm": "OcrDetect", "text": [ "Visit Next" - ], - "action": "ClickSelf", - "roi": [ - 1080, - 570, - 195, - 130 - ], - "next": [ - "VisitLimited", - "VisitNext", - "VisitNextBlack", - "VisitNextOcr" ] }, "VisitLimited": { - "algorithm": "OcrDetect", "text": [ "limit", "reached" - ], - "action": "DoNothing", - "roi": [ - 900, - 50, - 375, - 140 - ], - "next": [ - "Home@ReturnTo" ] }, "NoFriends": { - "algorithm": "OcrDetect", "text": [ "No friends" - ], - "roi": [ - 650, - 100, - 300, - 150 - ], - "action": "DoNothing", - "next": [ - "Home@ReturnTo" ] }, "RecruitTags": { - "algorithm": "OcrDetect", - "fullMatch": true, - "text": [], - "roi": [ - 375, - 360, - 480, - 120 - ], "ocrReplace": [ [ "Starter", @@ -226,135 +142,27 @@ ] }, "Mall": { - "algorithm": "OcrDetect", - "action": "ClickSelf", "text": [ "Store" - ], - "roi": [ - 640, - 360, - 640, - 360 - ], - "next": [ - "CreditStoreOcr", - "Mall", - "Mall@CloseAnno", - "Mall@TodaysSupplies" ] }, "CreditStoreOcr": { - "algorithm": "OcrDetect", "text": [ "Credit Store" - ], - "roi": [ - 1000, - 0, - 280, - 300 - ], - "action": "ClickSelf", - "next": [ - "CollectCredit", - "CreditStoreFailed", - "Stop" ] }, "CreditShop-NoMoney": { - "algorithm": "OcrDetect", "text": [ "Insufficient Credit", "Unable to" - ], - "roi": [ - 940, - 60, - 339, - 110 - ] - }, - "Award": { - "template": "Task.png", - "action": "ClickSelf", - "roi": [ - 650, - 500, - 250, - 170 - ], - "next": [ - "ReceiveAward", - "DailyTask", - "WeeklyTask", - "Award" - ] - }, - "AwardFinished": { - "action": "Stop", - "roi": [ - 400, - 0, - 880, - 150 - ], - "maskRange": [ - 1, - 255 - ] - }, - "DailyTask": { - "action": "ClickSelf", - "cache": false, - "roi": [ - 400, - 0, - 880, - 150 - ], - "next": [ - "ReceiveAward", - "WeeklyTask" - ] - }, - "WeeklyTask": { - "action": "ClickSelf", - "cache": false, - "roi": [ - 400, - 0, - 880, - 150 - ], - "next": [ - "ReceiveAward", - "Stop" ] }, "Roguelike@StageTraderInvestSystemFull": { - "algorithm": "OcrDetect", - "cache": false, - "reduceOtherTimes": [ - "Roguelike@StageTraderInvestConfirm" - ], "text": [ "Storage full" - ], - "roi": [ - 982, - 28, - 298, - 289 - ], - "next": [ - "Roguelike@StageTraderInvestCancel" ] }, "BattleStageName": { - "algorithm": "OcrDetect", - "cache": false, - "text": [], "Doc": "该任务的 ocrReplace 被所有涉及Rouge-like的English识别任务复用", "ocrReplace": [ [ @@ -674,8 +482,6 @@ ] }, "CharsNameOcrReplace": { - "algorithm": "OcrDetect", - "text": [], "Doc": "该任务的 ocrReplace 被所有涉及干员名的English Name识别任务复用", "ocrReplace": [ [ @@ -1925,14 +1731,6 @@ ] }, "RoguelikeCustom-HijackSquad": { - "algorithm": "OcrDetect", - "text": [], - "roi": [ - 0, - 383, - 1280, - 142 - ], "ocrReplace": [ [ "Leader Squad", @@ -1977,14 +1775,6 @@ ] }, "RoguelikeCustom-HijackRoles": { - "algorithm": "OcrDetect", - "text": [], - "roi": [ - 54, - 356, - 1172, - 183 - ], "ocrReplace": [ [ "As Your Heart Desires", @@ -2013,14 +1803,6 @@ ] }, "RoguelikeCustom-HijackCoChar": { - "algorithm": "OcrDetect", - "text": [], - "roi": [ - 186, - 298, - 913, - 200 - ], "ocrReplace": [ [ "Caster", @@ -2058,14 +1840,6 @@ "preDelay": 1000 }, "RoguelikeTraderShoppingOcr": { - "algorithm": "OcrDetect", - "text": [], - "roi": [ - -120, - -160, - 190, - 35 - ], "ocrReplace": [ [ "Guard Promotion Voucher", @@ -3198,73 +2972,24 @@ ] }, "StageDrops-DropType-ExpAndLMB": { - "templThreshold": 0.7, - "roi": [ - 0, - 2, - 0, - 25 - ], - "Doc": "roi 只用到了 y 和 height" + "templThreshold": 0.7 }, "StageDrops-DropType-Normal": { - "templThreshold": 0.7, - "roi": [ - 0, - 2, - 0, - 25 - ], - "Doc": "roi 只用到了 y 和 height" + "templThreshold": 0.7 }, "StageDrops-DropType-Extra": { - "templThreshold": 0.7, - "roi": [ - 0, - 2, - 0, - 25 - ], - "Doc": "roi 只用到了 y 和 height" + "templThreshold": 0.7 }, "StageDrops-DropType-Furniture": { - "templThreshold": 0.7, - "roi": [ - 0, - 2, - 0, - 25 - ], - "Doc": "roi 只用到了 y 和 height" + "templThreshold": 0.7 }, "StageDrops-DropType-Special": { - "templThreshold": 0.7, - "roi": [ - 0, - 2, - 0, - 25 - ], - "Doc": "roi 只用到了 y 和 height" + "templThreshold": 0.7 }, "StageDrops-DropType-Sanity": { - "templThreshold": 0.7, - "roi": [ - 0, - 2, - 0, - 25 - ], - "Doc": "roi 只用到了 y 和 height" + "templThreshold": 0.7 }, "StageDrops-DropType-Reward": { - "templThreshold": 0.7, - "roi": [ - 0, - 2, - 0, - 25 - ], - "Doc": "roi 只用到了 y 和 height" + "templThreshold": 0.7 } } diff --git a/resource/global/YoStarJP/resource/tasks.json b/resource/global/YoStarJP/resource/tasks.json index f33acca6f5..a6946c558d 100644 --- a/resource/global/YoStarJP/resource/tasks.json +++ b/resource/global/YoStarJP/resource/tasks.json @@ -1,105 +1,30 @@ { "StartButton1": { - "algorithm": "OcrDetect", "text": [ "行動開始" - ], - "cache": false, - "preDelay": 500, - "roi": [ - 1000, - 600, - 280, - 120 - ], - "exceededNext": [ - "StageSNReturnFlag", - "Stop" - ], - "action": "ClickSelf", - "next": [ - "StartButton2", - "UseMedicine", - "UseStone", - "NoStone", - "OfflineConfirm", - "AnnihilationConfirm" ] }, - "PRTS": { - "algorithm": "OcrDetect", + "PRTS3": { "text": [ "残り配置可能数" - ], - "roi": [ - 0, - 500, - 1280, - 220 - ], - "action": "DoNothing", - "postDelay": 5000, - "next": [ - "PRTS", - "PRTS3", - "EndOfAction", - "PrtsErrorConfirm", - "OfflineConfirm", - "WaitAfterPRTS" ] }, "VisitNextOcr": { - "algorithm": "OcrDetect", "text": [ "次を訪問" - ], - "action": "ClickSelf", - "roi": [ - 1080, - 570, - 195, - 130 - ], - "next": [ - "VisitLimited", - "VisitNext", - "VisitNextBlack", - "VisitNextOcr" ] }, "VisitLimited": { - "algorithm": "OcrDetect", "text": [ "上限", "達しました", "Fpは入手できません", "再訪問の場合" - ], - "action": "DoNothing", - "roi": [ - 900, - 50, - 375, - 140 - ], - "next": [ - "Home@ReturnTo" ] }, "NoFriends": { - "algorithm": "OcrDetect", "text": [ "戦友があリませれ" - ], - "roi": [ - 650, - 100, - 300, - 150 - ], - "action": "DoNothing", - "next": [ - "Home@ReturnTo" ] }, "StageDrops-Quantity": { @@ -118,15 +43,6 @@ ] }, "RecruitTags": { - "algorithm": "OcrDetect", - "fullMatch": true, - "text": [], - "roi": [ - 375, - 360, - 480, - 120 - ], "ocrReplace": [ [ "初期", @@ -243,116 +159,22 @@ ] }, "Mall": { - "algorithm": "OcrDetect", - "action": "ClickSelf", "text": [ "購買部" - ], - "roi": [ - 640, - 360, - 640, - 360 - ], - "next": [ - "CreditStoreOcr", - "Mall", - "Mall@CloseAnno", - "Mall@TodaysSupplies" ] }, "CreditStoreOcr": { - "algorithm": "OcrDetect", "text": [ "FP交換所" - ], - "roi": [ - 1000, - 0, - 280, - 300 - ], - "action": "ClickSelf", - "next": [ - "CollectCredit", - "CreditStoreFailed", - "Stop" ] }, "CreditShop-NoMoney": { - "algorithm": "OcrDetect", "text": [ "足りません", "FPが" - ], - "roi": [ - 940, - 60, - 339, - 110 - ] - }, - "Award": { - "template": "Task.png", - "action": "ClickSelf", - "roi": [ - 650, - 500, - 250, - 170 - ], - "next": [ - "ReceiveAward", - "DailyTask", - "WeeklyTask", - "Award" - ] - }, - "AwardFinished": { - "action": "Stop", - "roi": [ - 400, - 0, - 880, - 150 - ], - "maskRange": [ - 1, - 255 - ] - }, - "DailyTask": { - "action": "ClickSelf", - "cache": false, - "roi": [ - 400, - 0, - 880, - 150 - ], - "next": [ - "ReceiveAward", - "WeeklyTask" - ] - }, - "WeeklyTask": { - "action": "ClickSelf", - "cache": false, - "roi": [ - 400, - 0, - 880, - 150 - ], - "next": [ - "ReceiveAward", - "Stop" ] }, "BattleStageName": { - "algorithm": "OcrDetect", - "cache": false, - "text": [], "Doc": "该任务的 ocrReplace 被所有涉及肉鴿地圖名的日文识别任务复用", "ocrReplace": [ [ @@ -555,17 +377,9 @@ "'Knights' Duel'", "“骑士对决”" ] - ], - "roi": [ - 250, - 435, - 800, - 100 ] }, "CharsNameOcrReplace": { - "algorithm": "OcrDetect", - "text": [], "Doc": "该任务的 ocrReplace 被所有涉及干员名的日文识别任务复用", "ocrReplace": [ [ @@ -1907,8 +1721,6 @@ ] }, "NumberOcrReplace": { - "algorithm": "OcrDetect", - "text": [], "ocrReplace": [ [ "o", @@ -1933,289 +1745,36 @@ ] }, "GoLastBattle": { - "algorithm": "OcrDetect", "text": [ "前回の参加作戦" - ], - "roi": [ - 916, - 479, - 249, - 127 - ], - "action": "ClickSelf", - "next": [ - "UsePrts-Annihilation", - "UsePrts", - "UsePrts-StageSN", - "StartButton1" ] }, "StageThemeChapter3ToChapter2To1-7": { - "algorithm": "OcrDetect", - "action": "ClickSelf", "text": [ "幻滅" - ], - "roi": [ - 200, - 120, - 80, - 32 ] }, "StageThemeChapter2ToChapter1To1-7": { - "algorithm": "OcrDetect", - "action": "ClickSelf", "text": [ "覚醒" - ], - "roi": [ - 200, - 120, - 80, - 32 - ] - }, - "StagePR-A-1": { - "algorithm": "OcrDetect", - "action": "ClickSelf", - "text": [ - "Pr-A-1", - "PR-A-1" - ], - "roi": [ - 27, - 260, - 742, - 400 - ] - }, - "StagePR-A-2": { - "algorithm": "OcrDetect", - "action": "ClickSelf", - "text": [ - "Pr-A-2", - "PR-A-2" - ], - "roi": [ - 472, - 0, - 793, - 502 - ] - }, - "StagePR-B-1": { - "algorithm": "OcrDetect", - "action": "ClickSelf", - "text": [ - "Pr-B-1", - "PR-B-1" - ], - "roi": [ - 27, - 260, - 742, - 400 - ] - }, - "StagePR-B-2": { - "algorithm": "OcrDetect", - "action": "ClickSelf", - "text": [ - "Pr-B-2", - "PR-B-2" - ], - "roi": [ - 472, - 0, - 793, - 502 - ] - }, - "StagePR-C-1": { - "algorithm": "OcrDetect", - "action": "ClickSelf", - "text": [ - "Pr-C-1", - "PR-C-1" - ], - "roi": [ - 27, - 260, - 742, - 400 - ] - }, - "StagePR-C-2": { - "algorithm": "OcrDetect", - "action": "ClickSelf", - "text": [ - "Pr-C-2", - "PR-C-2" - ], - "roi": [ - 472, - 0, - 793, - 502 - ] - }, - "StagePR-D-1": { - "algorithm": "OcrDetect", - "action": "ClickSelf", - "text": [ - "Pr-D-1", - "PR-D-1" - ], - "roi": [ - 27, - 260, - 742, - 400 - ] - }, - "StagePR-D-2": { - "algorithm": "OcrDetect", - "action": "ClickSelf", - "text": [ - "Pr-D-2", - "PR-D-2" - ], - "roi": [ - 472, - 0, - 793, - 502 - ] - }, - "StageCE5": { - "algorithm": "OcrDetect", - "action": "ClickSelf", - "text": [ - "CE-5" - ], - "roi": [ - 850, - 140, - 250, - 220 - ] - }, - "StageLS5": { - "algorithm": "OcrDetect", - "action": "ClickSelf", - "text": [ - "LS-5", - "L$-5" - ], - "roi": [ - 850, - 140, - 250, - 220 - ] - }, - "StageCA5": { - "algorithm": "OcrDetect", - "action": "ClickSelf", - "text": [ - "CA-5" - ], - "roi": [ - 850, - 140, - 250, - 220 - ] - }, - "StageAP5": { - "algorithm": "OcrDetect", - "action": "ClickSelf", - "text": [ - "AP-5" - ], - "roi": [ - 850, - 140, - 250, - 220 - ] - }, - "CE-6": { - "algorithm": "JustReturn", - "action": "DoNothing", - "sub": [ - "StageResource", - "SwipeToTheLeft", - "StageCE", - "StageCE5" - ] - }, - "LS-6": { - "algorithm": "JustReturn", - "action": "DoNothing", - "sub": [ - "StageResource", - "SwipeToTheLeft", - "StageLS", - "StageLS5" ] }, "StartRecruit": { - "algorithm": "OcrDetect", - "action": "ClickSelf", - "postDelay": 500, "text": [ "求人開始" - ], - "roi": [ - 0, - 300, - 1280, - 420 ] }, "RecruitFlag": { - "algorithm": "OcrDetect", "text": [ "公開求人" - ], - "roi": [ - 50, - 100, - 230, - 100 - ], - "action": "Stop" + ] }, "RecruitNow": { - "algorithm": "OcrDetect", - "action": "ClickSelf", - "postDelay": 500, - "cache": false, "text": [ "緊急招集" - ], - "roi": [ - 0, - 300, - 1280, - 420 - ], - "next": [ - "RecruitNowConfirm" ] }, "RoguelikeCustom-HijackSquad": { - "algorithm": "OcrDetect", - "text": [], - "roi": [ - 0, - 383, - 1280, - 142 - ], "ocrReplace": [ [ "指揮分隊", @@ -2260,14 +1819,6 @@ ] }, "RoguelikeCustom-HijackRoles": { - "algorithm": "OcrDetect", - "text": [], - "roi": [ - 54, - 356, - 1172, - 183 - ], "ocrReplace": [ [ "自由自在", @@ -2288,14 +1839,6 @@ ] }, "RoguelikeCustom-HijackCoChar": { - "algorithm": "OcrDetect", - "text": [], - "roi": [ - 186, - 298, - 913, - 200 - ], "ocrReplace": [ [ "術師", @@ -2329,8 +1872,7 @@ "前衛", "近卫" ] - ], - "preDelay": 1000 + ] }, "RoguelikeRecruitLevel": { "template": "empty.png", @@ -2343,14 +1885,6 @@ ] }, "RoguelikeTraderShoppingOcr": { - "algorithm": "OcrDetect", - "text": [], - "roi": [ - -120, - -160, - 190, - 35 - ], "ocrReplace": [ [ "前衛昇進券", diff --git a/resource/global/YoStarKR/resource/tasks.json b/resource/global/YoStarKR/resource/tasks.json index 0e5a037e75..79cee883e7 100644 --- a/resource/global/YoStarKR/resource/tasks.json +++ b/resource/global/YoStarKR/resource/tasks.json @@ -1,65 +1,13 @@ { "StartButton1": { - "algorithm": "OcrDetect", "text": [ "작전개시" - ], - "cache": false, - "preDelay": 500, - "roi": [ - 1000, - 600, - 280, - 120 - ], - "exceededNext": [ - "StageSNReturnFlag", - "Stop" - ], - "action": "ClickSelf", - "next": [ - "StartButton2", - "UseMedicine", - "UseStone", - "NoStone", - "OfflineConfirm", - "AnnihilationConfirm" ] }, - "PRTS": { - "algorithm": "OcrDetect", + "PRTS3": { "text": [ "배치가능", "인원" - ], - "roi": [ - 0, - 500, - 1280, - 220 - ], - "action": "DoNothing", - "postDelay": 5000, - "next": [ - "PRTS", - "PRTS3", - "EndOfAction", - "PrtsErrorConfirm", - "OfflineConfirm", - "WaitAfterPRTS" - ] - }, - "EndOfAction": { - "Doc": "This task registered the StageDropsTaskPlugin", - "roi": [ - 791, - 410, - 296, - 145 - ], - "action": "DoNothing", - "next": [ - "ClickCorner" ] } } diff --git a/resource/global/YoStarKR/resource/template/EndOfAction.png b/resource/global/YoStarKR/resource/template/EndOfAction.png deleted file mode 100644 index 8210515825056d4e42cb661338f764d4b322418e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 7206 zcmZu$c{tR4_a00dA~T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*Rdo}T5hNbj1kF$q3$N!5nF8}5u7ZLg@;sEm5V(OcOEZ=lmU3D=451LLzC0d^ zv$_aeA$8+mz$!Q#_y88f@Ni(c&iIjhokYH85s&0+=D{&R Date: Wed, 2 Nov 2022 22:05:31 +0800 Subject: [PATCH 3/3] fix: fix resource load failed for ZH_CHT and JP client --- resource/global/YoStarJP/resource/tasks.json | 4 ++-- resource/global/txwy/resource/tasks.json | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/resource/global/YoStarJP/resource/tasks.json b/resource/global/YoStarJP/resource/tasks.json index a6946c558d..067e041c29 100644 --- a/resource/global/YoStarJP/resource/tasks.json +++ b/resource/global/YoStarJP/resource/tasks.json @@ -1749,12 +1749,12 @@ "前回の参加作戦" ] }, - "StageThemeChapter3ToChapter2To1-7": { + "ToChapter2": { "text": [ "幻滅" ] }, - "StageThemeChapter2ToChapter1To1-7": { + "ToChapter1": { "text": [ "覚醒" ] diff --git a/resource/global/txwy/resource/tasks.json b/resource/global/txwy/resource/tasks.json index 3468063238..085595577e 100644 --- a/resource/global/txwy/resource/tasks.json +++ b/resource/global/txwy/resource/tasks.json @@ -35,7 +35,7 @@ "立即招" ] }, - "FromIntegratedStrategies": { + "Roguelike@FromIntegratedStrategies": { "text": [ "進入主題" ] @@ -1151,7 +1151,7 @@ ] ] }, - "Roguelike1Custom-HijackSquad": { + "RoguelikeCustom-HijackSquad": { "ocrReplace": [ [ "指.*分.*", @@ -1195,7 +1195,7 @@ ] ] }, - "Roguelike1Custom-HijackRoles": { + "RoguelikeCustom-HijackRoles": { "ocrReplace": [ [ "先手必勝", @@ -1219,7 +1219,7 @@ ] ] }, - "Roguelike1Custom-HijackCoChar": { + "RoguelikeCustom-HijackCoChar": { "ocrReplace": [ [ "術師",