mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-18 05:41:29 +08:00
Merge branch 'app' of https://github.com/LmeSzinc/AzurLaneAutoScript into app_data_key
This commit is contained in:
@@ -258,6 +258,10 @@
|
||||
"threat_safe_without_3_stars"
|
||||
]
|
||||
},
|
||||
"StageIncrease": {
|
||||
"type": "checkbox",
|
||||
"value": false
|
||||
},
|
||||
"GetNewShip": {
|
||||
"type": "checkbox",
|
||||
"value": false
|
||||
@@ -624,6 +628,10 @@
|
||||
"threat_safe_without_3_stars"
|
||||
]
|
||||
},
|
||||
"StageIncrease": {
|
||||
"type": "checkbox",
|
||||
"value": false
|
||||
},
|
||||
"GetNewShip": {
|
||||
"type": "checkbox",
|
||||
"value": false
|
||||
@@ -971,6 +979,10 @@
|
||||
"threat_safe_without_3_stars"
|
||||
]
|
||||
},
|
||||
"StageIncrease": {
|
||||
"type": "disable",
|
||||
"value": false
|
||||
},
|
||||
"GetNewShip": {
|
||||
"type": "disable",
|
||||
"value": false
|
||||
@@ -1147,6 +1159,10 @@
|
||||
"threat_safe_without_3_stars"
|
||||
]
|
||||
},
|
||||
"StageIncrease": {
|
||||
"type": "disable",
|
||||
"value": false
|
||||
},
|
||||
"GetNewShip": {
|
||||
"type": "disable",
|
||||
"value": false
|
||||
@@ -1480,6 +1496,10 @@
|
||||
"threat_safe_without_3_stars"
|
||||
]
|
||||
},
|
||||
"StageIncrease": {
|
||||
"type": "disable",
|
||||
"value": false
|
||||
},
|
||||
"GetNewShip": {
|
||||
"type": "disable",
|
||||
"value": false
|
||||
@@ -1819,6 +1839,10 @@
|
||||
"threat_safe_without_3_stars"
|
||||
]
|
||||
},
|
||||
"StageIncrease": {
|
||||
"type": "disable",
|
||||
"value": false
|
||||
},
|
||||
"GetNewShip": {
|
||||
"type": "checkbox",
|
||||
"value": false
|
||||
@@ -2176,6 +2200,10 @@
|
||||
"threat_safe_without_3_stars"
|
||||
]
|
||||
},
|
||||
"StageIncrease": {
|
||||
"type": "disable",
|
||||
"value": false
|
||||
},
|
||||
"GetNewShip": {
|
||||
"type": "checkbox",
|
||||
"value": false
|
||||
@@ -2576,6 +2604,10 @@
|
||||
"threat_safe_without_3_stars"
|
||||
]
|
||||
},
|
||||
"StageIncrease": {
|
||||
"type": "disable",
|
||||
"value": false
|
||||
},
|
||||
"GetNewShip": {
|
||||
"type": "disable",
|
||||
"value": false
|
||||
@@ -3793,6 +3825,10 @@
|
||||
"threat_safe_without_3_stars"
|
||||
]
|
||||
},
|
||||
"StageIncrease": {
|
||||
"type": "disable",
|
||||
"value": false
|
||||
},
|
||||
"GetNewShip": {
|
||||
"type": "disable",
|
||||
"value": false
|
||||
@@ -4169,6 +4205,10 @@
|
||||
"threat_safe_without_3_stars"
|
||||
]
|
||||
},
|
||||
"StageIncrease": {
|
||||
"type": "disable",
|
||||
"value": false
|
||||
},
|
||||
"GetNewShip": {
|
||||
"type": "disable",
|
||||
"value": false
|
||||
@@ -4535,6 +4575,10 @@
|
||||
"threat_safe_without_3_stars"
|
||||
]
|
||||
},
|
||||
"StageIncrease": {
|
||||
"type": "disable",
|
||||
"value": false
|
||||
},
|
||||
"GetNewShip": {
|
||||
"type": "disable",
|
||||
"value": false
|
||||
@@ -4873,6 +4917,10 @@
|
||||
"threat_safe_without_3_stars"
|
||||
]
|
||||
},
|
||||
"StageIncrease": {
|
||||
"type": "disable",
|
||||
"value": false
|
||||
},
|
||||
"GetNewShip": {
|
||||
"type": "disable",
|
||||
"value": false
|
||||
@@ -5055,6 +5103,10 @@
|
||||
"threat_safe_without_3_stars"
|
||||
]
|
||||
},
|
||||
"StageIncrease": {
|
||||
"type": "checkbox",
|
||||
"value": false
|
||||
},
|
||||
"GetNewShip": {
|
||||
"type": "checkbox",
|
||||
"value": false
|
||||
|
||||
@@ -74,6 +74,7 @@ StopCondition:
|
||||
MapAchievement:
|
||||
value: non_stop
|
||||
option: [non_stop, 100_percent_clear, map_3_stars, threat_safe, threat_safe_without_3_stars]
|
||||
StageIncrease: false
|
||||
GetNewShip: false
|
||||
ReachLevel120: false
|
||||
Fleet:
|
||||
|
||||
@@ -31,6 +31,7 @@ Raid:
|
||||
StopCondition:
|
||||
RunCount: 0
|
||||
MapAchievement: non_stop
|
||||
StageIncrease: false
|
||||
GetNewShip: false
|
||||
ReachLevel120: false
|
||||
C11AffinityFarming:
|
||||
@@ -46,6 +47,7 @@ C11AffinityFarming:
|
||||
StopCondition:
|
||||
RunCount: 0
|
||||
MapAchievement: non_stop
|
||||
StageIncrease: false
|
||||
GetNewShip: false
|
||||
ReachLevel120: false
|
||||
Fleet:
|
||||
@@ -66,6 +68,7 @@ C72MysteryFarming:
|
||||
AmbushEvade: true
|
||||
StopCondition:
|
||||
MapAchievement: non_stop
|
||||
StageIncrease: false
|
||||
GetNewShip: false
|
||||
Fleet:
|
||||
FleetOrder: fleet1_all_fleet2_standby
|
||||
@@ -84,6 +87,7 @@ C122MediumLeveling:
|
||||
AmbushEvade: true
|
||||
StopCondition:
|
||||
MapAchievement: non_stop
|
||||
StageIncrease: false
|
||||
Fleet:
|
||||
FleetOrder: fleet1_all_fleet2_standby
|
||||
AutoSearchFleetOrder: fleet1_all_fleet2_standby
|
||||
@@ -98,6 +102,7 @@ C124LargeLeveling:
|
||||
AmbushEvade: true
|
||||
StopCondition:
|
||||
MapAchievement: non_stop
|
||||
StageIncrease: false
|
||||
Fleet:
|
||||
FleetOrder: fleet1_all_fleet2_standby
|
||||
AutoSearchFleetOrder: fleet1_all_fleet2_standby
|
||||
@@ -108,6 +113,7 @@ GemsFarming:
|
||||
AmbushEvade: true
|
||||
StopCondition:
|
||||
MapAchievement: non_stop
|
||||
StageIncrease: false
|
||||
GetNewShip: false
|
||||
|
||||
# ==================== Reward ====================
|
||||
@@ -201,6 +207,7 @@ Sos:
|
||||
AmbushEvade: true
|
||||
StopCondition:
|
||||
MapAchievement: non_stop
|
||||
StageIncrease: false
|
||||
GetNewShip: false
|
||||
Fleet:
|
||||
AutoSearchFleetOrder: fleet1_all_fleet2_standby
|
||||
@@ -216,6 +223,7 @@ EventAb:
|
||||
StopCondition:
|
||||
RunCount: 0
|
||||
MapAchievement: non_stop
|
||||
StageIncrease: false
|
||||
GetNewShip: false
|
||||
ReachLevel120: false
|
||||
EventSp:
|
||||
@@ -230,6 +238,7 @@ EventSp:
|
||||
StopCondition:
|
||||
RunCount: 0
|
||||
MapAchievement: non_stop
|
||||
StageIncrease: false
|
||||
GetNewShip: false
|
||||
ReachLevel120: false
|
||||
RaidDaily:
|
||||
@@ -248,6 +257,7 @@ RaidDaily:
|
||||
StopCondition:
|
||||
RunCount: 0
|
||||
MapAchievement: non_stop
|
||||
StageIncrease: false
|
||||
GetNewShip: false
|
||||
ReachLevel120: false
|
||||
WarArchives:
|
||||
|
||||
@@ -345,6 +345,18 @@ class AzurLaneConfig(ConfigUpdater, ManualConfig, GeneratedConfig):
|
||||
def FLEET_2(self):
|
||||
return self.Fleet_Fleet2
|
||||
|
||||
@FLEET_2.setter
|
||||
def FLEET_2(self, value):
|
||||
self.override(Fleet_Fleet2=value)
|
||||
|
||||
@property
|
||||
def SUBMARINE(self):
|
||||
return self.Submarine_Fleet
|
||||
|
||||
@SUBMARINE.setter
|
||||
def SUBMARINE(self, value):
|
||||
self.override(Fleet_Fleet2=value)
|
||||
|
||||
_fleet_boss = 0
|
||||
|
||||
@property
|
||||
|
||||
@@ -67,6 +67,7 @@ class GeneratedConfig:
|
||||
StopCondition_RunCount = 0
|
||||
StopCondition_OilLimit = 1000
|
||||
StopCondition_MapAchievement = 'non_stop' # non_stop, 100_percent_clear, map_3_stars, threat_safe, threat_safe_without_3_stars
|
||||
StopCondition_StageIncrease = False
|
||||
StopCondition_GetNewShip = False
|
||||
StopCondition_ReachLevel120 = False
|
||||
|
||||
|
||||
@@ -456,6 +456,10 @@
|
||||
"threat_safe": "threat_safe",
|
||||
"threat_safe_without_3_stars": "threat_safe_without_3_stars"
|
||||
},
|
||||
"StageIncrease": {
|
||||
"name": "StopCondition.StageIncrease.name",
|
||||
"help": "StopCondition.StageIncrease.help"
|
||||
},
|
||||
"GetNewShip": {
|
||||
"name": "StopCondition.GetNewShip.name",
|
||||
"help": "StopCondition.GetNewShip.help"
|
||||
|
||||
@@ -456,6 +456,10 @@
|
||||
"threat_safe": "threat_safe",
|
||||
"threat_safe_without_3_stars": "threat_safe_without_3_stars"
|
||||
},
|
||||
"StageIncrease": {
|
||||
"name": "StopCondition.StageIncrease.name",
|
||||
"help": "StopCondition.StageIncrease.help"
|
||||
},
|
||||
"GetNewShip": {
|
||||
"name": "StopCondition.GetNewShip.name",
|
||||
"help": "StopCondition.GetNewShip.help"
|
||||
|
||||
@@ -456,6 +456,10 @@
|
||||
"threat_safe": "地图绿海",
|
||||
"threat_safe_without_3_stars": "地图绿海不打三星"
|
||||
},
|
||||
"StageIncrease": {
|
||||
"name": "达成关卡成就后前往下一关卡,不停止",
|
||||
"help": "自动开荒,需要保证队伍有足够的强度,需要保证队伍满足关卡属性限制,并设置\"达成关卡成就后停止\"\n例如,打开本选项,并选择\"地图通关\",将在关卡100%通关后前往下一关卡\n支持自动开荒的地图:1-1至14-4,A1至A3,B1至B3,C1至C3,D1至D3,SP1至SP4"
|
||||
},
|
||||
"GetNewShip": {
|
||||
"name": "获得新船后停止",
|
||||
"help": ""
|
||||
|
||||
@@ -456,6 +456,10 @@
|
||||
"threat_safe": "threat_safe",
|
||||
"threat_safe_without_3_stars": "threat_safe_without_3_stars"
|
||||
},
|
||||
"StageIncrease": {
|
||||
"name": "StopCondition.StageIncrease.name",
|
||||
"help": "StopCondition.StageIncrease.help"
|
||||
},
|
||||
"GetNewShip": {
|
||||
"name": "StopCondition.GetNewShip.name",
|
||||
"help": "StopCondition.GetNewShip.help"
|
||||
|
||||
@@ -114,10 +114,10 @@ def write_file(file, data):
|
||||
with open(file, mode='w', encoding='utf-8') as f:
|
||||
if isinstance(data, list):
|
||||
yaml.safe_dump_all(data, f, default_flow_style=False, encoding='utf-8', allow_unicode=True,
|
||||
sort_keys=False)
|
||||
sort_keys=False)
|
||||
else:
|
||||
yaml.safe_dump(data, f, default_flow_style=False, encoding='utf-8', allow_unicode=True,
|
||||
sort_keys=False)
|
||||
sort_keys=False)
|
||||
elif ext == '.json':
|
||||
with open(file, mode='w', encoding='utf-8') as f:
|
||||
s = json.dumps(data, indent=2, ensure_ascii=False, sort_keys=False, default=str)
|
||||
@@ -130,7 +130,7 @@ def iter_folder(folder, ext=None):
|
||||
"""
|
||||
Args:
|
||||
folder (str):
|
||||
ext (str): File extension
|
||||
ext (str): File extension, such as `.yaml`
|
||||
|
||||
Yields:
|
||||
str: Absolute path of files
|
||||
@@ -144,6 +144,19 @@ def iter_folder(folder, ext=None):
|
||||
yield os.path.join(folder, file)
|
||||
|
||||
|
||||
def alas_instance():
|
||||
"""
|
||||
Returns:
|
||||
list[str]: Name of all Alas instances, except `template`.
|
||||
"""
|
||||
out = []
|
||||
for file in os.listdir('./config'):
|
||||
name, extension = os.path.splitext(file)
|
||||
if name != 'template' and extension == '.json':
|
||||
out.append(name)
|
||||
return out
|
||||
|
||||
|
||||
def deep_get(d, keys, default=None):
|
||||
"""
|
||||
Get values in dictionary safely.
|
||||
|
||||
Reference in New Issue
Block a user