From b5389cbf007e987c183fdad8de18e5a43d614b76 Mon Sep 17 00:00:00 2001 From: Windsland <86581225+Windsland52@users.noreply.github.com> Date: Sun, 17 Nov 2024 13:14:49 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E8=87=AA=E5=8A=A8=E6=B7=B1?= =?UTF-8?q?=E7=9C=A0=20(#246)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 重构部分代码,增强深眠运行稳定性。 主要是为战斗失败后添加奖励领取(上半成功但下半失败)以及完善深眠片段上下半的判断逻辑。 --- .../ArtificialSleepwalkingCloseAwards.png | Bin 9297 -> 0 bytes ...tainedAwards.png => ObtainedAllAwards.png} | Bin .../base/image/Limbo/ObtainedAwards.png | Bin 0 -> 3070 bytes assets/resource/base/pipeline/limbo.json | 175 ++++++++++++++++-- 4 files changed, 158 insertions(+), 17 deletions(-) delete mode 100644 assets/resource/base/image/Limbo/ArtificialSleepwalkingCloseAwards.png rename assets/resource/base/image/Limbo/{LimboObtainedAwards.png => ObtainedAllAwards.png} (100%) create mode 100644 assets/resource/base/image/Limbo/ObtainedAwards.png diff --git a/assets/resource/base/image/Limbo/ArtificialSleepwalkingCloseAwards.png b/assets/resource/base/image/Limbo/ArtificialSleepwalkingCloseAwards.png deleted file mode 100644 index ad5ee00b0a310c0ab6b5c3a95c3ed9335647f833..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 9297 zcmXw9c|26#|2AVV6EVh`bw(4iL?T5omTJbHh-BYoDIv)+mdRGKZ$${%_sYJnSyCfW zjQK=pY-8WX%zUTc>-GEN-uu_R_ni0pd7k(4KIg=l7~ML3O6U|56Vqu7TGy2EOk-R! zU?AiE>+NDR6BC>XqpM~16ky#Q*YKV#D33%5n_?7h#u%MRcNV#2*SSiLxu zUae!+X~V8#tL%i48 z6X*kje&9*fE@HkLp`3KJ+yEG#9gB;TG`pwv%4SiKW8q3zx z0lER^;nR-Q!;Gr*+NYT61Xf_m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CDa^YjLXm<9x&206Z z`tZY@sl>BA1QYmtzYScM%|TXd`Fs49yGcoY#Wh#gK!?{PmLv|gqxv@sqqD8&?ID+T zG8I^nrGj4v=-+`rS67H`kgh^hpH4}ap|o4qv~N%B{BN{2^rcgzd^}r!RrRIq#SK2U zS@)YwX+}TeF9HD`ty|J={L8<+*x7mKnWx*CFD;#az^%-u2`KEVoEh)b`^7ja#DuwF Kq+6|RANfCCBDEy| diff --git a/assets/resource/base/image/Limbo/LimboObtainedAwards.png b/assets/resource/base/image/Limbo/ObtainedAllAwards.png similarity index 100% rename from assets/resource/base/image/Limbo/LimboObtainedAwards.png rename to assets/resource/base/image/Limbo/ObtainedAllAwards.png diff --git a/assets/resource/base/image/Limbo/ObtainedAwards.png b/assets/resource/base/image/Limbo/ObtainedAwards.png new file mode 100644 index 0000000000000000000000000000000000000000..cd8b3955e77a64616873293e02f13b7b4cbb20bc GIT binary patch literal 3070 zcmVr5|Yp)Eb=Ra`mR3L!LccjGoqL)s6Urqi@v z_tQ!H1Exunru{f+C&6tuF`*MZz6;utD`}fcLkOuGg6nz4b%X1=nfvLduh0Ck>m*IT zP$V7?=O6#=?*kB$5CVh{NQf>8AwY=hB*aEyqW}?d00XYE#=+RA-D=Xj)Z(6RM%f%s z;JPlZ8^O!~0|Xd`ff+`~Ff+g~3^T(pT=0>E5TZ*$2qBON3DF}VLSi65+(g_UKwRTS z0U~sz)4}sRE?sWn4n=t2zATRGG9ZK`3Zfo9f?(ezyUVJV|+V0j3k6uWgvt@ z$Or%j(IW^991IY`FoXcZ2nk{Ixk7*lNn(}g5}^R`br>>Z$Rc2X8AyCp0m8x9ND^iS z0+}$nL`Z~$KtlATlQ|F|2!H?xfB+F7ZYPikBmxtGiNJ&mWFSBi0k;+a0U|&IKmY`E z2@nJb5E4B?^a&vl7!n}FMq=COAMq!L{)VS^|A^lk&hn)M2m--@JwIVvVHfKKhyW2F z0*M|00>lmOPmgk2;yM9hK&)}a8X-UoWK(&P@f4%EB6EvV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Pf5VfB^<(xLjv|7%)H}R(-N`iut7z z+^x?WOMKo~;%=Q^uJF>~f8wg|aaRNwT?PUS3^4j!y37nogbYIn17wCH2oM-JVpV_< zau5SD?pi>f0f8Vu$m|FLGed3pf}KhJ*3g_JbIPVHk#C7{-pVCwSq&&u|20h6A+Q%RIa9 zMSQi%X0mLGCHSi!{{xA5iU9b-!lV4?z+dCI#(>dh7?@!gYYYSaAH^DYU^q5|h5!Hn M07*qoM6N<$g4~syI{*Lx literal 0 HcmV?d00001 diff --git a/assets/resource/base/pipeline/limbo.json b/assets/resource/base/pipeline/limbo.json index cfbcfbac..27c59f59 100644 --- a/assets/resource/base/pipeline/limbo.json +++ b/assets/resource/base/pipeline/limbo.json @@ -3,14 +3,15 @@ "doc": "深眠任务开始", "next": [ "LimboEnd", + "LimboStageFlag", "LimboStageRightest" ], "interrupt": [ "LimboEntry", "ObtainedAwards", - "ArtificialSleepwalkingCloseAwards", "ArtificialSleepwalkingAwards", "EnterTheShow", + "ClickBlank", "ArtificialSleepwalking", "ReturnMain" ] @@ -40,15 +41,21 @@ ], "action": "Click" }, - "ArtificialSleepwalkingCloseAwards": { - "recognition": "TemplateMatch", - "template": "Limbo/ArtificialSleepwalkingCloseAwards.png", + "ClickBlank": { + "doc": "点击空白关闭", + "recognition": "OCR", + "expected": [ + "点击", + "空白", + "关闭" + ], "roi": [ - 511, - 578, - 248, - 142 + 569, + 660, + 121, + 27 ], + "only_rec": true, "action": "Click" }, "LimboEntry": { @@ -106,8 +113,44 @@ "LimboStageFlag" ] }, + "LimboStageFlag_AfterFailed": { + "doc": "判断当前位于深眠片段(After Failed)", + "recognition": "OCR", + "expected": "本层酬劳", + "roi": [ + 146, + 676, + 67, + 21 + ], + "only_rec": true, + "action": "Click", + "next": [ + "LimboStarsMainFlag_AfterFailed", + "LimboStageFlag_AfterFailed" + ] + }, "LimboStarsMainFlag": { - "doc": "判断当前位于深眠试验酬劳界面,后续进行上下半判断", + "doc": "判断当前位于深眠试验酬劳界面,查看是否有奖励未领取", + "recognition": "OCR", + "expected": "深眠试验", + "roi": [ + 161, + 96, + 163, + 43 + ], + "only_rec": true, + "next": [ + "LimboStarsMainNoAwards" + ], + "interrupt": [ + "LimboStarsMainAwards", + "ObtainedAwards" + ] + }, + "LimboStarsMainFlag_AfterFailed": { + "doc": "判断当前位于深眠试验酬劳界面(After Failed)", "recognition": "OCR", "expected": "深眠试验", "roi": [ @@ -117,13 +160,97 @@ 43 ], "only_rec": true, + "next": [ + "LimboStarsMainNoAwards_AfterFailed" + ], + "interrupt": [ + "LimboStarsMainAwards", + "ObtainedAwards" + ] + }, + "LimboStarsMainNoAwards": { + "doc": "深眠试验酬劳界面,没有奖励未领取", + "recognition": "OCR", + "expected": [ + "已领取", + "未达成" + ], + "roi": [ + 1007, + 204, + 70, + 28 + ], + "only_rec": true, "next": [ "LimboStageFlag_up", "LimboStageFlag_down", - "LimboStageFlag_failed", - "LimboStageFlag" + "LimboStageFlag_failed" ] }, + "LimboStarsMainNoAwards_AfterFailed": { + "doc": "深眠试验酬劳界面,没有奖励未领取(After Failed)", + "recognition": "OCR", + "expected": [ + "已领取", + "未达成" + ], + "roi": [ + 1007, + 204, + 70, + 28 + ], + "only_rec": true, + "target": [ + 681, + 707, + 85, + 43 + ], + "action": "Click", + "next": [ + "LimboMain", + "LimboStarsMainNoAwards_AfterFailed" + ] + }, + "LimboStarsMainAwards": { + "doc": "深眠试验酬劳界面,点击全部领取/领取", + "recognition": "TemplateMatch", + "template": [ + "Limbo/ObtainedAllAwards.png", + "Limbo/ObtainedAwards.png" + ], + "roi": [ + 941, + 132, + 205, + 176 + ], + "action": "Click", + "next": [ + "LimboStarsMainNoAwardsFlag", + "LimboStarsMainAwards" + ], + "interrupt": [ + "ObtainedAwards" + ] + }, + "LimboStarsMainNoAwardsFlag": { + "doc": "判断当前位于深眠试验酬劳界面,奖励已领取完毕", + "recognition": "OCR", + "expected": [ + "已领取", + "未达成" + ], + "roi": [ + 1007, + 204, + 70, + 28 + ], + "only_rec": true + }, "LimboStageFlag_up": { "doc": "判断当前位于深眠片段上半部分", "recognition": "OCR", @@ -148,9 +275,10 @@ ] }, "LimboStageFlag_down": { - "doc": "判断当前位于深眠片段下半部分", + "doc": "判断当前位于深眠片段下半部分,未开始战斗/已完成战斗", + "_doc": "虽有上下半共3星的情况,考虑到一般情况下不会进入上下已通过(且未满星)深眠片段再运行m9a,而在外该深眠片段上下半通过便会解锁新的深眠,执行时不会进入该深眠,故此时识别的3星可视为上半3星,即下半战斗未开始状态", "recognition": "OCR", - "expected": "3/6", + "expected": "[36]/6", "roi": [ 1028, 101, @@ -173,9 +301,11 @@ }, "LimboStageFlag_failed": { "doc": "判断当前位于深眠片段上半部分未满星,结束任务", + "_doc": "经测试,上下半各一星时,会解锁下一深眠", + "__doc": "参考LimboStageFlag_down _doc,虽已确定不会出现检测到[45]/6的情况,但为了以防万一,还是决定加上该情况的识别", "todo_doc": "后续可在这里添加重打当前深眠片段的操作", "recognition": "OCR", - "expected": "[1-2]/6", + "expected": "[1245]/6", "roi": [ 1028, 101, @@ -189,7 +319,11 @@ 85, 43 ], - "action": "Click" + "action": "Click", + "next": [ + "LimboMain", + "LimboStageFlag_failed" + ] }, "LimboStageLightest_1": { "doc": "最靓的位置,要多点几次", @@ -313,7 +447,11 @@ 78 ], "only_rec": true, - "action": "Click" + "action": "Click", + "next": [ + "LimboStageFlag_AfterFailed", + "LimboFailed" + ] }, "LimboVictory_1": { "doc": "深眠战斗成功_1", @@ -518,7 +656,10 @@ }, "LimboObtainedAwards_1": { "recognition": "TemplateMatch", - "template": "Limbo/LimboObtainedAwards.png", + "template": [ + "Limbo/ObtainedAllAwards.png", + "Limbo/ObtainedAwards.png" + ], "roi": [ 941, 132,