mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 08:38:20 +08:00
Fix: [CN] FleetSelector.get() failed to detect fleet 2 due to poor image quality
This commit is contained in:
@@ -29,7 +29,7 @@ class FleetSelector:
|
||||
int: Index of current fleet, 1 to 4. return 0 if unrecognized.
|
||||
"""
|
||||
for index, button in enumerate([FLEET_1, FLEET_2, FLEET_3, FLEET_4]):
|
||||
if self.main.appear(button, offset=(20, 20)):
|
||||
if self.main.appear(button, offset=(20, 20), threshold=0.75):
|
||||
return index + 1
|
||||
|
||||
logger.info('Unknown OpSi fleet')
|
||||
|
||||
Reference in New Issue
Block a user