Browse Source

六道之门修正boss战失败资源

1 更新失败提示的资源,提高识别正确率。
2 失败以后卡住不动,失败以后检测不到成功的极样式,增加失败的图像资源。代码里面同步增加判断。

(cherry picked from commit 2793090e64947fada5a0f664d331d2565bea9e17)
davidyangkunlong 4 days ago
parent
commit
49e79e736d

+ 10 - 3
tasks/SixRealms/assets.py

@@ -34,10 +34,17 @@ class SixRealmsAssets:
 	I_BOSS_SHARE = RuleImage(roi_front=(1090,604,70,74), roi_back=(1074,587,100,100), threshold=0.8, method="Template matching", file="./tasks/SixRealms/gate1/gate1_boss_share.png")
 	# 结算的椒图 
 	I_BOSS_SHUTU = RuleImage(roi_front=(108,141,173,122), roi_back=(108,141,173,122), threshold=0.8, method="Template matching", file="./tasks/SixRealms/gate1/gate1_boss_shutu.png")
-	# description 
+	I_BOSS_SHUTU2 = RuleImage(roi_front=(108, 141, 173, 122), roi_back=(108, 141, 173, 122), threshold=0.8,
+	                         method="Template matching", file="./tasks/SixRealms/gate1/gate1_boss_shutu2.png")
+	# description
+	# description
 	I_BOSS_BATTLE_AGAIN = RuleImage(roi_front=(435,403,173,64), roi_back=(409,390,212,100), threshold=0.8, method="Template matching", file="./tasks/SixRealms/gate1/gate1_boss_battle_again.png")
-	# description 
-	I_BOSS_BATTLE_GIVEUP = RuleImage(roi_front=(671,399,175,59), roi_back=(649,381,219,100), threshold=0.8, method="Template matching", file="./tasks/SixRealms/gate1/gate1_boss_battle_giveup.png")
+
+	# description
+	#I_BOSS_BATTLE_GIVEUP = RuleImage(roi_front=(671,399,175,59), roi_back=(649,381,219,100), threshold=0.8, method="Template matching", file="./tasks/SixRealms/gate1/gate1_boss_battle_giveup.png")
+	I_BOSS_BATTLE_GIVEUP = RuleImage(roi_front=(664, 409, 175, 59), roi_back=(649, 391, 219, 100), threshold=0.8,
+	                                 method="Template matching",
+	                                 file="./tasks/SixRealms/gate1/gate1_boss_battle_giveup.png")
 
 
 	# Click Rule Assets

BIN
tasks/SixRealms/gate1/gate1_boss_battle_giveup.png


BIN
tasks/SixRealms/gate1/gate1_boss_shutu2.png


+ 3 - 1
tasks/SixRealms/moon_sea/moon_sea.py

@@ -222,8 +222,10 @@ class MoonSea(MoonSeaMap, MoonSeaL101, MoonSeaL102, MoonSeaL103, MoonSeaL104, Mo
                 self.device.stuck_record_add('BATTLE_STATUS_S')
                 continue
         logger.info('Boss battle end')
-        if self.wait_until_appear(self.I_BOSS_SHUTU, wait_time=20):
+        if self.wait_until_appear(self.I_BOSS_SHUTU, wait_time=6):
             self.ui_click(self.I_BOSS_SHUTU, stop=self.I_MSTART)
+        elif self.wait_until_appear(self.I_BOSS_SHUTU2, wait_time=6):
+            self.ui_click(self.I_BOSS_SHUTU2, stop=self.I_MSTART)
         return True
 
     def select_shikigami_and_confirm(self):