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

Fix: Detection of pending commissions (#221)

- Fix: Change COMMISSION_HAS_PENDING to a larger area, and count pixels, because it's not a static area
- Add image_color_count()
This commit is contained in:
LmeSzinc
2020-10-11 17:49:14 +08:00
parent 1d3fa9ed42
commit a0558bfa69
6 changed files with 21 additions and 2 deletions

View File

@@ -665,7 +665,7 @@ class RewardCommission(UI, InfoHandler):
if not self.config.ENABLE_COMMISSION_REWARD:
return False
if not self.appear(COMMISSION_HAS_PENDING):
if not self.image_color_count(COMMISSION_HAS_PENDING, color=(74, 199, 173), threshold=221, count=40):
logger.info('No commission pending')
return False