mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-30 02:47:13 +08:00
Add: Chapter SP
- Spilt map config MAP_CHAPTER_SWITCH_20241219 and MAP_HAS_MODE_SWITCH
This commit is contained in:
@@ -59,6 +59,7 @@ class Config:
|
|||||||
|
|
||||||
STAGE_ENTRANCE = ['half', '20240725']
|
STAGE_ENTRANCE = ['half', '20240725']
|
||||||
MAP_CHAPTER_SWITCH_20241219 = True
|
MAP_CHAPTER_SWITCH_20241219 = True
|
||||||
|
MAP_HAS_MODE_SWITCH = True
|
||||||
MAP_HAS_MOVABLE_NORMAL_ENEMY = True
|
MAP_HAS_MOVABLE_NORMAL_ENEMY = True
|
||||||
MAP_SIREN_HAS_BOSS_ICON_SMALL = True
|
MAP_SIREN_HAS_BOSS_ICON_SMALL = True
|
||||||
|
|
||||||
|
|||||||
@@ -60,6 +60,7 @@ class Config:
|
|||||||
|
|
||||||
STAGE_ENTRANCE = ['half', '20240725']
|
STAGE_ENTRANCE = ['half', '20240725']
|
||||||
MAP_CHAPTER_SWITCH_20241219 = True
|
MAP_CHAPTER_SWITCH_20241219 = True
|
||||||
|
MAP_HAS_MODE_SWITCH = True
|
||||||
MAP_HAS_MOVABLE_NORMAL_ENEMY = True
|
MAP_HAS_MOVABLE_NORMAL_ENEMY = True
|
||||||
MAP_SIREN_HAS_BOSS_ICON_SMALL = True
|
MAP_SIREN_HAS_BOSS_ICON_SMALL = True
|
||||||
|
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ class Campaign(CampaignBase):
|
|||||||
def battle_0(self):
|
def battle_0(self):
|
||||||
if self.clear_siren():
|
if self.clear_siren():
|
||||||
return True
|
return True
|
||||||
if self.clear_filter_enemy(self.ENEMY_FILTER, preserve=0):
|
if self.clear_enemy(sort=('weight', 'cost_2', 'cost_1')):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
return self.battle_default()
|
return self.battle_default()
|
||||||
|
|||||||
@@ -59,6 +59,7 @@ class Config:
|
|||||||
|
|
||||||
STAGE_ENTRANCE = ['half', '20240725']
|
STAGE_ENTRANCE = ['half', '20240725']
|
||||||
MAP_CHAPTER_SWITCH_20241219 = True
|
MAP_CHAPTER_SWITCH_20241219 = True
|
||||||
|
MAP_HAS_MODE_SWITCH = True
|
||||||
MAP_HAS_MOVABLE_NORMAL_ENEMY = True
|
MAP_HAS_MOVABLE_NORMAL_ENEMY = True
|
||||||
MAP_SIREN_HAS_BOSS_ICON_SMALL = True
|
MAP_SIREN_HAS_BOSS_ICON_SMALL = True
|
||||||
|
|
||||||
|
|||||||
@@ -60,6 +60,7 @@ class Config:
|
|||||||
|
|
||||||
STAGE_ENTRANCE = ['half', '20240725']
|
STAGE_ENTRANCE = ['half', '20240725']
|
||||||
MAP_CHAPTER_SWITCH_20241219 = True
|
MAP_CHAPTER_SWITCH_20241219 = True
|
||||||
|
MAP_HAS_MODE_SWITCH = True
|
||||||
MAP_HAS_MOVABLE_NORMAL_ENEMY = True
|
MAP_HAS_MOVABLE_NORMAL_ENEMY = True
|
||||||
MAP_SIREN_HAS_BOSS_ICON_SMALL = True
|
MAP_SIREN_HAS_BOSS_ICON_SMALL = True
|
||||||
|
|
||||||
|
|||||||
@@ -25,11 +25,11 @@ MAP.weight_data = """
|
|||||||
50 50 50 50 50 50 50 50 50 50 50
|
50 50 50 50 50 50 50 50 50 50 50
|
||||||
50 50 50 50 50 50 50 50 50 50 50
|
50 50 50 50 50 50 50 50 50 50 50
|
||||||
50 50 50 50 50 50 50 50 50 50 50
|
50 50 50 50 50 50 50 50 50 50 50
|
||||||
50 50 50 50 50 50 50 50 50 50 50
|
50 50 10 50 50 50 50 50 50 50 50
|
||||||
50 50 50 50 50 50 50 50 50 50 50
|
50 50 10 10 10 10 10 50 50 50 50
|
||||||
50 50 50 50 50 50 50 50 50 50 50
|
50 50 10 10 10 10 10 50 50 50 50
|
||||||
50 50 50 50 50 50 50 50 50 50 50
|
50 50 10 10 10 10 10 50 50 50 50
|
||||||
50 50 50 50 50 50 50 50 50 50 50
|
50 50 10 10 10 10 10 50 50 50 50
|
||||||
"""
|
"""
|
||||||
MAP.spawn_data = [
|
MAP.spawn_data = [
|
||||||
{'battle': 0, 'enemy': 2, 'siren': 2},
|
{'battle': 0, 'enemy': 2, 'siren': 2},
|
||||||
@@ -76,7 +76,7 @@ class Campaign(CampaignBase):
|
|||||||
def battle_0(self):
|
def battle_0(self):
|
||||||
if self.clear_siren():
|
if self.clear_siren():
|
||||||
return True
|
return True
|
||||||
if self.clear_filter_enemy(self.ENEMY_FILTER, preserve=1):
|
if self.clear_enemy(sort=('weight', 'cost_2', 'cost_1')):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
return self.battle_default()
|
return self.battle_default()
|
||||||
@@ -84,7 +84,7 @@ class Campaign(CampaignBase):
|
|||||||
def battle_5(self):
|
def battle_5(self):
|
||||||
if self.clear_siren():
|
if self.clear_siren():
|
||||||
return True
|
return True
|
||||||
if self.clear_filter_enemy(self.ENEMY_FILTER, preserve=0):
|
if self.clear_enemy(sort=('weight', 'cost_2', 'cost_1')):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
return self.battle_default()
|
return self.battle_default()
|
||||||
|
|||||||
@@ -197,7 +197,7 @@ class CampaignUI(MapOperation, CampaignEvent, CampaignOcr):
|
|||||||
Button:
|
Button:
|
||||||
"""
|
"""
|
||||||
entrance_name = name
|
entrance_name = name
|
||||||
if self.config.MAP_HAS_MODE_SWITCH or self.config.MAP_CHAPTER_SWITCH_20241219:
|
if self.config.MAP_HAS_MODE_SWITCH:
|
||||||
for mode_name in self.campaign_get_mode_names(name):
|
for mode_name in self.campaign_get_mode_names(name):
|
||||||
if mode_name in self.stage_entrance:
|
if mode_name in self.stage_entrance:
|
||||||
name = mode_name
|
name = mode_name
|
||||||
|
|||||||
@@ -265,7 +265,7 @@ class MapOperation(MysteryHandler, FleetPreparation, Retirement, FastForwardHand
|
|||||||
bool: If map mode satisfied
|
bool: If map mode satisfied
|
||||||
Always True if map doesn't have mode switch in map preparation
|
Always True if map doesn't have mode switch in map preparation
|
||||||
"""
|
"""
|
||||||
if not self.config.MAP_HAS_MODE_SWITCH and not self.config.MAP_CHAPTER_SWITCH_20241219:
|
if not self.config.MAP_HAS_MODE_SWITCH:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
if mode == 'normal':
|
if mode == 'normal':
|
||||||
|
|||||||
Reference in New Issue
Block a user