فهرست منبع

Merge pull request #1083 from BluettDream/dev_orochi

add: orochi thirteen layer
huangrunheng 1 سال پیش
والد
کامیت
21eccd64ab
4فایلهای تغییر یافته به همراه11 افزوده شده و 1 حذف شده
  1. 1 1
      tasks/Orochi/assets.py
  2. 4 0
      tasks/Orochi/config.py
  3. 4 0
      tasks/Orochi/res/list.json
  4. 2 0
      tasks/Orochi/script_task.py

+ 1 - 1
tasks/Orochi/assets.py

@@ -30,7 +30,7 @@ class OrochiAssets:
 	# List Rule Assets
 	# 这个是御魂界面选择不同层数的 
 	L_LAYER_LIST = RuleList(folder="./tasks/Orochi/res", direction="vertical", mode="ocr", roi_back=(138,130,359,500), size=(45, 88), 
-					 array=["壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖", "拾", "悲", "神"])
+					 array=["壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖", "拾", "悲", "神", "虚"])
 
 
 	# Ocr Rule Assets

+ 4 - 0
tasks/Orochi/config.py

@@ -31,6 +31,8 @@ class Layer(str, Enum):
     TEN = '拾层'
     ELEVEN = '悲鸣'
     TWELVE = '神罚'
+    THIRTEEN = '虚无'
+
 
 class OrochiConfig(ConfigBase):
     # 身份
@@ -57,6 +59,8 @@ class SwitchSoulConfig(BaseSwitchSoulConfig):
     eleven_switch: str = Field(default='-1,-1', description='eleven_switch_help')
     # 神罚 config
     twelve_switch: str = Field(default='-1,-1', description='twelve_switch_help')
+    # 虚无 config
+    thirteen_switch: str = Field(default='-1,-1', description='thirteen_switch_help')
 
 
 class Orochi(ConfigBase):

+ 4 - 0
tasks/Orochi/res/list.json

@@ -52,6 +52,10 @@
     {
       "itemName": "神",
       "roiFront": "277,534,46,86"
+    },
+    {
+      "itemName": "虚",
+      "roiFront": "277,534,46,86"
     }
   ]
 }

+ 2 - 0
tasks/Orochi/script_task.py

@@ -489,6 +489,8 @@ class ScriptTask(GeneralBattle, GeneralInvite, GeneralBuff, GeneralRoom, GameUi,
                 group_team = orochi_switch_soul.eleven_switch
             case Layer.TWELVE:
                 group_team = orochi_switch_soul.twelve_switch
+            case Layer.THIRTEEN:
+                group_team = orochi_switch_soul.thirteen_switch
 
         if orochi_switch_soul.auto_switch_soul:
             self.ui_get_current_page()