1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-11 22:08:20 +08:00

Merge pull request #361 from noname94/patch1

Fix: [JP] Guild mission choose disabled until we get the screenshot
This commit is contained in:
LmeSzinc
2021-02-22 14:13:36 +08:00
committed by GitHub

View File

@@ -174,13 +174,14 @@ class GuildLogistics(GuildBase):
elif not self.image_color_count(GUILD_MISSION, color=(255, 255, 255), threshold=180, count=50):
# No guild mission counter
logger.info('No guild mission found, mission of this week may not started')
if self.image_color_count(GUILD_MISSION_CHOOSE, color=(255, 255, 255), threshold=221, count=100):
# Guild mission choose available if user is guild master
logger.info('Guild mission choose found')
return True
else:
logger.info('Guild mission choose not found')
return False
# Guild mission choose in JP server disabled until we get the screenshot.
# if self.image_color_count(GUILD_MISSION_CHOOSE, color=(255, 255, 255), threshold=221, count=100):
# # Guild mission choose available if user is guild master
# logger.info('Guild mission choose found')
# return True
# else:
# logger.info('Guild mission choose not found')
# return False
else:
logger.info('Unknown guild mission condition. Skipped.')
return False