mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 09:48:20 +08:00
Fix: [JP] SUBMARINE_BAR
This commit is contained in:
@@ -251,7 +251,8 @@ class FleetOperator:
|
||||
"""
|
||||
# Check the brightness of the rightest column of the bar area.
|
||||
luma = rgb2gray(self.main.image_crop(self._bar.button))[:, -1]
|
||||
return np.sum(luma > 127) / luma.size > 0.5
|
||||
# FLEET_PREPARATION is about 146~155
|
||||
return np.sum(luma > 168) / luma.size > 0.5
|
||||
|
||||
def ensure_to_be(self, index):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user