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

Fix:[TW]support server_support_status_fleet in campaign\gems_farming (#3285)

* Fix:[TW]support server_support_status_fleet in campaign\gems_farming

* Fix:[TW]ship scan asset

* Fix:[TW]remove server_support in retirement and gems_farming

---------

Co-authored-by: LmeSzinc <lmeszincsales@gmail.com>
This commit is contained in:
RilyLC
2023-11-15 18:28:47 +08:00
committed by GitHub
parent 39ba51343b
commit d84010bfb1
11 changed files with 8 additions and 28 deletions

View File

@@ -188,12 +188,6 @@ class GemsFarming(CampaignRun, Dock, EquipmentChange):
level=(1, 31), emotion=(10, 150), fleet=self.config.Fleet_Fleet1, status='free')
scanner.disable('rarity')
if not self.server_support_status_fleet_scan():
logger.info(f'Server {self.config.SERVER} does not yet support status and fleet scanning')
logger.info('Please contact the developer to improve as soon as possible')
scanner.disable('status', 'fleet')
scanner.set_limitation(level=(1, 1))
if self.config.GemsFarming_CommonCV == 'any':
logger.info('')
@@ -254,9 +248,6 @@ class GemsFarming(CampaignRun, Dock, EquipmentChange):
fleet=self.config.Fleet_Fleet1, status='free')
scanner.disable('rarity')
if not self.server_support_status_fleet_scan():
scanner.disable('status', 'fleet')
ships = scanner.scan(self.device.image)
if ships:
# Don't need to change current
@@ -390,6 +381,3 @@ class GemsFarming(CampaignRun, Dock, EquipmentChange):
continue
else:
break
def server_support_status_fleet_scan(self) -> bool:
return self.config.SERVER in ['cn', 'en', 'jp']