فهرست منبع

feat: 适配龙吟溯玉皮肤

chubbycat 1 سال پیش
والد
کامیت
489b766f97

+ 13 - 0
tasks/Component/Costume/assets.py

@@ -49,6 +49,19 @@ class CostumeAssets:
 	I_PET_HOUSE_11 = RuleImage(roi_front=(966,323,29,29), roi_back=(724,295,440,69), threshold=0.8, method="Template matching", file="./tasks/Component/Costume/main11/main11_pet_house_11.png")
 	I_PET_HOUSE_11 = RuleImage(roi_front=(966,323,29,29), roi_back=(724,295,440,69), threshold=0.8, method="Template matching", file="./tasks/Component/Costume/main11/main11_pet_house_11.png")
 
 
 
 
+	# Image Rule Assets
+	# description 
+	I_CHECK_MAIN_12 = RuleImage(roi_front=(937,487,49,31), roi_back=(78,474,1099,100), threshold=0.8, method="Template matching", file="./tasks/Component/Costume/main12/main12_check_main_12.png")
+	# 探索 
+	I_MAIN_GOTO_EXPLORATION_12 = RuleImage(roi_front=(557,142,20,34), roi_back=(192,123,904,66), threshold=0.6, method="Template matching", file="./tasks/Component/Costume/main12/main12_main_goto_exploration_12.png")
+	# 召唤屋 
+	I_MAIN_GOTO_SUMMON_12 = RuleImage(roi_front=(975,153,20,37), roi_back=(505,136,623,68), threshold=0.6, method="Template matching", file="./tasks/Component/Costume/main12/main12_main_goto_summon_12.png")
+	# 町中 
+	I_MAIN_GOTO_TOWN_12 = RuleImage(roi_front=(725,199,23,42), roi_back=(263,185,999,78), threshold=0.7, method="Template matching", file="./tasks/Component/Costume/main12/main12_main_goto_town_12.png")
+	# 宠物室 
+	I_PET_HOUSE_12 = RuleImage(roi_front=(832,275,31,25), roi_back=(742,240,176,109), threshold=0.6, method="Template matching", file="./tasks/Component/Costume/main12/main12_pet_house_12.png")
+
+
 	# Image Rule Assets
 	# Image Rule Assets
 	# description 
 	# description 
 	I_CHECK_MAIN_2 = RuleImage(roi_front=(1090,146,48,55), roi_back=(880,108,271,100), threshold=0.8, method="Template matching", file="./tasks/Component/Costume/main2/main2_check_main_2.png")
 	I_CHECK_MAIN_2 = RuleImage(roi_front=(1090,146,48,55), roi_back=(880,108,271,100), threshold=0.8, method="Template matching", file="./tasks/Component/Costume/main2/main2_check_main_2.png")

+ 1 - 0
tasks/Component/Costume/config.py

@@ -18,6 +18,7 @@ class MainType(str, Enum):
     COSTUME_MAIN_9 = 'costume_main_9'  # 结缘神社
     COSTUME_MAIN_9 = 'costume_main_9'  # 结缘神社
     COSTUME_MAIN_10 = 'costume_main_10'  # 望月幽庭
     COSTUME_MAIN_10 = 'costume_main_10'  # 望月幽庭
     COSTUME_MAIN_11 = 'costume_main_11'  # 鏖刀禁府
     COSTUME_MAIN_11 = 'costume_main_11'  # 鏖刀禁府
+    COSTUME_MAIN_12 = 'costume_main_12'  # 鏖刀禁府
 
 
 # 结界皮肤
 # 结界皮肤
 class RealmType(str, Enum):
 class RealmType(str, Enum):

+ 1 - 1
tasks/Component/Costume/costume_base.py

@@ -20,7 +20,7 @@ main_costume_model = {
         'I_MAIN_GOTO_SUMMON': f'I_MAIN_GOTO_SUMMON_{i}',
         'I_MAIN_GOTO_SUMMON': f'I_MAIN_GOTO_SUMMON_{i}',
         'I_MAIN_GOTO_TOWN': f'I_MAIN_GOTO_TOWN_{i}',
         'I_MAIN_GOTO_TOWN': f'I_MAIN_GOTO_TOWN_{i}',
         'I_PET_HOUSE': f'I_PET_HOUSE_{i}'
         'I_PET_HOUSE': f'I_PET_HOUSE_{i}'
-    } for i in range(1, 12)
+    } for i in range(1, 13)
 }
 }
 
 
 
 

+ 47 - 0
tasks/Component/Costume/main12/image.json

@@ -0,0 +1,47 @@
+[
+  {
+    "itemName": "check_main_12",
+    "imageName": "main12_check_main_12.png",
+    "roiFront": "937,487,49,31",
+    "roiBack": "78,474,1099,100",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "main_goto_exploration_12",
+    "imageName": "main12_main_goto_exploration_12.png",
+    "roiFront": "557,142,20,34",
+    "roiBack": "192,123,904,66",
+    "method": "Template matching",
+    "threshold": 0.6,
+    "description": "探索"
+  },
+  {
+    "itemName": "main_goto_summon_12",
+    "imageName": "main12_main_goto_summon_12.png",
+    "roiFront": "975,153,20,37",
+    "roiBack": "505,136,623,68",
+    "method": "Template matching",
+    "threshold": 0.6,
+    "description": "召唤屋"
+  },
+  {
+    "itemName": "main_goto_town_12",
+    "imageName": "main12_main_goto_town_12.png",
+    "roiFront": "725,199,23,42",
+    "roiBack": "263,185,999,78",
+    "method": "Template matching",
+    "threshold": 0.7,
+    "description": "町中"
+  },
+  {
+    "itemName": "pet_house_12",
+    "imageName": "main12_pet_house_12.png",
+    "roiFront": "832,275,31,25",
+    "roiBack": "742,240,176,109",
+    "method": "Template matching",
+    "threshold": 0.6,
+    "description": "宠物室"
+  }
+]

BIN
tasks/Component/Costume/main12/main12_check_main_12.png


BIN
tasks/Component/Costume/main12/main12_main_goto_exploration_12.png


BIN
tasks/Component/Costume/main12/main12_main_goto_summon_12.png


BIN
tasks/Component/Costume/main12/main12_main_goto_town_12.png


BIN
tasks/Component/Costume/main12/main12_pet_house_12.png