Преглед на файлове

fix(KekkaiUtillize): Compatible low machine

huangrunheng преди 2 години
родител
ревизия
9b4bbc0faa
променени са 2 файла, в които са добавени 4 реда и са изтрити 2 реда
  1. 1 1
      tasks/GameUi/game_ui.py
  2. 3 1
      tasks/SoulsTidy/script_task.py

+ 1 - 1
tasks/GameUi/game_ui.py

@@ -126,7 +126,7 @@ class GameUi(BaseTask, GameUiAssets):
                     return page
             # Try to close unknown page
             for close in self.ui_close:
-                if self.appear_then_click(close, interval=1):
+                if self.appear_then_click(close, interval=1.5):
                     logger.info('Trying to switch to supported page')
                     timeout = Timer(10, count=20).start()
             # Unknown page but able to handle

+ 3 - 1
tasks/SoulsTidy/script_task.py

@@ -133,6 +133,7 @@ class ScriptTask(GameUi, SoulsTidyAssets):
                     continue
                 # 出现神赐, 就点击然后消失,
                 if self.appear(self.I_ST_GOD_PRESENT):
+                    logger.info('God present appear')
                     sleep(0.5)
                     self.screenshot()
                     if not self.appear(self.I_ST_GOD_PRESENT):
@@ -140,12 +141,13 @@ class ScriptTask(GameUi, SoulsTidyAssets):
                     while 1:
                         self.screenshot()
                         if not self.appear(self.I_ST_GOD_PRESENT):
+                            logger.info('God present disappear')
                             break
                         if self.click(self.C_ST_GOD_PRSENT, interval=1):
                             continue
                     sleep(0.5)
                     break
-                if self.appear_then_click(self.I_ST_DONATE, interval=3.5):
+                if self.appear_then_click(self.I_ST_DONATE, interval=5.5):
                     continue
             logger.info('Donate one')