Bläddra i källkod

feat(Component):增加幕间“花札幕台”

smallwin-jq 2 månader sedan
förälder
incheckning
193aa39f38
24 ändrade filer med 227 tillägg och 1 borttagningar
  1. 1 0
      tasks/Component/Costume/config.py
  2. 1 1
      tasks/Component/Costume/costume_base.py
  3. 43 0
      tasks/Component/CostumeShikigami/assets.py
  4. 182 0
      tasks/Component/CostumeShikigami/sk11/image.json
  5. BIN
      tasks/Component/CostumeShikigami/sk11/sk11_check_records_11.png
  6. BIN
      tasks/Component/CostumeShikigami/sk11/sk11_record_soul_back_11.png
  7. BIN
      tasks/Component/CostumeShikigami/sk11/sk11_sou_check_group_1_11.png
  8. BIN
      tasks/Component/CostumeShikigami/sk11/sk11_sou_check_group_2_11.png
  9. BIN
      tasks/Component/CostumeShikigami/sk11/sk11_sou_check_group_3_11.png
  10. BIN
      tasks/Component/CostumeShikigami/sk11/sk11_sou_check_group_4_11.png
  11. BIN
      tasks/Component/CostumeShikigami/sk11/sk11_sou_check_group_5_11.png
  12. BIN
      tasks/Component/CostumeShikigami/sk11/sk11_sou_check_group_6_11.png
  13. BIN
      tasks/Component/CostumeShikigami/sk11/sk11_sou_check_group_7_11.png
  14. BIN
      tasks/Component/CostumeShikigami/sk11/sk11_sou_check_in_11.png
  15. BIN
      tasks/Component/CostumeShikigami/sk11/sk11_sou_click_present_11.png
  16. BIN
      tasks/Component/CostumeShikigami/sk11/sk11_sou_switch_1_11.png
  17. BIN
      tasks/Component/CostumeShikigami/sk11/sk11_sou_switch_2_11.png
  18. BIN
      tasks/Component/CostumeShikigami/sk11/sk11_sou_switch_3_11.png
  19. BIN
      tasks/Component/CostumeShikigami/sk11/sk11_sou_switch_4_11.png
  20. BIN
      tasks/Component/CostumeShikigami/sk11/sk11_sou_switch_sure_11.png
  21. BIN
      tasks/Component/CostumeShikigami/sk11/sk11_sou_team_present_11.png
  22. BIN
      tasks/Component/CostumeShikigami/sk11/sk11_soul_preset_11.png
  23. BIN
      tasks/Component/CostumeShikigami/sk11/sk11_st_replace_11.png
  24. BIN
      tasks/Component/CostumeShikigami/sk11/sk11_st_souls_11.png

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

@@ -51,6 +51,7 @@ class ShikigamiType(str, Enum):
     COSTUME_SHIKIGAMI_8 = 'costume_shikigami_8'  # 童梦基地
     COSTUME_SHIKIGAMI_8 = 'costume_shikigami_8'  # 童梦基地
     COSTUME_SHIKIGAMI_9 = 'costume_shikigami_9'  # 鹿眠之森
     COSTUME_SHIKIGAMI_9 = 'costume_shikigami_9'  # 鹿眠之森
     COSTUME_SHIKIGAMI_10 = 'costume_shikigami_10'  # 今宵胧明
     COSTUME_SHIKIGAMI_10 = 'costume_shikigami_10'  # 今宵胧明
+    COSTUME_SHIKIGAMI_11 = 'costume_shikigami_11'  # 花札幕台
 
 
 # 签到主题
 # 签到主题
 class SignType(str, Enum):
 class SignType(str, Enum):

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

@@ -69,7 +69,7 @@ shikigami_costume_model = {
         'I_ST_SOULS': f'I_ST_SOULS_{i}',
         'I_ST_SOULS': f'I_ST_SOULS_{i}',
         'I_ST_REPLACE': f'I_ST_REPLACE_{i}',
         'I_ST_REPLACE': f'I_ST_REPLACE_{i}',
     }
     }
-    for i in range(1, 11)  # 目前支持 COSTUME_SHIKIGAMI_1 到 COSTUME_SHIKIGAMI_10
+    for i in range(1, 12)  # 目前支持 COSTUME_SHIKIGAMI_1 到 COSTUME_SHIKIGAMI_10
 }
 }
 
 
 class CostumeBase:
 class CostumeBase:

+ 43 - 0
tasks/Component/CostumeShikigami/assets.py

@@ -96,6 +96,49 @@ class CostumeShikigamiAssets:
 	I_ST_REPLACE_10 = RuleImage(roi_front=(878,224,63,39), roi_back=(855,175,110,130), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk10/sk10_st_replace_10.png")
 	I_ST_REPLACE_10 = RuleImage(roi_front=(878,224,63,39), roi_back=(855,175,110,130), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk10/sk10_st_replace_10.png")
 
 
 
 
+	# Image Rule Assets
+	# description 
+	I_CHECK_RECORDS_11 = RuleImage(roi_front=(276,81,31,36), roi_back=(269,73,44,48), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk11/sk11_check_records_11.png")
+	# description 
+	I_RECORD_SOUL_BACK_11 = RuleImage(roi_front=(17,13,43,47), roi_back=(12,10,52,55), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk11/sk11_record_soul_back_11.png")
+	# description 
+	I_SOU_CHECK_GROUP_1_11 = RuleImage(roi_front=(1095,83,14,50), roi_back=(1092,81,21,55), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk11/sk11_sou_check_group_1_11.png")
+	# description 
+	I_SOU_CHECK_GROUP_2_11 = RuleImage(roi_front=(1095,155,14,39), roi_back=(1092,149,20,51), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk11/sk11_sou_check_group_2_11.png")
+	# description 
+	I_SOU_CHECK_GROUP_3_11 = RuleImage(roi_front=(1096,225,8,50), roi_back=(1093,220,17,56), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk11/sk11_sou_check_group_3_11.png")
+	# description 
+	I_SOU_CHECK_GROUP_4_11 = RuleImage(roi_front=(1093,295,11,47), roi_back=(1090,293,19,51), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk11/sk11_sou_check_group_4_11.png")
+	# description 
+	I_SOU_CHECK_GROUP_5_11 = RuleImage(roi_front=(1093,364,16,49), roi_back=(1092,361,19,55), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk11/sk11_sou_check_group_5_11.png")
+	# description 
+	I_SOU_CHECK_GROUP_6_11 = RuleImage(roi_front=(1093,442,14,37), roi_back=(1088,437,24,48), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk11/sk11_sou_check_group_6_11.png")
+	# description 
+	I_SOU_CHECK_GROUP_7_11 = RuleImage(roi_front=(1093,506,6,41), roi_back=(1091,500,13,53), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk11/sk11_sou_check_group_7_11.png")
+	# description 
+	I_SOU_SWITCH_1_11 = RuleImage(roi_front=(977,138,32,30), roi_back=(969,129,48,50), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk11/sk11_sou_switch_1_11.png")
+	# description 
+	I_SOU_SWITCH_2_11 = RuleImage(roi_front=(973,293,37,32), roi_back=(968,287,50,49), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk11/sk11_sou_switch_2_11.png")
+	# description 
+	I_SOU_SWITCH_3_11 = RuleImage(roi_front=(981,445,26,35), roi_back=(979,443,32,40), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk11/sk11_sou_switch_3_11.png")
+	# description 
+	I_SOU_SWITCH_4_11 = RuleImage(roi_front=(979,602,28,25), roi_back=(973,598,39,34), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk11/sk11_sou_switch_4_11.png")
+	# description 
+	I_SOU_TEAM_PRESENT_11 = RuleImage(roi_front=(734,77,100,41), roi_back=(726,71,115,54), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk11/sk11_sou_team_present_11.png")
+	# description 
+	I_SOU_SWITCH_SURE_11 = RuleImage(roi_front=(702,401,116,55), roi_back=(690,399,148,64), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk11/sk11_sou_switch_sure_11.png")
+	# description 
+	I_SOUL_PRESET_11 = RuleImage(roi_front=(342,85,74,31), roi_back=(338,77,83,44), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk11/sk11_soul_preset_11.png")
+	# description 
+	I_ST_REPLACE_11 = RuleImage(roi_front=(884,169,63,67), roi_back=(872,155,86,99), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk11/sk11_st_replace_11.png")
+	# description 
+	I_ST_SOULS_11 = RuleImage(roi_front=(1192,237,40,67), roi_back=(1182,229,59,86), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk11/sk11_st_souls_11.png")
+	# description 
+	I_SOU_CHECK_IN_11 = RuleImage(roi_front=(274,74,43,49), roi_back=(271,69,48,61), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk11/sk11_sou_check_in_11.png")
+	# description 
+	I_SOU_CLICK_PRESENT_11 = RuleImage(roi_front=(975,292,34,34), roi_back=(971,134,42,530), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk11/sk11_sou_click_present_11.png")
+
+
 	# Image Rule Assets
 	# Image Rule Assets
 	# 用于判断在式神录 
 	# 用于判断在式神录 
 	I_CHECK_RECORDS_2 = RuleImage(roi_front=(267,76,51,46), roi_back=(265,74,55,50), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk2/sk2_check_records_2.png")
 	I_CHECK_RECORDS_2 = RuleImage(roi_front=(267,76,51,46), roi_back=(265,74,55,50), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk2/sk2_check_records_2.png")

+ 182 - 0
tasks/Component/CostumeShikigami/sk11/image.json

@@ -0,0 +1,182 @@
+[
+  {
+    "itemName": "check_records_11",
+    "imageName": "sk11_check_records_11.png",
+    "roiFront": "276,81,31,36",
+    "roiBack": "269,73,44,48",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "record_soul_back_11",
+    "imageName": "sk11_record_soul_back_11.png",
+    "roiFront": "17,13,43,47",
+    "roiBack": "12,10,52,55",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_check_group_1_11",
+    "imageName": "sk11_sou_check_group_1_11.png",
+    "roiFront": "1095,83,14,50",
+    "roiBack": "1092,81,21,55",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_check_group_2_11",
+    "imageName": "sk11_sou_check_group_2_11.png",
+    "roiFront": "1095,155,14,39",
+    "roiBack": "1092,149,20,51",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_check_group_3_11",
+    "imageName": "sk11_sou_check_group_3_11.png",
+    "roiFront": "1096,225,8,50",
+    "roiBack": "1093,220,17,56",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_check_group_4_11",
+    "imageName": "sk11_sou_check_group_4_11.png",
+    "roiFront": "1093,295,11,47",
+    "roiBack": "1090,293,19,51",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_check_group_5_11",
+    "imageName": "sk11_sou_check_group_5_11.png",
+    "roiFront": "1093,364,16,49",
+    "roiBack": "1092,361,19,55",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_check_group_6_11",
+    "imageName": "sk11_sou_check_group_6_11.png",
+    "roiFront": "1093,442,14,37",
+    "roiBack": "1088,437,24,48",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_check_group_7_11",
+    "imageName": "sk11_sou_check_group_7_11.png",
+    "roiFront": "1093,506,6,41",
+    "roiBack": "1091,500,13,53",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_switch_1_11",
+    "imageName": "sk11_sou_switch_1_11.png",
+    "roiFront": "977,138,32,30",
+    "roiBack": "969,129,48,50",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_switch_2_11",
+    "imageName": "sk11_sou_switch_2_11.png",
+    "roiFront": "973,293,37,32",
+    "roiBack": "968,287,50,49",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_switch_3_11",
+    "imageName": "sk11_sou_switch_3_11.png",
+    "roiFront": "981,445,26,35",
+    "roiBack": "979,443,32,40",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_switch_4_11",
+    "imageName": "sk11_sou_switch_4_11.png",
+    "roiFront": "979,602,28,25",
+    "roiBack": "973,598,39,34",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_team_present_11",
+    "imageName": "sk11_sou_team_present_11.png",
+    "roiFront": "734,77,100,41",
+    "roiBack": "726,71,115,54",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_switch_sure_11",
+    "imageName": "sk11_sou_switch_sure_11.png",
+    "roiFront": "702,401,116,55",
+    "roiBack": "690,399,148,64",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "soul_preset_11",
+    "imageName": "sk11_soul_preset_11.png",
+    "roiFront": "342,85,74,31",
+    "roiBack": "338,77,83,44",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "st_replace_11",
+    "imageName": "sk11_st_replace_11.png",
+    "roiFront": "884,169,63,67",
+    "roiBack": "872,155,86,99",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "st_souls_11",
+    "imageName": "sk11_st_souls_11.png",
+    "roiFront": "1192,237,40,67",
+    "roiBack": "1182,229,59,86",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_check_in_11",
+    "imageName": "sk11_sou_check_in_11.png",
+    "roiFront": "274,74,43,49",
+    "roiBack": "271,69,48,61",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_click_present_11",
+    "imageName": "sk11_sou_click_present_11.png",
+    "roiFront": "975,292,34,34",
+    "roiBack": "971,134,42,530",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  }
+]

BIN
tasks/Component/CostumeShikigami/sk11/sk11_check_records_11.png


BIN
tasks/Component/CostumeShikigami/sk11/sk11_record_soul_back_11.png


BIN
tasks/Component/CostumeShikigami/sk11/sk11_sou_check_group_1_11.png


BIN
tasks/Component/CostumeShikigami/sk11/sk11_sou_check_group_2_11.png


BIN
tasks/Component/CostumeShikigami/sk11/sk11_sou_check_group_3_11.png


BIN
tasks/Component/CostumeShikigami/sk11/sk11_sou_check_group_4_11.png


BIN
tasks/Component/CostumeShikigami/sk11/sk11_sou_check_group_5_11.png


BIN
tasks/Component/CostumeShikigami/sk11/sk11_sou_check_group_6_11.png


BIN
tasks/Component/CostumeShikigami/sk11/sk11_sou_check_group_7_11.png


BIN
tasks/Component/CostumeShikigami/sk11/sk11_sou_check_in_11.png


BIN
tasks/Component/CostumeShikigami/sk11/sk11_sou_click_present_11.png


BIN
tasks/Component/CostumeShikigami/sk11/sk11_sou_switch_1_11.png


BIN
tasks/Component/CostumeShikigami/sk11/sk11_sou_switch_2_11.png


BIN
tasks/Component/CostumeShikigami/sk11/sk11_sou_switch_3_11.png


BIN
tasks/Component/CostumeShikigami/sk11/sk11_sou_switch_4_11.png


BIN
tasks/Component/CostumeShikigami/sk11/sk11_sou_switch_sure_11.png


BIN
tasks/Component/CostumeShikigami/sk11/sk11_sou_team_present_11.png


BIN
tasks/Component/CostumeShikigami/sk11/sk11_soul_preset_11.png


BIN
tasks/Component/CostumeShikigami/sk11/sk11_st_replace_11.png


BIN
tasks/Component/CostumeShikigami/sk11/sk11_st_souls_11.png