Przeglądaj źródła

feat(costume): 新增幕间皮肤童梦基地(sk8)

- 添加 COSTUME_SHIKIGAMI_8 枚举类型
- 更新 shikigami_costume_model 支持 sk8
- 新增 sk8 图片资源和 assets 定义
lhye 9 miesięcy temu
rodzic
commit
e4f8a5ec06
24 zmienionych plików z 227 dodań i 1 usunięć
  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/sk8/image.json
  5. BIN
      tasks/Component/CostumeShikigami/sk8/sk8_check_records_8.png
  6. BIN
      tasks/Component/CostumeShikigami/sk8/sk8_record_soul_back_8.png
  7. BIN
      tasks/Component/CostumeShikigami/sk8/sk8_sou_check_group_1_8.png
  8. BIN
      tasks/Component/CostumeShikigami/sk8/sk8_sou_check_group_2_8.png
  9. BIN
      tasks/Component/CostumeShikigami/sk8/sk8_sou_check_group_3_8.png
  10. BIN
      tasks/Component/CostumeShikigami/sk8/sk8_sou_check_group_4_8.png
  11. BIN
      tasks/Component/CostumeShikigami/sk8/sk8_sou_check_group_5_8.png
  12. BIN
      tasks/Component/CostumeShikigami/sk8/sk8_sou_check_group_6_8.png
  13. BIN
      tasks/Component/CostumeShikigami/sk8/sk8_sou_check_group_7_8.png
  14. BIN
      tasks/Component/CostumeShikigami/sk8/sk8_sou_check_in_8.png
  15. BIN
      tasks/Component/CostumeShikigami/sk8/sk8_sou_click_present_8.png
  16. BIN
      tasks/Component/CostumeShikigami/sk8/sk8_sou_switch_1_8.png
  17. BIN
      tasks/Component/CostumeShikigami/sk8/sk8_sou_switch_2_8.png
  18. BIN
      tasks/Component/CostumeShikigami/sk8/sk8_sou_switch_3_8.png
  19. BIN
      tasks/Component/CostumeShikigami/sk8/sk8_sou_switch_4_8.png
  20. BIN
      tasks/Component/CostumeShikigami/sk8/sk8_sou_switch_sure_8.png
  21. BIN
      tasks/Component/CostumeShikigami/sk8/sk8_sou_team_preset_8.png
  22. BIN
      tasks/Component/CostumeShikigami/sk8/sk8_soul_preset_8.png
  23. BIN
      tasks/Component/CostumeShikigami/sk8/sk8_st_replace_8.png
  24. BIN
      tasks/Component/CostumeShikigami/sk8/sk8_st_souls_8.png

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

@@ -49,6 +49,7 @@ class ShikigamiType(str, Enum):
     COSTUME_SHIKIGAMI_5 = 'costume_shikigami_5'  # 契光水境
     COSTUME_SHIKIGAMI_5 = 'costume_shikigami_5'  # 契光水境
     COSTUME_SHIKIGAMI_6 = 'costume_shikigami_6'  # 月下火舞
     COSTUME_SHIKIGAMI_6 = 'costume_shikigami_6'  # 月下火舞
     COSTUME_SHIKIGAMI_7 = 'costume_shikigami_7'  # 赤溟幽界
     COSTUME_SHIKIGAMI_7 = 'costume_shikigami_7'  # 赤溟幽界
+    COSTUME_SHIKIGAMI_8 = 'costume_shikigami_8'  # 童梦基地
 
 
 # 签到主题
 # 签到主题
 class SignType(str, Enum):
 class SignType(str, Enum):

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

@@ -96,7 +96,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, 8)  # 目前只有 COSTUME_SHIKIGAMI_1,如需扩展可改 range
+    for i in range(1, 9)  # 目前支持 COSTUME_SHIKIGAMI_1 到 COSTUME_SHIKIGAMI_8
 }
 }
 
 
 class CostumeBase:
 class CostumeBase:

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

@@ -311,3 +311,46 @@ class CostumeShikigamiAssets:
 	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")
 	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")
 
 
 
 
+	# Image Rule Assets - sk8 童梦基地
+	# 用于判断在式神录 
+	I_CHECK_RECORDS_8 = RuleImage(roi_front=(265,71,34,36), roi_back=(265,71,60,50), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk8/sk8_check_records_8.png")
+	# 退出式神录 
+	I_RECORD_SOUL_BACK_8 = RuleImage(roi_front=(19,9,51,44), roi_back=(19,9,51,44), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk8/sk8_record_soul_back_8.png")
+	# 预设 
+	I_SOUL_PRESET_8 = RuleImage(roi_front=(335,73,73,36), roi_back=(310,57,169,72), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk8/sk8_soul_preset_8.png")
+	# 第一组切换 
+	I_SOU_SWITCH_1_8 = RuleImage(roi_front=(973,140,25,27), roi_back=(960,131,60,50), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk8/sk8_sou_switch_1_8.png")
+	# 第二组切换 
+	I_SOU_SWITCH_2_8 = RuleImage(roi_front=(971,293,25,27), roi_back=(960,284,60,50), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk8/sk8_sou_switch_2_8.png")
+	# 第三组切换 
+	I_SOU_SWITCH_3_8 = RuleImage(roi_front=(968,448,25,27), roi_back=(960,442,60,50), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk8/sk8_sou_switch_3_8.png")
+	# 第四组切换 
+	I_SOU_SWITCH_4_8 = RuleImage(roi_front=(967,597,25,27), roi_back=(960,592,60,50), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk8/sk8_sou_switch_4_8.png")
+	# 确认切换 
+	I_SOU_SWITCH_SURE_8 = RuleImage(roi_front=(668,401,180,61), roi_back=(668,401,180,61), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk8/sk8_sou_switch_sure_8.png")
+	# 用于判断是否在式神录里面 
+	I_SOU_CHECK_IN_8 = RuleImage(roi_front=(265,71,34,36), roi_back=(265,71,60,50), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk8/sk8_sou_check_in_8.png")
+	# 检查是否为第一组 
+	I_SOU_CHECK_GROUP_1_8 = RuleImage(roi_front=(1086,91,25,60), roi_back=(1086,91,25,60), threshold=0.9, method="Template matching", file="./tasks/Component/CostumeShikigami/sk8/sk8_sou_check_group_1_8.png")
+	# 检查是否为第二组 
+	I_SOU_CHECK_GROUP_2_8 = RuleImage(roi_front=(1086,163,25,60), roi_back=(1086,163,25,60), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk8/sk8_sou_check_group_2_8.png")
+	# 检查是否为第三组 
+	I_SOU_CHECK_GROUP_3_8 = RuleImage(roi_front=(1085,234,25,60), roi_back=(1085,234,25,60), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk8/sk8_sou_check_group_3_8.png")
+	# 检查是否为第四组 
+	I_SOU_CHECK_GROUP_4_8 = RuleImage(roi_front=(1086,303,25,60), roi_back=(1086,303,25,60), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk8/sk8_sou_check_group_4_8.png")
+	# 检查是否为第五组 
+	I_SOU_CHECK_GROUP_5_8 = RuleImage(roi_front=(1088,370,25,60), roi_back=(1088,370,25,60), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk8/sk8_sou_check_group_5_8.png")
+	# 检查是否为第六组 
+	I_SOU_CHECK_GROUP_6_8 = RuleImage(roi_front=(1085,443,25,60), roi_back=(1085,443,25,60), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk8/sk8_sou_check_group_6_8.png")
+	# 检查是否为第七组 
+	I_SOU_CHECK_GROUP_7_8 = RuleImage(roi_front=(1088,512,25,60), roi_back=(1088,512,25,60), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk8/sk8_sou_check_group_7_8.png")
+	# 匹配队伍预设 
+	I_SOU_TEAM_PRESENT_8 = RuleImage(roi_front=(720,76,112,35), roi_back=(706,68,175,63), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk8/sk8_sou_team_preset_8.png")
+	# 需要切换的预设按钮(颜色深一点) 
+	I_SOU_CLICK_PRESENT_8 = RuleImage(roi_front=(967,305,25,27), roi_back=(965,142,48,480), threshold=0.9, method="Template matching", file="./tasks/Component/CostumeShikigami/sk8/sk8_sou_click_present_8.png")
+	# 选中的御魂 
+	I_ST_SOULS_8 = RuleImage(roi_front=(1170,220,33,65), roi_back=(1170,220,70,90), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk8/sk8_st_souls_8.png")
+	# 更换 
+	I_ST_REPLACE_8 = RuleImage(roi_front=(856,150,49,73), roi_back=(856,150,110,130), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk8/sk8_st_replace_8.png")
+
+

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

@@ -0,0 +1,182 @@
+[
+  {
+    "itemName": "check_records_8",
+    "imageName": "sk8_check_records_8.png",
+    "roiFront": "265,71,34,36",
+    "roiBack": "265,71,60,50",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "用于判断在式神录"
+  },
+  {
+    "itemName": "record_soul_back_8",
+    "imageName": "sk8_record_soul_back_8.png",
+    "roiFront": "19,9,51,44",
+    "roiBack": "19,9,51,44",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "退出式神录"
+  },
+  {
+    "itemName": "soul_preset_8",
+    "imageName": "sk8_soul_preset_8.png",
+    "roiFront": "335,73,73,36",
+    "roiBack": "310,57,169,72",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "预设"
+  },
+  {
+    "itemName": "sou_switch_1_8",
+    "imageName": "sk8_sou_switch_1_8.png",
+    "roiFront": "973,140,25,27",
+    "roiBack": "960,131,60,50",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "第一组切换"
+  },
+  {
+    "itemName": "sou_switch_2_8",
+    "imageName": "sk8_sou_switch_2_8.png",
+    "roiFront": "971,293,25,27",
+    "roiBack": "960,284,60,50",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "第二组切换"
+  },
+  {
+    "itemName": "sou_switch_3_8",
+    "imageName": "sk8_sou_switch_3_8.png",
+    "roiFront": "968,448,25,27",
+    "roiBack": "960,442,60,50",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "第三组切换"
+  },
+  {
+    "itemName": "sou_switch_4_8",
+    "imageName": "sk8_sou_switch_4_8.png",
+    "roiFront": "967,597,25,27",
+    "roiBack": "960,592,60,50",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "第四组切换"
+  },
+  {
+    "itemName": "sou_switch_sure_8",
+    "imageName": "sk8_sou_switch_sure_8.png",
+    "roiFront": "668,401,180,61",
+    "roiBack": "668,401,180,61",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "确认切换"
+  },
+  {
+    "itemName": "sou_check_in_8",
+    "imageName": "sk8_sou_check_in_8.png",
+    "roiFront": "265,71,34,36",
+    "roiBack": "265,71,60,50",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "用于判断是否在式神录里面"
+  },
+  {
+    "itemName": "sou_check_group_1_8",
+    "imageName": "sk8_sou_check_group_1_8.png",
+    "roiFront": "1086,91,25,60",
+    "roiBack": "1086,91,25,60",
+    "method": "Template matching",
+    "threshold": 0.9,
+    "description": "检查是否为第一组"
+  },
+  {
+    "itemName": "sou_check_group_2_8",
+    "imageName": "sk8_sou_check_group_2_8.png",
+    "roiFront": "1086,163,25,60",
+    "roiBack": "1086,163,25,60",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "检查是否为第二组"
+  },
+  {
+    "itemName": "sou_check_group_3_8",
+    "imageName": "sk8_sou_check_group_3_8.png",
+    "roiFront": "1085,234,25,60",
+    "roiBack": "1085,234,25,60",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "检查是否为第三组"
+  },
+  {
+    "itemName": "sou_check_group_4_8",
+    "imageName": "sk8_sou_check_group_4_8.png",
+    "roiFront": "1086,303,25,60",
+    "roiBack": "1086,303,25,60",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "检查是否为第四组"
+  },
+  {
+    "itemName": "sou_check_group_5_8",
+    "imageName": "sk8_sou_check_group_5_8.png",
+    "roiFront": "1088,370,25,60",
+    "roiBack": "1088,370,25,60",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "检查是否为第五组"
+  },
+  {
+    "itemName": "sou_check_group_6_8",
+    "imageName": "sk8_sou_check_group_6_8.png",
+    "roiFront": "1085,443,25,60",
+    "roiBack": "1085,443,25,60",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "检查是否为第六组"
+  },
+  {
+    "itemName": "sou_check_group_7_8",
+    "imageName": "sk8_sou_check_group_7_8.png",
+    "roiFront": "1088,512,25,60",
+    "roiBack": "1088,512,25,60",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "检查是否为第七组"
+  },
+  {
+    "itemName": "sou_team_present_8",
+    "imageName": "sk8_sou_team_preset_8.png",
+    "roiFront": "720,76,112,35",
+    "roiBack": "706,68,175,63",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "匹配队伍预设"
+  },
+  {
+    "itemName": "sou_click_present_8",
+    "imageName": "sk8_sou_click_present_8.png",
+    "roiFront": "967,305,25,27",
+    "roiBack": "965,142,48,480",
+    "method": "Template matching",
+    "threshold": 0.9,
+    "description": "需要切换的预设按钮(颜色深一点)"
+  },
+  {
+    "itemName": "st_souls_8",
+    "imageName": "sk8_st_souls_8.png",
+    "roiFront": "1170,220,33,65",
+    "roiBack": "1170,220,70,90",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "选中的御魂"
+  },
+  {
+    "itemName": "st_replace_8",
+    "imageName": "sk8_st_replace_8.png",
+    "roiFront": "856,150,49,73",
+    "roiBack": "856,150,110,130",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "更换"
+  }
+]

BIN
tasks/Component/CostumeShikigami/sk8/sk8_check_records_8.png


BIN
tasks/Component/CostumeShikigami/sk8/sk8_record_soul_back_8.png


BIN
tasks/Component/CostumeShikigami/sk8/sk8_sou_check_group_1_8.png


BIN
tasks/Component/CostumeShikigami/sk8/sk8_sou_check_group_2_8.png


BIN
tasks/Component/CostumeShikigami/sk8/sk8_sou_check_group_3_8.png


BIN
tasks/Component/CostumeShikigami/sk8/sk8_sou_check_group_4_8.png


BIN
tasks/Component/CostumeShikigami/sk8/sk8_sou_check_group_5_8.png


BIN
tasks/Component/CostumeShikigami/sk8/sk8_sou_check_group_6_8.png


BIN
tasks/Component/CostumeShikigami/sk8/sk8_sou_check_group_7_8.png


BIN
tasks/Component/CostumeShikigami/sk8/sk8_sou_check_in_8.png


BIN
tasks/Component/CostumeShikigami/sk8/sk8_sou_click_present_8.png


BIN
tasks/Component/CostumeShikigami/sk8/sk8_sou_switch_1_8.png


BIN
tasks/Component/CostumeShikigami/sk8/sk8_sou_switch_2_8.png


BIN
tasks/Component/CostumeShikigami/sk8/sk8_sou_switch_3_8.png


BIN
tasks/Component/CostumeShikigami/sk8/sk8_sou_switch_4_8.png


BIN
tasks/Component/CostumeShikigami/sk8/sk8_sou_switch_sure_8.png


BIN
tasks/Component/CostumeShikigami/sk8/sk8_sou_team_preset_8.png


BIN
tasks/Component/CostumeShikigami/sk8/sk8_soul_preset_8.png


BIN
tasks/Component/CostumeShikigami/sk8/sk8_st_replace_8.png


BIN
tasks/Component/CostumeShikigami/sk8/sk8_st_souls_8.png