mirror of
https://github.com/0O0o0oOoO00/Alas.git
synced 2026-05-14 21:29:26 +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