mirror of
https://github.com/LmeSzinc/AzurLaneAutoScript.git
synced 2025-01-08 12:47:32 +08:00
Add: Stage increase in TSS maps
This commit is contained in:
parent
f948fd502f
commit
61aca93cfb
@ -6,6 +6,11 @@ MASK_MAP_UI_20211125 = Mask(file='./assets/mask/MASK_MAP_UI_20211125.png')
|
|||||||
|
|
||||||
|
|
||||||
class CampaignBase(CampaignBase_):
|
class CampaignBase(CampaignBase_):
|
||||||
|
STAGE_INCREASE = [
|
||||||
|
'T1 > T2 > T3 > T4',
|
||||||
|
'TSS1 > TSS2 > TSS3 > TSS4 > TSS5',
|
||||||
|
]
|
||||||
|
|
||||||
def map_data_init(self, map_):
|
def map_data_init(self, map_):
|
||||||
super().map_data_init(map_)
|
super().map_data_init(map_)
|
||||||
# Patch ui_mask, get rid of map mechanism
|
# Patch ui_mask, get rid of map mechanism
|
||||||
|
@ -56,11 +56,5 @@ class Campaign(CampaignBase):
|
|||||||
MAP = MAP
|
MAP = MAP
|
||||||
ENEMY_FILTER = '1L > 1M > 1E > 1C > 2L > 2M > 2E > 2C > 3L > 3M > 3E > 3C'
|
ENEMY_FILTER = '1L > 1M > 1E > 1C > 2L > 2M > 2E > 2C > 3L > 3M > 3E > 3C'
|
||||||
|
|
||||||
def battle_0(self):
|
|
||||||
if self.clear_filter_enemy(self.ENEMY_FILTER, preserve=0):
|
|
||||||
return True
|
|
||||||
|
|
||||||
return self.battle_default()
|
|
||||||
|
|
||||||
def battle_0(self):
|
def battle_0(self):
|
||||||
return self.clear_boss()
|
return self.clear_boss()
|
@ -51,11 +51,5 @@ class Campaign(CampaignBase):
|
|||||||
MAP = MAP
|
MAP = MAP
|
||||||
ENEMY_FILTER = '1L > 1M > 1E > 1C > 2L > 2M > 2E > 2C > 3L > 3M > 3E > 3C'
|
ENEMY_FILTER = '1L > 1M > 1E > 1C > 2L > 2M > 2E > 2C > 3L > 3M > 3E > 3C'
|
||||||
|
|
||||||
def battle_0(self):
|
|
||||||
if self.clear_filter_enemy(self.ENEMY_FILTER, preserve=0):
|
|
||||||
return True
|
|
||||||
|
|
||||||
return self.battle_default()
|
|
||||||
|
|
||||||
def battle_0(self):
|
def battle_0(self):
|
||||||
return self.clear_boss()
|
return self.clear_boss()
|
@ -51,11 +51,5 @@ class Campaign(CampaignBase):
|
|||||||
MAP = MAP
|
MAP = MAP
|
||||||
ENEMY_FILTER = '1L > 1M > 1E > 1C > 2L > 2M > 2E > 2C > 3L > 3M > 3E > 3C'
|
ENEMY_FILTER = '1L > 1M > 1E > 1C > 2L > 2M > 2E > 2C > 3L > 3M > 3E > 3C'
|
||||||
|
|
||||||
def battle_0(self):
|
|
||||||
if self.clear_filter_enemy(self.ENEMY_FILTER, preserve=0):
|
|
||||||
return True
|
|
||||||
|
|
||||||
return self.battle_default()
|
|
||||||
|
|
||||||
def battle_0(self):
|
def battle_0(self):
|
||||||
return self.clear_boss()
|
return self.clear_boss()
|
@ -57,11 +57,5 @@ class Campaign(CampaignBase):
|
|||||||
MAP = MAP
|
MAP = MAP
|
||||||
ENEMY_FILTER = '1L > 1M > 1E > 1C > 2L > 2M > 2E > 2C > 3L > 3M > 3E > 3C'
|
ENEMY_FILTER = '1L > 1M > 1E > 1C > 2L > 2M > 2E > 2C > 3L > 3M > 3E > 3C'
|
||||||
|
|
||||||
def battle_0(self):
|
|
||||||
if self.clear_filter_enemy(self.ENEMY_FILTER, preserve=0):
|
|
||||||
return True
|
|
||||||
|
|
||||||
return self.battle_default()
|
|
||||||
|
|
||||||
def battle_0(self):
|
def battle_0(self):
|
||||||
return self.clear_boss()
|
return self.clear_boss()
|
@ -57,11 +57,5 @@ class Campaign(CampaignBase):
|
|||||||
MAP = MAP
|
MAP = MAP
|
||||||
ENEMY_FILTER = '1L > 1M > 1E > 1C > 2L > 2M > 2E > 2C > 3L > 3M > 3E > 3C'
|
ENEMY_FILTER = '1L > 1M > 1E > 1C > 2L > 2M > 2E > 2C > 3L > 3M > 3E > 3C'
|
||||||
|
|
||||||
def battle_0(self):
|
|
||||||
if self.clear_filter_enemy(self.ENEMY_FILTER, preserve=0):
|
|
||||||
return True
|
|
||||||
|
|
||||||
return self.battle_default()
|
|
||||||
|
|
||||||
def battle_0(self):
|
def battle_0(self):
|
||||||
return self.clear_boss()
|
return self.clear_boss()
|
@ -239,6 +239,16 @@ class CampaignRun(CampaignEvent):
|
|||||||
logger.info(f'When running chapter TH of event_20221124_cn, '
|
logger.info(f'When running chapter TH of event_20221124_cn, '
|
||||||
f'StopCondition.MapAchievement is forced set to threat_safe')
|
f'StopCondition.MapAchievement is forced set to threat_safe')
|
||||||
self.config.override(StopCondition_MapAchievement='threat_safe')
|
self.config.override(StopCondition_MapAchievement='threat_safe')
|
||||||
|
# event_20211125_cn, TSS maps are on time maps
|
||||||
|
if folder == 'event_20211125_cn' and 'tss' in name:
|
||||||
|
self.config.override(
|
||||||
|
StopCondition_OilLimit=0, # No oil cost
|
||||||
|
StopCondition_MapAchievement='100_percent_clear',
|
||||||
|
StopCondition_StageIncrease=True,
|
||||||
|
Emotion_Mode='ignore', # No emotion cost
|
||||||
|
Fleet_Fleet2=0, # Has only one fleet
|
||||||
|
Submarine_Fleet=0, # No submarine
|
||||||
|
)
|
||||||
# Stage loop
|
# Stage loop
|
||||||
for alias, stages in self.config.STAGE_LOOP_ALIAS.items():
|
for alias, stages in self.config.STAGE_LOOP_ALIAS.items():
|
||||||
alias_folder, alias = alias
|
alias_folder, alias = alias
|
||||||
|
Loading…
Reference in New Issue
Block a user