mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-26 04:45:03 +08:00
Fix: Protect fleet2 in D2 to archive 3 stars
This commit is contained in:
@@ -71,6 +71,7 @@ class Config:
|
|||||||
# 'width': (0, 7),
|
# 'width': (0, 7),
|
||||||
'wlen': 1000
|
'wlen': 1000
|
||||||
}
|
}
|
||||||
|
MAP_WALK_USE_CURRENT_FLEET = True
|
||||||
MAP_HAS_MAZE = True
|
MAP_HAS_MAZE = True
|
||||||
MAP_SWIPE_MULTIPLY = 1.844
|
MAP_SWIPE_MULTIPLY = 1.844
|
||||||
MAP_SWIPE_MULTIPLY_MINITOUCH = 1.783
|
MAP_SWIPE_MULTIPLY_MINITOUCH = 1.783
|
||||||
|
|||||||
@@ -59,6 +59,7 @@ class Config:
|
|||||||
# ===== End of generated config =====
|
# ===== End of generated config =====
|
||||||
|
|
||||||
MAP_HAS_MAZE = True
|
MAP_HAS_MAZE = True
|
||||||
|
MAP_WALK_USE_CURRENT_FLEET = True
|
||||||
MAP_SWIPE_MULTIPLY = 1.844
|
MAP_SWIPE_MULTIPLY = 1.844
|
||||||
MAP_SWIPE_MULTIPLY_MINITOUCH = 1.783
|
MAP_SWIPE_MULTIPLY_MINITOUCH = 1.783
|
||||||
|
|
||||||
|
|||||||
@@ -70,7 +70,9 @@ class Campaign(CampaignBase):
|
|||||||
MAP = MAP
|
MAP = MAP
|
||||||
|
|
||||||
def battle_0(self):
|
def battle_0(self):
|
||||||
self.fleet_2_protect()
|
self.fleet_2_step_on(SelectedGrids([A1]), roadblocks=[])
|
||||||
|
if self.fleet_2_protect():
|
||||||
|
return True
|
||||||
|
|
||||||
if self.clear_siren():
|
if self.clear_siren():
|
||||||
return True
|
return True
|
||||||
@@ -82,6 +84,17 @@ class Campaign(CampaignBase):
|
|||||||
|
|
||||||
return self.battle_default()
|
return self.battle_default()
|
||||||
|
|
||||||
|
def battle_2(self):
|
||||||
|
if self.clear_siren():
|
||||||
|
return True
|
||||||
|
|
||||||
|
if self.clear_enemy(scale=(2,)):
|
||||||
|
return True
|
||||||
|
if self.clear_enemy(scale=(3,)):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.battle_default()
|
||||||
|
|
||||||
def battle_5(self):
|
def battle_5(self):
|
||||||
if self.clear_enemy(scale=(1,)):
|
if self.clear_enemy(scale=(1,)):
|
||||||
return True
|
return True
|
||||||
|
|||||||
@@ -623,9 +623,10 @@ class Map(Fleet):
|
|||||||
Returns:
|
Returns:
|
||||||
bool: If clear an enemy.
|
bool: If clear an enemy.
|
||||||
"""
|
"""
|
||||||
if self.fleet_boss_index != 2 or not self.config.MAP_HAS_MOVABLE_ENEMY:
|
if not self.config.FLEET_2 or not self.config.MAP_HAS_MOVABLE_ENEMY:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
# When having 2 fleet
|
||||||
for n in range(20):
|
for n in range(20):
|
||||||
if not self.map.select(is_siren=True):
|
if not self.map.select(is_siren=True):
|
||||||
return False
|
return False
|
||||||
|
|||||||
Reference in New Issue
Block a user