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

Add: Coalition task

This commit is contained in:
LmeSzinc
2023-03-24 04:32:48 +08:00
parent 7147fd1646
commit 7ecf3ac502
13 changed files with 163 additions and 48 deletions

View File

@@ -17,6 +17,7 @@ FLEET_SWITCH.add_status('multi', FLEET_SWITCH_MULTI)
class CoalitionUI(Combat):
def in_coalition(self):
# The same as raid
return self.appear(COALITION_CHECK, offset=(20, 20))
def coalition_ensure_mode(self, mode):
@@ -72,6 +73,24 @@ class CoalitionUI(Combat):
raise CampaignNameError
@staticmethod
def coalition_get_battles(stage):
"""
Args:
stage (str): Stage name.
Returns:
int: Number of battles
"""
if stage == 'tc1':
return 1
if stage == 'tc2':
return 2
if stage == 'tc3':
return 3
return 1
def handle_fleet_preparation(self, stage, fleet):
stage = stage.lower()