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

feat(CostumeShikigami): 添加幕间:赤溟幽界

yuyuyuyuyu 9 месяцев назад
Родитель
Сommit
5d98621674
24 измененных файлов с 227 добавлено и 1 удалено
  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/sk7/image.json
  5. BIN
      tasks/Component/CostumeShikigami/sk7/sk7_check_records_7.png
  6. BIN
      tasks/Component/CostumeShikigami/sk7/sk7_record_soul_back_7.png
  7. BIN
      tasks/Component/CostumeShikigami/sk7/sk7_sou_check_group_1_7.png
  8. BIN
      tasks/Component/CostumeShikigami/sk7/sk7_sou_check_group_2_7.png
  9. BIN
      tasks/Component/CostumeShikigami/sk7/sk7_sou_check_group_3_7.png
  10. BIN
      tasks/Component/CostumeShikigami/sk7/sk7_sou_check_group_4_7.png
  11. BIN
      tasks/Component/CostumeShikigami/sk7/sk7_sou_check_group_5_7.png
  12. BIN
      tasks/Component/CostumeShikigami/sk7/sk7_sou_check_group_6_7.png
  13. BIN
      tasks/Component/CostumeShikigami/sk7/sk7_sou_check_group_7_7.png
  14. BIN
      tasks/Component/CostumeShikigami/sk7/sk7_sou_check_in_7.png
  15. BIN
      tasks/Component/CostumeShikigami/sk7/sk7_sou_click_present_7.png
  16. BIN
      tasks/Component/CostumeShikigami/sk7/sk7_sou_switch_1_7.png
  17. BIN
      tasks/Component/CostumeShikigami/sk7/sk7_sou_switch_2_7.png
  18. BIN
      tasks/Component/CostumeShikigami/sk7/sk7_sou_switch_3_7.png
  19. BIN
      tasks/Component/CostumeShikigami/sk7/sk7_sou_switch_4_7.png
  20. BIN
      tasks/Component/CostumeShikigami/sk7/sk7_sou_switch_sure_7.png
  21. BIN
      tasks/Component/CostumeShikigami/sk7/sk7_sou_team_present_7.png
  22. BIN
      tasks/Component/CostumeShikigami/sk7/sk7_soul_preset_7.png
  23. BIN
      tasks/Component/CostumeShikigami/sk7/sk7_st_replace_7.png
  24. BIN
      tasks/Component/CostumeShikigami/sk7/sk7_st_souls_7.png

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

@@ -42,6 +42,7 @@ class ShikigamiType(str, Enum):
     COSTUME_SHIKIGAMI_4 = 'costume_shikigami_4'  # 冥夜游火
     COSTUME_SHIKIGAMI_5 = 'costume_shikigami_5'  # 契光水境
     COSTUME_SHIKIGAMI_6 = 'costume_shikigami_6'  # 月下火舞
+    COSTUME_SHIKIGAMI_7 = 'costume_shikigami_7'  # 赤溟幽界
 
 # 签到主题
 class SignType(str, Enum):

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

@@ -72,7 +72,7 @@ shikigami_costume_model = {
         'I_ST_SOULS': f'I_ST_SOULS_{i}',
         'I_ST_REPLACE': f'I_ST_REPLACE_{i}',
     }
-    for i in range(1, 7)  # 目前只有 COSTUME_SHIKIGAMI_1,如需扩展可改 range
+    for i in range(1, 8)  # 目前只有 COSTUME_SHIKIGAMI_1,如需扩展可改 range
 }
 
 class CostumeBase:

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

@@ -268,3 +268,46 @@ class CostumeShikigamiAssets:
 	I_ST_REPLACE_6 = RuleImage(roi_front=(856,170,100,100), roi_back=(856,170,100,100), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk6/sk6_st_replace_6.png")
 
 
+	# Image Rule Assets
+	# 用于判断在式神录 
+	I_CHECK_RECORDS_7 = RuleImage(roi_front=(267,76,51,46), roi_back=(265,74,55,50), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk7/sk7_check_records_7.png")
+	# 退出式神录 
+	I_RECORD_SOUL_BACK_7 = RuleImage(roi_front=(19,9,51,44), roi_back=(19,9,51,44), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk7/sk7_record_soul_back_7.png")
+	# 预设 
+	I_SOUL_PRESET_7 = RuleImage(roi_front=(341,76,78,42), roi_back=(341,76,78,42), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk7/sk7_soul_preset_7.png")
+	# 第一组切换 
+	I_SOU_SWITCH_1_7 = RuleImage(roi_front=(973,140,34,32), roi_back=(973,140,34,32), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk7/sk7_sou_switch_1_7.png")
+	# 第二组切换 
+	I_SOU_SWITCH_2_7 = RuleImage(roi_front=(973,293,33,33), roi_back=(973,293,33,33), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk7/sk7_sou_switch_2_7.png")
+	# description 
+	I_SOU_SWITCH_3_7 = RuleImage(roi_front=(968,448,41,38), roi_back=(968,448,41,38), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk7/sk7_sou_switch_3_7.png")
+	# description 
+	I_SOU_SWITCH_4_7 = RuleImage(roi_front=(967,597,42,25), roi_back=(967,597,42,25), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk7/sk7_sou_switch_4_7.png")
+	# description 
+	I_SOU_SWITCH_SURE_7 = RuleImage(roi_front=(668,401,180,61), roi_back=(668,401,180,61), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk7/sk7_sou_switch_sure_7.png")
+	# 用于判断是否在式神录里面 
+	I_SOU_CHECK_IN_7 = RuleImage(roi_front=(268,74,50,49), roi_back=(268,74,50,49), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk7/sk7_sou_check_in_7.png")
+	# 检查是否为第一组 
+	I_SOU_CHECK_GROUP_1_7 = RuleImage(roi_front=(1083,78,22,57), roi_back=(1083,78,22,57), threshold=0.9, method="Template matching", file="./tasks/Component/CostumeShikigami/sk7/sk7_sou_check_group_1_7.png")
+	# description 
+	I_SOU_CHECK_GROUP_2_7 = RuleImage(roi_front=(1083,150,21,57), roi_back=(1083,150,21,57), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk7/sk7_sou_check_group_2_7.png")
+	# description 
+	I_SOU_CHECK_GROUP_3_7 = RuleImage(roi_front=(1083,224,22,49), roi_back=(1083,224,22,49), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk7/sk7_sou_check_group_3_7.png")
+	# description 
+	I_SOU_CHECK_GROUP_4_7 = RuleImage(roi_front=(1082,291,21,56), roi_back=(1082,291,21,56), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk7/sk7_sou_check_group_4_7.png")
+	# description 
+	I_SOU_CHECK_GROUP_5_7 = RuleImage(roi_front=(1083,361,21,53), roi_back=(1083,361,21,53), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk7/sk7_sou_check_group_5_7.png")
+	# description 
+	I_SOU_CHECK_GROUP_6_7 = RuleImage(roi_front=(1084,430,21,54), roi_back=(1084,430,21,54), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk7/sk7_sou_check_group_6_7.png")
+	# description 
+	I_SOU_CHECK_GROUP_7_7 = RuleImage(roi_front=(1084,502,21,54), roi_back=(1084,502,21,54), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk7/sk7_sou_check_group_7_7.png")
+	# 匹配队伍预设 
+	I_SOU_TEAM_PRESENT_7 = RuleImage(roi_front=(720,76,136,43), roi_back=(720,76,136,43), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk7/sk7_sou_team_present_7.png")
+	# 需要切换的预设按钮(颜色深一点) 
+	I_SOU_CLICK_PRESENT_7 = RuleImage(roi_front=(967,305,43,22), roi_back=(967,305,43,22), threshold=0.9, method="Template matching", file="./tasks/Component/CostumeShikigami/sk7/sk7_sou_click_present_7.png")
+	# 点击御魂 
+	I_ST_SOULS_7 = RuleImage(roi_front=(1176,227,70,80), roi_back=(1176,227,70,80), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk7/sk7_st_souls_7.png")
+	# 更换 
+	I_ST_REPLACE_7 = RuleImage(roi_front=(858,162,100,100), roi_back=(858,162,100,100), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk7/sk7_st_replace_7.png")
+
+

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

@@ -0,0 +1,182 @@
+[
+  {
+    "itemName": "check_records_7",
+    "imageName": "sk7_check_records_7.png",
+    "roiFront": "267,76,51,46",
+    "roiBack": "265,74,55,50",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "用于判断在式神录"
+  },
+  {
+    "itemName": "record_soul_back_7",
+    "imageName": "sk7_record_soul_back_7.png",
+    "roiFront": "19,9,51,44",
+    "roiBack": "19,9,51,44",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "退出式神录"
+  },
+  {
+    "itemName": "soul_preset_7",
+    "imageName": "sk7_soul_preset_7.png",
+    "roiFront": "341,76,78,42",
+    "roiBack": "341,76,78,42",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "预设"
+  },
+  {
+    "itemName": "sou_switch_1_7",
+    "imageName": "sk7_sou_switch_1_7.png",
+    "roiFront": "973,140,34,32",
+    "roiBack": "973,140,34,32",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "第一组切换"
+  },
+  {
+    "itemName": "sou_switch_2_7",
+    "imageName": "sk7_sou_switch_2_7.png",
+    "roiFront": "973,293,33,33",
+    "roiBack": "973,293,33,33",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "第二组切换"
+  },
+  {
+    "itemName": "sou_switch_3_7",
+    "imageName": "sk7_sou_switch_3_7.png",
+    "roiFront": "968,448,41,38",
+    "roiBack": "968,448,41,38",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_switch_4_7",
+    "imageName": "sk7_sou_switch_4_7.png",
+    "roiFront": "967,597,42,25",
+    "roiBack": "967,597,42,25",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_switch_sure_7",
+    "imageName": "sk7_sou_switch_sure_7.png",
+    "roiFront": "668,401,180,61",
+    "roiBack": "668,401,180,61",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_check_in_7",
+    "imageName": "sk7_sou_check_in_7.png",
+    "roiFront": "268,74,50,49",
+    "roiBack": "268,74,50,49",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "用于判断是否在式神录里面"
+  },
+  {
+    "itemName": "sou_check_group_1_7",
+    "imageName": "sk7_sou_check_group_1_7.png",
+    "roiFront": "1083,78,22,57",
+    "roiBack": "1083,78,22,57",
+    "method": "Template matching",
+    "threshold": 0.9,
+    "description": "检查是否为第一组"
+  },
+  {
+    "itemName": "sou_check_group_2_7",
+    "imageName": "sk7_sou_check_group_2_7.png",
+    "roiFront": "1083,150,21,57",
+    "roiBack": "1083,150,21,57",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_check_group_3_7",
+    "imageName": "sk7_sou_check_group_3_7.png",
+    "roiFront": "1083,224,22,49",
+    "roiBack": "1083,224,22,49",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_check_group_4_7",
+    "imageName": "sk7_sou_check_group_4_7.png",
+    "roiFront": "1082,291,21,56",
+    "roiBack": "1082,291,21,56",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_check_group_5_7",
+    "imageName": "sk7_sou_check_group_5_7.png",
+    "roiFront": "1083,361,21,53",
+    "roiBack": "1083,361,21,53",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_check_group_6_7",
+    "imageName": "sk7_sou_check_group_6_7.png",
+    "roiFront": "1084,430,21,54",
+    "roiBack": "1084,430,21,54",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_check_group_7_7",
+    "imageName": "sk7_sou_check_group_7_7.png",
+    "roiFront": "1084,502,21,54",
+    "roiBack": "1084,502,21,54",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_team_present_7",
+    "imageName": "sk7_sou_team_present_7.png",
+    "roiFront": "720,76,136,43",
+    "roiBack": "720,76,136,43",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "匹配队伍预设"
+  },
+  {
+    "itemName": "sou_click_present_7",
+    "imageName": "sk7_sou_click_present_7.png",
+    "roiFront": "967,305,43,22",
+    "roiBack": "967,305,43,22",
+    "method": "Template matching",
+    "threshold": 0.9,
+    "description": "需要切换的预设按钮(颜色深一点)"
+  },
+  {
+    "itemName": "st_souls_7",
+    "imageName": "sk7_st_souls_7.png",
+    "roiFront": "1176,227,70,80",
+    "roiBack": "1176,227,70,80",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "点击御魂"
+  },
+  {
+    "itemName": "st_replace_7",
+    "imageName": "sk7_st_replace_7.png",
+    "roiFront": "858,162,100,100",
+    "roiBack": "858,162,100,100",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "更换"
+  }
+]

BIN
tasks/Component/CostumeShikigami/sk7/sk7_check_records_7.png


BIN
tasks/Component/CostumeShikigami/sk7/sk7_record_soul_back_7.png


BIN
tasks/Component/CostumeShikigami/sk7/sk7_sou_check_group_1_7.png


BIN
tasks/Component/CostumeShikigami/sk7/sk7_sou_check_group_2_7.png


BIN
tasks/Component/CostumeShikigami/sk7/sk7_sou_check_group_3_7.png


BIN
tasks/Component/CostumeShikigami/sk7/sk7_sou_check_group_4_7.png


BIN
tasks/Component/CostumeShikigami/sk7/sk7_sou_check_group_5_7.png


BIN
tasks/Component/CostumeShikigami/sk7/sk7_sou_check_group_6_7.png


BIN
tasks/Component/CostumeShikigami/sk7/sk7_sou_check_group_7_7.png


BIN
tasks/Component/CostumeShikigami/sk7/sk7_sou_check_in_7.png


BIN
tasks/Component/CostumeShikigami/sk7/sk7_sou_click_present_7.png


BIN
tasks/Component/CostumeShikigami/sk7/sk7_sou_switch_1_7.png


BIN
tasks/Component/CostumeShikigami/sk7/sk7_sou_switch_2_7.png


BIN
tasks/Component/CostumeShikigami/sk7/sk7_sou_switch_3_7.png


BIN
tasks/Component/CostumeShikigami/sk7/sk7_sou_switch_4_7.png


BIN
tasks/Component/CostumeShikigami/sk7/sk7_sou_switch_sure_7.png


BIN
tasks/Component/CostumeShikigami/sk7/sk7_sou_team_present_7.png


BIN
tasks/Component/CostumeShikigami/sk7/sk7_soul_preset_7.png


BIN
tasks/Component/CostumeShikigami/sk7/sk7_st_replace_7.png


BIN
tasks/Component/CostumeShikigami/sk7/sk7_st_souls_7.png