Fix: OCR_LEVEL in BattlePass

This commit is contained in:
Zebartin 2023-11-17 12:37:16 +08:00 committed by LmeSzinc
parent c8e54c220d
commit 10e4f49d90
4 changed files with 6 additions and 6 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.0 KiB

After

Width:  |  Height:  |  Size: 13 KiB

View File

@ -278,7 +278,7 @@ class AzurLaneConfig(ConfigUpdater, ManualConfig, GeneratedConfig, ConfigWatcher
if isinstance(next_run, datetime) and next_run > limit:
deep_set(self.data, keys=f"{task}.Scheduler.NextRun", value=now)
limit_next_run(['BattlePass'], limit=now + timedelta(days=31, seconds=-1))
limit_next_run(['BattlePass'], limit=now + timedelta(days=40, seconds=-1))
limit_next_run(self.args.keys(), limit=now + timedelta(hours=24, seconds=-1))
def override(self, **kwargs):

View File

@ -77,10 +77,10 @@ OCR_LEVEL = ButtonWrapper(
name='OCR_LEVEL',
share=Button(
file='./assets/share/battle_pass/OCR_LEVEL.png',
area=(183, 93, 240, 134),
search=(163, 73, 260, 154),
color=(90, 79, 60),
button=(183, 93, 240, 134),
area=(167, 103, 249, 143),
search=(147, 83, 269, 163),
color=(134, 119, 94),
button=(167, 103, 249, 143),
),
)
OCR_REMAINING_TIME = ButtonWrapper(

View File

@ -73,7 +73,7 @@ class BattlePassQuestOcr(Ocr):
class BattlePassUI(UI):
MAX_LEVEL = 50
MAX_LEVEL = 70
def _battle_pass_wait_rewards_loaded(self, skip_first_screenshot=True):
timeout = Timer(2, count=4).start()