mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 03:58:22 +08:00
Add: Maa Reclamation Algorithm (#2210)
This commit is contained in:
@@ -896,6 +896,47 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"MaaReclamationAlgorithm": {
|
||||
"Scheduler": {
|
||||
"Enable": {
|
||||
"type": "checkbox",
|
||||
"value": false
|
||||
},
|
||||
"NextRun": {
|
||||
"type": "datetime",
|
||||
"value": "2020-01-01 04:00:00",
|
||||
"validate": "datetime"
|
||||
},
|
||||
"Command": {
|
||||
"type": "input",
|
||||
"value": "MaaReclamationAlgorithm",
|
||||
"display": "hide"
|
||||
},
|
||||
"SuccessInterval": {
|
||||
"type": "input",
|
||||
"value": 60,
|
||||
"display": "hide"
|
||||
},
|
||||
"FailureInterval": {
|
||||
"type": "input",
|
||||
"value": 120,
|
||||
"display": "hide"
|
||||
},
|
||||
"ServerUpdate": {
|
||||
"type": "input",
|
||||
"value": "04:00",
|
||||
"display": "hide"
|
||||
}
|
||||
},
|
||||
"Storage": {
|
||||
"Storage": {
|
||||
"type": "storage",
|
||||
"value": {},
|
||||
"valuetype": "ignore",
|
||||
"display": "disabled"
|
||||
}
|
||||
}
|
||||
},
|
||||
"MaaCopilot": {
|
||||
"MaaCopilot": {
|
||||
"FileName": {
|
||||
|
||||
@@ -10,7 +10,8 @@
|
||||
"MaaInfrast",
|
||||
"MaaMall",
|
||||
"MaaAward",
|
||||
"MaaRoguelike"
|
||||
"MaaRoguelike",
|
||||
"MaaReclamationAlgorithm"
|
||||
],
|
||||
"Tool": [
|
||||
"MaaCopilot"
|
||||
|
||||
@@ -47,6 +47,9 @@ MaaRoguelike:
|
||||
- Scheduler
|
||||
- MaaRoguelike
|
||||
|
||||
MaaReclamationAlgorithm:
|
||||
- Scheduler
|
||||
|
||||
# ==================== Tool ====================
|
||||
|
||||
MaaCopilot:
|
||||
|
||||
@@ -15,6 +15,7 @@ class ArknightsConfig(AzurLaneConfig, ConfigUpdater, GeneratedConfig):
|
||||
> MaaVisit > MaaMall
|
||||
> MaaAnnihilation > MaaMaterial
|
||||
> MaaFight > MaaAward
|
||||
> MaaReclamationAlgorithm
|
||||
> MaaRoguelike
|
||||
"""
|
||||
|
||||
|
||||
@@ -54,6 +54,10 @@
|
||||
"name": "Task.MaaRoguelike.name",
|
||||
"help": "Task.MaaRoguelike.help"
|
||||
},
|
||||
"MaaReclamationAlgorithm": {
|
||||
"name": "Task.MaaReclamationAlgorithm.name",
|
||||
"help": "Task.MaaReclamationAlgorithm.help"
|
||||
},
|
||||
"MaaCopilot": {
|
||||
"name": "Task.MaaCopilot.name",
|
||||
"help": "Task.MaaCopilot.help"
|
||||
|
||||
@@ -54,6 +54,10 @@
|
||||
"name": "Task.MaaRoguelike.name",
|
||||
"help": "Task.MaaRoguelike.help"
|
||||
},
|
||||
"MaaReclamationAlgorithm": {
|
||||
"name": "Task.MaaReclamationAlgorithm.name",
|
||||
"help": "Task.MaaReclamationAlgorithm.help"
|
||||
},
|
||||
"MaaCopilot": {
|
||||
"name": "Task.MaaCopilot.name",
|
||||
"help": "Task.MaaCopilot.help"
|
||||
|
||||
@@ -54,6 +54,10 @@
|
||||
"name": "自动肉鸽",
|
||||
"help": ""
|
||||
},
|
||||
"MaaReclamationAlgorithm": {
|
||||
"name": "生息演算",
|
||||
"help": "警告:该功能仍在开发中,只能无限刷取,一旦启用会导致所有其他任务无法正常运行"
|
||||
},
|
||||
"MaaCopilot": {
|
||||
"name": "自动战斗",
|
||||
"help": ""
|
||||
|
||||
@@ -54,6 +54,10 @@
|
||||
"name": "Task.MaaRoguelike.name",
|
||||
"help": "Task.MaaRoguelike.help"
|
||||
},
|
||||
"MaaReclamationAlgorithm": {
|
||||
"name": "Task.MaaReclamationAlgorithm.name",
|
||||
"help": "Task.MaaReclamationAlgorithm.help"
|
||||
},
|
||||
"MaaCopilot": {
|
||||
"name": "Task.MaaCopilot.name",
|
||||
"help": "Task.MaaCopilot.help"
|
||||
|
||||
@@ -416,6 +416,12 @@ class AssistantHandler:
|
||||
if self.task_switch_timer is not None:
|
||||
self.config.Scheduler_Enable = False
|
||||
|
||||
def reclamation_algorithm(self):
|
||||
self.maa_start('ReclamationAlgorithm', {
|
||||
"enable": True
|
||||
})
|
||||
self.config.task_delay(server_update=True)
|
||||
|
||||
def copilot(self):
|
||||
filename = self.config.MaaCopilot_FileName
|
||||
if filename.startswith('maa://'):
|
||||
|
||||
Reference in New Issue
Block a user