1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-26 17:27:53 +08:00

Upd: wait oil until the same as last

This commit is contained in:
2025-10-28 23:46:08 +08:00
parent 007633de7b
commit 908838dc43
2 changed files with 5 additions and 3 deletions

View File

@@ -126,6 +126,7 @@ class CampaignStatus(UI):
int: Oil amount
"""
_oil = {}
last = 0
timeout = Timer(1, count=2).start()
while 1:
if skip_first_screenshot:
@@ -145,8 +146,9 @@ class CampaignStatus(UI):
'Value': self._get_num(OCR_OIL, 'OCR_OIL', (247, 247, 247)),
'Limit': self._get_num(OCR_OIL_LIMIT, 'OCR_OIL_LIMIT', (247, 247, 247))
}
if _oil['Value'] >= 100:
if last == _oil['Value'] and _oil['Value'] >= 100 and _oil['Limit'] <= 50000:
break
last = _oil['Value']
LogRes(self.config).Oil = _oil
if update:
self.config.update()