mirror of
https://github.com/LmeSzinc/AzurLaneAutoScript.git
synced 2025-01-08 12:27:33 +08:00
Refactor: 7-2 mystery farming
This commit is contained in:
parent
c3183d9b7a
commit
2c58be0c21
6
alas.py
6
alas.py
@ -153,6 +153,12 @@ class AzurLaneAutoScript:
|
||||
folder=self.config.Campaign_Event,
|
||||
mode=self.config.Campaign_Mode)
|
||||
|
||||
def c72_mystery_farming(self):
|
||||
CampaignRun(config=self.config, device=self.device).run(
|
||||
name='campaign_7_2_mystery_farming',
|
||||
folder='campaign_main',
|
||||
mode='normal')
|
||||
|
||||
def gems_farming(self):
|
||||
GemsFarming(config=self.config, device=self.device).run(
|
||||
name=self.config.Campaign_Name,
|
||||
|
@ -27,7 +27,7 @@ class Campaign(CampaignBase):
|
||||
MAP = MAP
|
||||
|
||||
def battle_0(self):
|
||||
if self.config.C72_BOSS_FLEET_STEP_ON_A3:
|
||||
if self.config.C72MysteryFarming_StepOnA3:
|
||||
if self.fleet_2_step_on(FLEET_2_STEP_ON, roadblocks=[ROAD_MAIN]):
|
||||
return True
|
||||
|
||||
@ -59,7 +59,7 @@ class Campaign(CampaignBase):
|
||||
return self.battle_default()
|
||||
|
||||
def battle_3(self):
|
||||
if self.config.C72_BOSS_FLEET_STEP_ON_A3:
|
||||
if self.config.C72MysteryFarming_StepOnA3:
|
||||
ignore = None
|
||||
if self.fleet_at(A3, fleet=2):
|
||||
ignore = SelectedGrids([A2])
|
||||
|
@ -111,6 +111,67 @@ Main:
|
||||
RepairUseSingleThreshold: 0.3
|
||||
RepairUseMultiThreshold: 0.6
|
||||
LowHpRetreatThreshold: 0.3
|
||||
C72MysteryFarming:
|
||||
Scheduler:
|
||||
Enable: false
|
||||
NextRun: 2020-01-01 00:00:00
|
||||
Command: C72MysteryFarming
|
||||
SuccessInterval: 0
|
||||
FailureInterval: 120
|
||||
ServerUpdate: 00:00
|
||||
C72MysteryFarming:
|
||||
StepOnA3: true
|
||||
Campaign:
|
||||
Name: 7-2
|
||||
Event: campaign_main
|
||||
Mode: normal
|
||||
UseClearMode: true
|
||||
UseFleetLock: true
|
||||
UseAutoSearch: false
|
||||
Use2xBook: false
|
||||
AmbushEvade: true
|
||||
StopCondition:
|
||||
RunCount: 0
|
||||
OilLimit: 1000
|
||||
MapAchievement: non_stop
|
||||
GetNewShip: false
|
||||
ReachLevel120: false
|
||||
Fleet:
|
||||
Fleet1: 1
|
||||
Fleet1Formation: double_line
|
||||
Fleet1Mode: combat_auto
|
||||
Fleet1Step: 3
|
||||
Fleet2: 2
|
||||
Fleet2Formation: double_line
|
||||
Fleet2Mode: combat_auto
|
||||
Fleet2Step: 2
|
||||
FleetOrder: fleet1_mob_fleet2_boss
|
||||
AutoSearchFleetOrder: fleet1_mob_fleet2_boss
|
||||
Submarine:
|
||||
Fleet: 0
|
||||
Mode: do_not_use
|
||||
Emotion:
|
||||
CalculateEmotion: true
|
||||
IgnoreLowEmotionWarn: false
|
||||
Fleet1Value: 119
|
||||
Fleet1Record: 2020-01-01 00:00:00
|
||||
Fleet1Control: prevent_yellow_face
|
||||
Fleet1Recover: not_in_dormitory
|
||||
Fleet1Oath: false
|
||||
Fleet2Value: 119
|
||||
Fleet2Record: 2020-01-01 00:00:00
|
||||
Fleet2Control: prevent_yellow_face
|
||||
Fleet2Recover: not_in_dormitory
|
||||
Fleet2Oath: false
|
||||
HpControl:
|
||||
UseHpBalance: false
|
||||
UseEmergencyRepair: false
|
||||
UseLowHpRetreat: false
|
||||
HpBalanceThreshold: 0.2
|
||||
HpBalanceWeight: 1000, 1000, 1000
|
||||
RepairUseSingleThreshold: 0.3
|
||||
RepairUseMultiThreshold: 0.6
|
||||
LowHpRetreatThreshold: 0.3
|
||||
GemsFarming:
|
||||
Scheduler:
|
||||
Enable: false
|
||||
|
@ -163,6 +163,105 @@ Main:
|
||||
RepairUseSingleThreshold: 0.3
|
||||
RepairUseMultiThreshold: 0.6
|
||||
LowHpRetreatThreshold: 0.3
|
||||
C72MysteryFarming:
|
||||
_info:
|
||||
Menu: Main
|
||||
Scheduler:
|
||||
Enable: false
|
||||
NextRun: 2020-01-01 00:00:00
|
||||
Command: C72MysteryFarming
|
||||
SuccessInterval: 0
|
||||
FailureInterval: 120
|
||||
ServerUpdate: 00:00
|
||||
C72MysteryFarming:
|
||||
StepOnA3: true
|
||||
Campaign:
|
||||
Name: 7-2
|
||||
Event: campaign_main
|
||||
Mode:
|
||||
value: normal
|
||||
option: ['normal', 'hard']
|
||||
UseClearMode: true
|
||||
UseFleetLock: true
|
||||
UseAutoSearch: false
|
||||
Use2xBook: false
|
||||
AmbushEvade: true
|
||||
StopCondition:
|
||||
RunCount: 0
|
||||
OilLimit: 1000
|
||||
MapAchievement:
|
||||
value: non_stop
|
||||
option: ['non_stop', '100_percent_clear', 'map_3_stars', 'threat_safe', 'threat_safe_without_3_stars']
|
||||
GetNewShip: false
|
||||
ReachLevel120: false
|
||||
Fleet:
|
||||
Fleet1:
|
||||
value: 1
|
||||
option: [1, 2, 3, 4, 5, 6]
|
||||
Fleet1Formation:
|
||||
value: double_line
|
||||
option: ['line_ahead', 'double_line', 'diamond']
|
||||
Fleet1Mode:
|
||||
value: combat_auto
|
||||
option: ['combat_auto', 'combat_manual', 'stand_still_in_the_middle', 'hide_in_bottom_left']
|
||||
Fleet1Step:
|
||||
value: 3
|
||||
option: [2, 3, 4, 5]
|
||||
Fleet2:
|
||||
value: 2
|
||||
option: [0, 1, 2, 3, 4, 5, 6]
|
||||
Fleet2Formation:
|
||||
value: double_line
|
||||
option: ['line_ahead', 'double_line', 'diamond']
|
||||
Fleet2Mode:
|
||||
value: combat_auto
|
||||
option: ['combat_auto', 'combat_manual', 'stand_still_in_the_middle', 'hide_in_bottom_left']
|
||||
Fleet2Step:
|
||||
value: 2
|
||||
option: [2, 3, 4, 5]
|
||||
FleetOrder:
|
||||
value: fleet1_mob_fleet2_boss
|
||||
option: ['fleet1_mob_fleet2_boss', 'fleet1_all_fleet2_standby']
|
||||
AutoSearchFleetOrder:
|
||||
value: fleet1_mob_fleet2_boss
|
||||
option: ['fleet1_mob_fleet2_boss', 'fleet1_boss_fleet2_mob', 'fleet1_all_fleet2_standby', 'fleet1_standby_fleet2_all']
|
||||
Submarine:
|
||||
Fleet:
|
||||
value: 0
|
||||
option: [0, 1, 2]
|
||||
Mode:
|
||||
value: do_not_use
|
||||
option: ['do_not_use','hunt_only', 'every_combat']
|
||||
Emotion:
|
||||
CalculateEmotion: true
|
||||
IgnoreLowEmotionWarn: false
|
||||
Fleet1Value: 119
|
||||
Fleet1Record: 2020-01-01 00:00:00
|
||||
Fleet1Control:
|
||||
value: prevent_yellow_face
|
||||
option: ['keep_exp_bonus', 'prevent_green_face', 'prevent_yellow_face', 'prevent_red_face']
|
||||
Fleet1Recover:
|
||||
value: not_in_dormitory
|
||||
option: ['not_in_dormitory', 'dormitory_floor_1', 'dormitory_floor_2']
|
||||
Fleet1Oath: false
|
||||
Fleet2Value: 119
|
||||
Fleet2Record: 2020-01-01 00:00:00
|
||||
Fleet2Control:
|
||||
value: prevent_yellow_face
|
||||
option: ['keep_exp_bonus', 'prevent_green_face', 'prevent_yellow_face', 'prevent_red_face']
|
||||
Fleet2Recover:
|
||||
value: not_in_dormitory
|
||||
option: ['not_in_dormitory', 'dormitory_floor_1', 'dormitory_floor_2']
|
||||
Fleet2Oath: false
|
||||
HpControl:
|
||||
UseHpBalance: false
|
||||
UseEmergencyRepair: false
|
||||
UseLowHpRetreat: false
|
||||
HpBalanceThreshold: 0.2
|
||||
HpBalanceWeight: 1000, 1000, 1000
|
||||
RepairUseSingleThreshold: 0.3
|
||||
RepairUseMultiThreshold: 0.6
|
||||
LowHpRetreatThreshold: 0.3
|
||||
GemsFarming:
|
||||
_info:
|
||||
Menu: Main
|
||||
|
@ -93,6 +93,9 @@ class GeneratedConfig:
|
||||
HpControl_RepairUseMultiThreshold = 0.6
|
||||
HpControl_LowHpRetreatThreshold = 0.3
|
||||
|
||||
# Func `C72MysteryFarming`
|
||||
C72MysteryFarming_StepOnA3 = True
|
||||
|
||||
# Func `GemsFarming`
|
||||
GemsFarming_FlagshipChange = True
|
||||
GemsFarming_FlagshipEquipChange = False
|
||||
|
@ -11,7 +11,8 @@ class ManualConfig:
|
||||
> OpsiObscure > Exercise > Daily > Hard > OpsiAsh
|
||||
> Sos > EventSp > EventAb > RaidDaily > WarArchieves
|
||||
> OpsiExplore > OpsiDaily > OpsiMeowfficerFarming
|
||||
> Event > Raid > Main > GemsFarming
|
||||
> Event > Raid > Main
|
||||
> C11AffinityFarming > C124Leveling > C122Leveling > C72MysteryFarming > GemsFarming
|
||||
"""
|
||||
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user