Jelajahi Sumber

feat(Costume): 添加雪月华庭场景支持

- 新增 main14 场景的图像识别规则资产
- 添加雪月华庭场景的检查、探索、召唤屋、町中、宠物室等功能入口
- 配置雪月华庭场景的 ROI 区域和模板匹配参数
- 更新国际化配置文件,添加雪月华庭名称映射
- 创建 main14 场景的图像资源 JSON 配置文件
Azur 8 bulan lalu
induk
melakukan
601e8e77bf

+ 2 - 1
assets/i18n/zh-CN.json

@@ -19,7 +19,8 @@
   "auto_checkin_big_god": "大神签到",
   "auto_checkin_big_god": "大神签到",
   "checkin_config": "签到配置",
   "checkin_config": "签到配置",
   "Usage": "使用说明",
   "Usage": "使用说明",
-  "checkin_big_god_usage_help": "自动领取网易大神APP的阴阳师福利礼包。\n\n使用前准备:\n1. 开启模拟器的Root模式\n2. 模拟器中安装并登录「网易大神」APP\n3. 在大神APP中绑定阴阳师角色\n\nFrida Server 会自动推送到模拟器并启动,无需手动操作。"
+  "checkin_big_god_usage_help": "自动领取网易大神APP的阴阳师福利礼包。\n\n使用前准备:\n1. 开启模拟器的Root模式\n2. 模拟器中安装并登录「网易大神」APP\n3. 在大神APP中绑定阴阳师角色\n\nFrida Server 会自动推送到模拟器并启动,无需手动操作。",
+  "costume_main_14": "雪月华庭"
 }
 }
 
 
 
 

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

@@ -75,6 +75,19 @@ class CostumeAssets:
 	I_MAIN_GOTO_EXPLORATION_13 = RuleImage(roi_front=(561,133,24,45), roi_back=(543,125,57,64), threshold=0.6, method="Template matching", file="./tasks/Component/Costume/main13/main13_main_goto_exploration_13.png")
 	I_MAIN_GOTO_EXPLORATION_13 = RuleImage(roi_front=(561,133,24,45), roi_back=(543,125,57,64), threshold=0.6, method="Template matching", file="./tasks/Component/Costume/main13/main13_main_goto_exploration_13.png")
 
 
 
 
+	# Image Rule Assets
+	# description 
+	I_CHECK_MAIN_14 = RuleImage(roi_front=(928,134,93,87), roi_back=(793,31,367,309), threshold=0.8, method="Template matching", file="./tasks/Component/Costume/main14/main14_check_main_14.png")
+	# 探索 
+	I_MAIN_GOTO_EXPLORATION_14 = RuleImage(roi_front=(654,163,25,26), roi_back=(551,109,237,228), threshold=0.7, method="Template matching", file="./tasks/Component/Costume/main14/main14_main_goto_exploration_14.png")
+	# 召唤屋 
+	I_MAIN_GOTO_SUMMON_14 = RuleImage(roi_front=(1152,167,32,35), roi_back=(1009,94,270,264), threshold=0.7, method="Template matching", file="./tasks/Component/Costume/main14/main14_main_goto_summon_14.png")
+	# 町中 
+	I_MAIN_GOTO_TOWN_14 = RuleImage(roi_front=(839,282,23,42), roi_back=(685,217,306,262), threshold=0.7, method="Template matching", file="./tasks/Component/Costume/main14/main14_main_goto_town_14.png")
+	# 宠物室 
+	I_PET_HOUSE_14 = RuleImage(roi_front=(1034,449,35,33), roi_back=(925,362,235,218), threshold=0.7, method="Template matching", file="./tasks/Component/Costume/main14/main14_pet_house_14.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

@@ -20,6 +20,7 @@ class MainType(str, Enum):
     COSTUME_MAIN_11 = 'costume_main_11'  # 鏖刀禁府
     COSTUME_MAIN_11 = 'costume_main_11'  # 鏖刀禁府
     COSTUME_MAIN_12 = 'costume_main_12'  # 龙吟溯玉
     COSTUME_MAIN_12 = 'costume_main_12'  # 龙吟溯玉
     COSTUME_MAIN_13 = 'costume_main_13'  # 云景阆苑
     COSTUME_MAIN_13 = 'costume_main_13'  # 云景阆苑
+    COSTUME_MAIN_14 = 'costume_main_14'  # 雪月华庭
 
 
 # 结界皮肤
 # 结界皮肤
 class RealmType(str, Enum):
 class RealmType(str, Enum):

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

@@ -0,0 +1,47 @@
+[
+  {
+    "itemName": "check_main_14",
+    "imageName": "main14_check_main_14.png",
+    "roiFront": "928,134,93,87",
+    "roiBack": "793,31,367,309",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "main_goto_exploration_14",
+    "imageName": "main14_main_goto_exploration_14.png",
+    "roiFront": "654,163,25,26",
+    "roiBack": "551,109,237,228",
+    "method": "Template matching",
+    "threshold": 0.7,
+    "description": "探索"
+  },
+  {
+    "itemName": "main_goto_summon_14",
+    "imageName": "main14_main_goto_summon_14.png",
+    "roiFront": "1152,167,32,35",
+    "roiBack": "1009,94,270,264",
+    "method": "Template matching",
+    "threshold": 0.7,
+    "description": "召唤屋"
+  },
+  {
+    "itemName": "main_goto_town_14",
+    "imageName": "main14_main_goto_town_14.png",
+    "roiFront": "839,282,23,42",
+    "roiBack": "685,217,306,262",
+    "method": "Template matching",
+    "threshold": 0.7,
+    "description": "町中"
+  },
+  {
+    "itemName": "pet_house_14",
+    "imageName": "main14_pet_house_14.png",
+    "roiFront": "1034,449,35,33",
+    "roiBack": "925,362,235,218",
+    "method": "Template matching",
+    "threshold": 0.7,
+    "description": "宠物室"
+  }
+]

TEMPAT SAMPAH
tasks/Component/Costume/main14/main14_check_main_14.png


TEMPAT SAMPAH
tasks/Component/Costume/main14/main14_main_goto_exploration_14.png


TEMPAT SAMPAH
tasks/Component/Costume/main14/main14_main_goto_summon_14.png


TEMPAT SAMPAH
tasks/Component/Costume/main14/main14_main_goto_town_14.png


TEMPAT SAMPAH
tasks/Component/Costume/main14/main14_pet_house_14.png