yEs1do пре 2 година
родитељ
комит
31ae1aaf92
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      tasks/WantedQuests/script_task.py

+ 2 - 2
tasks/WantedQuests/script_task.py

@@ -236,8 +236,8 @@ class ScriptTask(WQExplore, SecretScriptTask, WantedQuestsAssets):
             logger.warning('No wanted quests can be challenged')
             logger.warning('No wanted quests can be challenged')
             return False
             return False
         # 检查特殊悬赏
         # 检查特殊悬赏
-        for i in range(4):
-            best_type, destination, once_number, goto_button = info_wq_list[i]
+        for info in info_wq_list:
+            best_type, destination, once_number, goto_button = info
             if destination in self.custom_strategy:
             if destination in self.custom_strategy:
                 logger.info("Start running a custom strategy")
                 logger.info("Start running a custom strategy")
                 do_number = 1 if once_number >= num_want else num_want // once_number + (1 if num_want % once_number > 0 else 0)
                 do_number = 1 if once_number >= num_want else num_want // once_number + (1 if num_want % once_number > 0 else 0)