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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user