Explorar o código

feat: 添加狐栖归处庭院皮肤

weirj2016-ai hai 2 meses
pai
achega
dbab53fbec

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

@@ -42,6 +42,7 @@
   "emulator_startup_lead_time_help": "在开始运行任务之前提前启动模拟器的时间",
   "exit_four_help": "支持打九退四,保证稳定57级,要求设置好战斗主题,即 脚本->全局配置->游戏装饰自定义->战斗主题",
   "costume_main_15": "茨心乐园",
+  "costume_main_16": "狐栖归处",
   "check_true_orochi_enable": "是否在结束后检测真蛇",
   "check_true_orochi_enable_help": "开启后会在任务结束后检测是否出现真蛇, 若出现则自动拉起真蛇",
   "enable_book_auto": "自动选择",

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

@@ -101,6 +101,19 @@ class CostumeAssets:
 	I_PET_HOUSE_15 = RuleImage(roi_front=(951,383,31,50), roi_back=(900,330,150,150), threshold=0.8, method="Template matching", file="./tasks/Component/Costume/main15/main15_pet_house_15.png")
 
 
+	# Image Rule Assets
+	# 狐栖归处庭院判定
+	I_CHECK_MAIN_16 = RuleImage(roi_front=(260,168,80,54), roi_back=(180,100,240,180), threshold=0.8, method="Template matching", file="./tasks/Component/Costume/main16/main16_check_main_16.png")
+	# 探索
+	I_MAIN_GOTO_EXPLORATION_16 = RuleImage(roi_front=(729,231,28,52), roi_back=(680,180,130,150), threshold=0.55, method="Template matching", file="./tasks/Component/Costume/main16/main16_main_goto_exploration_16.png")
+	# 召唤屋
+	I_MAIN_GOTO_SUMMON_16 = RuleImage(roi_front=(981,218,28,24), roi_back=(930,170,130,150), threshold=0.55, method="Template matching", file="./tasks/Component/Costume/main16/main16_main_goto_summon_16.png")
+	# 町中
+	I_MAIN_GOTO_TOWN_16 = RuleImage(roi_front=(1014,346,14,34), roi_back=(960,300,100,120), threshold=0.8, method="Template matching", file="./tasks/Component/Costume/main16/main16_main_goto_town_16.png")
+	# 宠物屋
+	I_PET_HOUSE_16 = RuleImage(roi_front=(1256,402,20,58), roi_back=(1210,340,70,140), threshold=0.8, method="Template matching", file="./tasks/Component/Costume/main16/main16_pet_house_16.png")
+
+
 	# Image Rule Assets
 	# 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")
@@ -204,4 +217,3 @@ class CostumeAssets:
 	# description 
 	I_PET_HOUSE_9 = RuleImage(roi_front=(888,327,40,35), roi_back=(730,316,440,57), threshold=0.8, method="Template matching", file="./tasks/Component/Costume/main9/main9_pet_house_9.png")
 
-

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

@@ -22,6 +22,7 @@ class MainType(str, Enum):
     COSTUME_MAIN_13 = 'costume_main_13'  # 云景阆苑
     COSTUME_MAIN_14 = 'costume_main_14'  # 雪月华庭
     COSTUME_MAIN_15 = 'costume_main_15'  # 茨心乐园
+    COSTUME_MAIN_16 = 'costume_main_16'  # 狐栖归处
 
 # 结界皮肤
 class RealmType(str, Enum):
@@ -101,4 +102,3 @@ class CostumeConfig(BaseModel):
 
 
 
-

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

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

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

@@ -0,0 +1,47 @@
+[
+  {
+    "itemName": "check_main_16",
+    "imageName": "main16_check_main_16.png",
+    "roiFront": "260,168,80,54",
+    "roiBack": "180,100,240,180",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "狐栖归处庭院判定"
+  },
+  {
+    "itemName": "main_goto_exploration_16",
+    "imageName": "main16_main_goto_exploration_16.png",
+    "roiFront": "729,231,28,52",
+    "roiBack": "680,180,130,150",
+    "method": "Template matching",
+    "threshold": 0.55,
+    "description": "探索"
+  },
+  {
+    "itemName": "main_goto_summon_16",
+    "imageName": "main16_main_goto_summon_16.png",
+    "roiFront": "981,218,28,24",
+    "roiBack": "930,170,130,150",
+    "method": "Template matching",
+    "threshold": 0.55,
+    "description": "召唤屋"
+  },
+  {
+    "itemName": "main_goto_town_16",
+    "imageName": "main16_main_goto_town_16.png",
+    "roiFront": "1014,346,14,34",
+    "roiBack": "960,300,100,120",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "町中"
+  },
+  {
+    "itemName": "pet_house_16",
+    "imageName": "main16_pet_house_16.png",
+    "roiFront": "1256,402,20,58",
+    "roiBack": "1210,340,70,140",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "宠物屋"
+  }
+]

BIN=BIN
tasks/Component/Costume/main16/main16_check_main_16.png


BIN=BIN
tasks/Component/Costume/main16/main16_main_goto_exploration_16.png


BIN=BIN
tasks/Component/Costume/main16/main16_main_goto_summon_16.png


BIN=BIN
tasks/Component/Costume/main16/main16_main_goto_town_16.png


BIN=BIN
tasks/Component/Costume/main16/main16_pet_house_16.png