mirror of
https://github.com/sui-feng-cb/AzurLaneAutoScript1.git
synced 2026-06-23 13:37:40 +08:00
@@ -4,6 +4,12 @@ from ..campaign_war_archives.campaign_base import CampaignBase as CampaignBase_
|
|||||||
class CampaignBase(CampaignBase_):
|
class CampaignBase(CampaignBase_):
|
||||||
def campaign_set_chapter_event(self, chapter, mode='normal'):
|
def campaign_set_chapter_event(self, chapter, mode='normal'):
|
||||||
self.ui_goto_sp()
|
self.ui_goto_sp()
|
||||||
|
if chapter in ['a', 'b', 'as', 'bs', 't', 'ts', 'tss']:
|
||||||
|
self.campaign_ensure_mode('normal')
|
||||||
|
elif chapter in ['c', 'd', 'cs', 'ds', 'ht', 'hts']:
|
||||||
|
self.campaign_ensure_mode('hard')
|
||||||
|
elif chapter == 'ex_sp':
|
||||||
|
self.campaign_ensure_mode('ex')
|
||||||
self.campaign_ensure_chapter(chapter)
|
self.campaign_ensure_chapter(chapter)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
@@ -18,4 +24,6 @@ class CampaignBase(CampaignBase_):
|
|||||||
if mode == 'hard':
|
if mode == 'hard':
|
||||||
self.config.override(Campaign_Mode='hard')
|
self.config.override(Campaign_Mode='hard')
|
||||||
|
|
||||||
self.campaign_ensure_mode_20241219(mode)
|
# this event only have chapter T/HT and chapter SP, and war archive does not have SP
|
||||||
|
# so there is no mode switch buttons
|
||||||
|
# self.campaign_ensure_mode_20241219(mode)
|
||||||
|
|||||||
@@ -121,7 +121,7 @@ class ManualConfig:
|
|||||||
MAP_CHAPTER_SWITCH_20241219_SPEX = False
|
MAP_CHAPTER_SWITCH_20241219_SPEX = False
|
||||||
# Since event_20241219_cn chapter B unlocks event startup
|
# Since event_20241219_cn chapter B unlocks event startup
|
||||||
# which means chapter AB are continuous
|
# which means chapter AB are continuous
|
||||||
STAGE_INCREASE_AB = False
|
STAGE_INCREASE_AB = True
|
||||||
# Insert anything to STAGE_INCREASE
|
# Insert anything to STAGE_INCREASE
|
||||||
STAGE_INCREASE_CUSTOM = ''
|
STAGE_INCREASE_CUSTOM = ''
|
||||||
MAP_HAS_CLEAR_PERCENTAGE = True
|
MAP_HAS_CLEAR_PERCENTAGE = True
|
||||||
|
|||||||
@@ -120,6 +120,10 @@ class EnemySearchingHandler(InfoHandler):
|
|||||||
# although here expects an enemy searching animation.
|
# although here expects an enemy searching animation.
|
||||||
if self.handle_in_stage():
|
if self.handle_in_stage():
|
||||||
return True
|
return True
|
||||||
|
# immediately enter submarine combat in W16
|
||||||
|
if hasattr(self, 'is_combat_loading') and self.is_combat_loading():
|
||||||
|
logger.warning('Entered map with is_combat_loading appeared')
|
||||||
|
break
|
||||||
if self.handle_auto_search_exit(drop=drop):
|
if self.handle_auto_search_exit(drop=drop):
|
||||||
timeout.limit = 10
|
timeout.limit = 10
|
||||||
timeout.reset()
|
timeout.reset()
|
||||||
|
|||||||
@@ -373,7 +373,6 @@ class FastForwardHandler(AutoSearchHandler):
|
|||||||
if self.config.STAGE_INCREASE_AB:
|
if self.config.STAGE_INCREASE_AB:
|
||||||
stage_increase = [
|
stage_increase = [
|
||||||
'A1 > A2 > A3 > B1 > B2 > B3',
|
'A1 > A2 > A3 > B1 > B2 > B3',
|
||||||
'C1 > C2 > C3 > D1 > D2 > D3',
|
|
||||||
] + stage_increase
|
] + stage_increase
|
||||||
custom = self.config.STAGE_INCREASE_CUSTOM
|
custom = self.config.STAGE_INCREASE_CUSTOM
|
||||||
if custom:
|
if custom:
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ class Fleet(Camera, AmbushHandler):
|
|||||||
self.show_fleet()
|
self.show_fleet()
|
||||||
self.hp_get()
|
self.hp_get()
|
||||||
self.lv_get()
|
self.lv_get()
|
||||||
self.handle_strategy(index=self.fleet_current_index)
|
self.handle_strategy(index=self.fleet_show_index)
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
|
|||||||
Reference in New Issue
Block a user