Преглед изворни кода

fix(Dokan): assets naming issue

jackyhwei пре 2 година
родитељ
комит
7a37c3059d
1 измењених фајлова са 6 додато и 6 уклоњено
  1. 6 6
      tasks/Dokan/script_task.py

+ 6 - 6
tasks/Dokan/script_task.py

@@ -72,11 +72,11 @@ class ScriptTask(GeneralBattle, GameUi, SwitchSoul, DokanAssets):
 
 
     @cached_property
     @cached_property
     def _attack_priorities(self) -> list:
     def _attack_priorities(self) -> list:
-        return [self.I_RYOU_DOKAN_PRIORITY_0,
-                self.I_RYOU_DOKAN_PRIORITY_1,
-                self.I_RYOU_DOKAN_PRIORITY_2,
-                self.I_RYOU_DOKAN_PRIORITY_3,
-                self.I_RYOU_DOKAN_PRIORITY_4]
+        return [self.I_RYOU_DOKAN_ATTACK_PRIORITY_0,
+                self.I_RYOU_DOKAN_ATTACK_PRIORITY_1,
+                self.I_RYOU_DOKAN_ATTACK_PRIORITY_2,
+                self.I_RYOU_DOKAN_ATTACK_PRIORITY_3,
+                self.I_RYOU_DOKAN_ATTACK_PRIORITY_4]
 
 
     def run(self):
     def run(self):
         """ 道馆主函数
         """ 道馆主函数
@@ -297,7 +297,7 @@ class ScriptTask(GeneralBattle, GameUi, SwitchSoul, DokanAssets):
         logger.hr('Try to choose attack priority')
         logger.hr('Try to choose attack priority')
         max_try = 5
         max_try = 5
 
 
-        if not self.appear_then_click(self.I_RYOU_DOKAN_PRIORITY, interval=2):
+        if not self.appear_then_click(self.I_RYOU_DOKAN_ATTACK_PRIORITY, interval=2):
             logger.error(f"can not find dokan priority option button, choose attack priority process skipped")
             logger.error(f"can not find dokan priority option button, choose attack priority process skipped")
             return False
             return False