Просмотр исходного кода

feat(SoulsTidy): remove abandoned not selected asset and update related code

Migs 1 год назад
Родитель
Сommit
e5304cda99

+ 0 - 2
tasks/SoulsTidy/assets.py

@@ -48,8 +48,6 @@ class SoulsTidyAssets:
 	I_ST_LEVEL_0 = RuleImage(roi_front=(85,235,45,30), roi_back=(85,235,45,30), threshold=0.9, method="Template matching", file="./tasks/SoulsTidy/simple/simple_st_level_0.png")
 	# 御魂奉纳后获得的金币 
 	I_ST_GOLD = RuleImage(roi_front=(170,100,950,500), roi_back=(170,100,950,500), threshold=0.9, method="Template matching", file="./tasks/SoulsTidy/simple/simple_st_gold.png")
-	# description 
-	I_ST_ABANDONED_NOT_SELECTED = RuleImage(roi_front=(22,108,243,56), roi_back=(21,106,245,60), threshold=0.8, method="Template matching", file="./tasks/SoulsTidy/simple/simple_st_abandoned_not_selected.png")
 
 
 	# Long Click Rule Assets

+ 3 - 0
tasks/SoulsTidy/script_task.py

@@ -99,11 +99,14 @@ class ScriptTask(GameUi, SoulsTidyAssets):
                 continue
         logger.hr('Enter bongna')
         # 进入已弃置界面
+        """
+        现在默认进入就是已弃置界面,所以不需要点击
         while True:
             if self.appear(self.I_ST_ABANDONED_NOT_SELECTED):
                 self.click(self.I_ST_ABANDONED_SELECTED, interval=2)
                 continue
             break
+        """
         # 确保是按照等级来排序的
         while 1:
             self.screenshot()

+ 0 - 9
tasks/SoulsTidy/simple/image.json

@@ -133,14 +133,5 @@
     "method": "Template matching",
     "threshold": 0.9,
     "description": "御魂奉纳后获得的金币"
-  },
-  {
-    "itemName": "st_abandoned_not_selected",
-    "imageName": "simple_st_abandoned_not_selected.png",
-    "roiFront": "22,108,243,56",
-    "roiBack": "21,106,245,60",
-    "method": "Template matching",
-    "threshold": 0.8,
-    "description": "description"
   }
 ]

BIN
tasks/SoulsTidy/simple/image_name.png