mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-13 04:27:00 +08:00
Upd: MAP_WALK_USE_CURRENT_FLEET in 16-3 and 16-4
This commit is contained in:
@@ -60,6 +60,7 @@ class Config:
|
||||
MAP_HAS_AMBUSH = True
|
||||
|
||||
# ===== End of generated config =====
|
||||
|
||||
MAP_HAS_SUBMARINE_SUPPORT = True
|
||||
|
||||
|
||||
|
||||
@@ -56,6 +56,7 @@ class Config(ConfigBase):
|
||||
MAP_HAS_FLEET_STEP = False
|
||||
MAP_HAS_AMBUSH = True
|
||||
# ===== End of generated config =====
|
||||
|
||||
MAP_HAS_SUBMARINE_SUPPORT = True
|
||||
|
||||
|
||||
|
||||
@@ -49,6 +49,7 @@ class Config(ConfigBase):
|
||||
MAP_HAS_FLEET_STEP = False
|
||||
MAP_HAS_AMBUSH = True
|
||||
# ===== End of generated config =====
|
||||
|
||||
INTERNAL_LINES_FIND_PEAKS_PARAMETERS = {
|
||||
'height': (120, 255 - 17),
|
||||
'width': (0.9, 10),
|
||||
@@ -63,6 +64,7 @@ class Config(ConfigBase):
|
||||
}
|
||||
INTERNAL_LINES_HOUGHLINES_THRESHOLD = 25
|
||||
EDGE_LINES_HOUGHLINES_THRESHOLD = 25
|
||||
MAP_WALK_USE_CURRENT_FLEET = True
|
||||
|
||||
|
||||
class Campaign(CampaignBase):
|
||||
|
||||
@@ -56,6 +56,7 @@ class Config(ConfigBase):
|
||||
MAP_HAS_FLEET_STEP = False
|
||||
MAP_HAS_AMBUSH = True
|
||||
# ===== End of generated config =====
|
||||
|
||||
INTERNAL_LINES_FIND_PEAKS_PARAMETERS = {
|
||||
'height': (120, 255 - 17),
|
||||
'width': (0.9, 10),
|
||||
@@ -70,15 +71,13 @@ class Config(ConfigBase):
|
||||
}
|
||||
INTERNAL_LINES_HOUGHLINES_THRESHOLD = 25
|
||||
EDGE_LINES_HOUGHLINES_THRESHOLD = 25
|
||||
MAP_WALK_USE_CURRENT_FLEET = True
|
||||
|
||||
|
||||
class Campaign(CampaignBase):
|
||||
MAP = MAP
|
||||
|
||||
def battle_0(self):
|
||||
if not self.map_is_clear_mode:
|
||||
self.destroy_land_base(C1, D1, D1)
|
||||
|
||||
def battle_default(self):
|
||||
if self.clear_roadblocks(roads):
|
||||
return True
|
||||
if self.clear_potential_roadblocks(roads):
|
||||
@@ -86,6 +85,33 @@ class Campaign(CampaignBase):
|
||||
if self.clear_filter_enemy(self.ENEMY_FILTER, preserve=1):
|
||||
return True
|
||||
|
||||
return super().battle_default()
|
||||
|
||||
def battle_0(self):
|
||||
if self.clear_chosen_enemy(D4):
|
||||
return True
|
||||
|
||||
return self.battle_default()
|
||||
|
||||
def battle_1(self):
|
||||
if not self.map_is_clear_mode:
|
||||
self.destroy_land_base(C1, D1, D1)
|
||||
|
||||
if self.clear_chosen_enemy(F5):
|
||||
return True
|
||||
|
||||
return self.battle_default()
|
||||
|
||||
def battle_2(self):
|
||||
if self.clear_chosen_enemy(G4):
|
||||
return True
|
||||
|
||||
return self.battle_default()
|
||||
|
||||
def battle_3(self):
|
||||
if self.clear_chosen_enemy(H3):
|
||||
return True
|
||||
|
||||
return self.battle_default()
|
||||
|
||||
def battle_4(self):
|
||||
@@ -103,5 +129,5 @@ class Campaign(CampaignBase):
|
||||
return True
|
||||
if self.clear_filter_enemy(self.ENEMY_FILTER, preserve=0):
|
||||
return True
|
||||
|
||||
|
||||
return self.battle_default()
|
||||
|
||||
Reference in New Issue
Block a user