Procházet zdrojové kódy

Merge pull request #1328 from yEs1do/fix(WantedQuests_check)

fix(WantedQuests): 应对除法取整而非取余
huangrunheng před 10 měsíci
rodič
revize
1187c83570
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      tasks/WantedQuests/script_task.py

+ 1 - 1
tasks/WantedQuests/script_task.py

@@ -724,7 +724,7 @@ class ScriptTask(WQExplore, SecretScriptTask, WantedQuestsAssets):
                     total = total % 10
                     total = total % 10
                 if cu > total:
                 if cu > total:
                     logger.warning('Current number of wanted quests is greater than total number')
                     logger.warning('Current number of wanted quests is greater than total number')
-                    cu = cu % 10
+                    cu = cu // 10
                 if cu == total:
                 if cu == total:
                     # 该任务已完成,一般是悬赏任务,邀请人没有做导致的
                     # 该任务已完成,一般是悬赏任务,邀请人没有做导致的
                     continue
                     continue