Explorar el Código

Add EvoZone function

TripleEarth hace 3 años
padre
commit
a6d98a1912

+ 2 - 2
tasks/EvoZone/assets.py

@@ -16,9 +16,9 @@ class EvoZoneAssets:
 	# 组队 
 	I_FORM_TEAM = RuleImage(roi_front=(937,591,100,100), roi_back=(937,591,100,100), threshold=0.8, method="Template matching", file="./tasks/EvoZone/o/o_form_team.png")
 	# description 
-	I_EVOZONE_LOCK = RuleImage(roi_front=(573,559,31,32), roi_back=(548,554,65,54), threshold=0.8, method="Template matching", file="./tasks/EvoZone/o/o_evozone_lock.png")
+	I_EVOZONE_LOCK = RuleImage(roi_front=(558,565,31,32), roi_back=(548,554,53,54), threshold=0.8, method="Template matching", file="./tasks/EvoZone/o/o_evozone_lock.png")
 	# description 
-	I_EVOZONE_UNLOCK = RuleImage(roi_front=(575,558,26,29), roi_back=(560,553,56,40), threshold=0.8, method="Template matching", file="./tasks/EvoZone/o/o_evozone_unlock.png")
+	I_EVOZONE_UNLOCK = RuleImage(roi_front=(560,565,26,29), roi_back=(551,557,43,45), threshold=0.8, method="Template matching", file="./tasks/EvoZone/o/o_evozone_unlock.png")
 	# 点击挑战 
 	I_EVOZONE_FIRE = RuleImage(roi_front=(1095,577,131,124), roi_back=(1095,577,131,124), threshold=0.6, method="Template matching", file="./tasks/EvoZone/o/o_evozone_fire.png")
 	# 式神录 

+ 4 - 4
tasks/EvoZone/o/image.json

@@ -20,8 +20,8 @@
   {
     "itemName": "evozone_lock",
     "imageName": "o_evozone_lock.png",
-    "roiFront": "573,559,31,32",
-    "roiBack": "548,554,65,54",
+    "roiFront": "558,565,31,32",
+    "roiBack": "548,554,53,54",
     "method": "Template matching",
     "threshold": 0.8,
     "description": "description"
@@ -29,8 +29,8 @@
   {
     "itemName": "evozone_unlock",
     "imageName": "o_evozone_unlock.png",
-    "roiFront": "575,558,26,29",
-    "roiBack": "560,553,56,40",
+    "roiFront": "560,565,26,29",
+    "roiBack": "551,557,43,45",
     "method": "Template matching",
     "threshold": 0.8,
     "description": "description"

BIN
tasks/EvoZone/o/o_evozone_lock.png


BIN
tasks/EvoZone/o/o_evozone_unlock.png


+ 3 - 0
tasks/EvoZone/script_task.py

@@ -127,8 +127,11 @@ class ScriptTask(GeneralBattle, GeneralInvite, GeneralBuff, GeneralRoom, GameUi,
         self.ui_goto(page_awake_zones)
         self.evozone_enter()
         layer = self.config.evo_zone.evo_zone_config.layer
+        logger.info("test0")
         self.check_layer(layer)
+        logger.info("test1")
         self.check_lock(self.config.evo_zone.general_battle_config.lock_team_enable)
+        logger.info("test2")
         # 创建队伍
         logger.info('Create team')
         while 1: