Add: Config of Assignment

This commit is contained in:
Zebartin 2023-06-20 01:28:41 +08:00
parent 724610404a
commit c77f1a30b3
12 changed files with 160 additions and 1 deletions

View File

@ -59,5 +59,17 @@
"Command": "BattlePass",
"ServerUpdate": "04:00"
}
},
"Assignment": {
"Scheduler": {
"Enable": false,
"NextRun": "2020-01-01 00:00:00",
"Command": "Assignment",
"ServerUpdate": "04:00"
},
"Assignment": {
"Filter": "Nameless Land Nameless People > Akashic Records > The Invisible Hand > Root Out the Turpitude",
"Duration": 20
}
}
}

View File

@ -258,5 +258,44 @@
"display": "hide"
}
}
},
"Assignment": {
"Scheduler": {
"Enable": {
"type": "checkbox",
"value": false
},
"NextRun": {
"type": "datetime",
"value": "2020-01-01 00:00:00",
"validate": "datetime"
},
"Command": {
"type": "input",
"value": "Assignment",
"display": "hide"
},
"ServerUpdate": {
"type": "input",
"value": "04:00",
"display": "hide"
}
},
"Assignment": {
"Filter": {
"type": "textarea",
"value": "Nameless Land Nameless People > Akashic Records > The Invisible Hand > Root Out the Turpitude"
},
"Duration": {
"type": "select",
"value": 20,
"option": [
4,
8,
12,
20
]
}
}
}
}

View File

@ -77,3 +77,10 @@ Dungeon:
Team:
value: 1
option: [ 1, 2, 3, 4, 5, 6 ]
Assignment:
Filter: |-
Nameless Land Nameless People > Akashic Records > The Invisible Hand > Root Out the Turpitude
Duration:
value: 20
option: [4, 8, 12, 20]

View File

@ -13,7 +13,8 @@
"tasks": [
"Dungeon",
"DailyQuest",
"BattlePass"
"BattlePass",
"Assignment"
]
}
}

View File

@ -29,3 +29,6 @@ Daily:
- Scheduler
BattlePass:
- Scheduler
Assignment:
- Scheduler
- Assignment

View File

@ -41,3 +41,7 @@ class GeneratedConfig:
# Group `Dungeon`
Dungeon_Name = 'Calyx_Golden_Memories' # Calyx_Golden_Memories, Calyx_Golden_Aether, Calyx_Golden_Treasures, Calyx_Crimson_Destruction, Calyx_Crimson_Preservation, Calyx_Crimson_Calyx_Crimson_Hunt, Calyx_Crimson_Abundance, Calyx_Crimson_Erudition, Calyx_Crimson_Harmony, Calyx_Crimson_Nihility, Stagnant_Shadow_Quanta, Stagnant_Shadow_Gust, Stagnant_Shadow_Fulmination, Stagnant_Shadow_Blaze, Stagnant_Shadow_Spike, Stagnant_Shadow_Rime, Stagnant_Shadow_Mirage, Stagnant_Shadow_Icicle, Stagnant_Shadow_Doom, Cavern_of_Corrosion_Path_of_Gelid_Wind, Cavern_of_Corrosion_Path_of_Jabbing_Punch, Cavern_of_Corrosion_Path_of_Drifting, Cavern_of_Corrosion_Path_of_Providence, Cavern_of_Corrosion_Path_of_Holy_Hymn, Cavern_of_Corrosion_Path_of_Conflagration
Dungeon_Team = 1 # 1, 2, 3, 4, 5, 6
# Group `Assignment`
Assignment_Filter = 'Nameless Land Nameless People > Akashic Records > The Invisible Hand > Root Out the Turpitude'
Assignment_Duration = 20 # 4, 8, 12, 20

View File

@ -8,6 +8,7 @@ class ManualConfig:
SCHEDULER_PRIORITY = """
Restart
> Assignment
> Dungeon > DailyQuest > BattlePass
"""

View File

@ -29,6 +29,10 @@
"BattlePass": {
"name": "Nameless Honor",
"help": ""
},
"Assignment": {
"name": "Assignment",
"help": ""
}
},
"Scheduler": {
@ -216,6 +220,24 @@
"6": "6"
}
},
"Assignment": {
"_info": {
"name": "Assignment Settings",
"help": ""
},
"Filter": {
"name": "Assignment Priority",
"help": "Example: Nameless Land Nameless People > Akashic Records > The Invisible Hand > Root Out the Turpitude"
},
"Duration": {
"name": "Assignment Duration",
"help": "",
"4": "4",
"8": "8",
"12": "12",
"20": "20"
}
},
"Gui": {
"Aside": {
"Install": "Install",

View File

@ -29,6 +29,10 @@
"BattlePass": {
"name": "ナナシの勲功",
"help": ""
},
"Assignment": {
"name": "Task.Assignment.name",
"help": "Task.Assignment.help"
}
},
"Scheduler": {
@ -216,6 +220,24 @@
"6": "6"
}
},
"Assignment": {
"_info": {
"name": "Assignment._info.name",
"help": "Assignment._info.help"
},
"Filter": {
"name": "Assignment.Filter.name",
"help": "Assignment.Filter.help"
},
"Duration": {
"name": "Assignment.Duration.name",
"help": "Assignment.Duration.help",
"4": "4",
"8": "8",
"12": "12",
"20": "20"
}
},
"Gui": {
"Aside": {
"Install": "インストール",

View File

@ -29,6 +29,10 @@
"BattlePass": {
"name": "无名勋礼",
"help": ""
},
"Assignment": {
"name": "委托设置",
"help": ""
}
},
"Scheduler": {
@ -216,6 +220,24 @@
"6": "6"
}
},
"Assignment": {
"_info": {
"name": "委托设置",
"help": ""
},
"Filter": {
"name": "委托优先级",
"help": "中文或英文皆可,须保证没有错字漏字\n比如无名之地无名之人 > 阿卡夏记录 > The Invisible Hand > 根除恶孽"
},
"Duration": {
"name": "委托时长",
"help": "",
"4": "4",
"8": "8",
"12": "12",
"20": "20"
}
},
"Gui": {
"Aside": {
"Install": "安装",

View File

@ -29,6 +29,10 @@
"BattlePass": {
"name": "無名勳禮",
"help": ""
},
"Assignment": {
"name": "委託設置",
"help": ""
}
},
"Scheduler": {
@ -216,6 +220,24 @@
"6": "6"
}
},
"Assignment": {
"_info": {
"name": "委託設置",
"help": ""
},
"Filter": {
"name": "委託優先級",
"help": "中文或英文皆可,須保證沒有錯字漏字\n比如無名之地無名之人 > 阿卡夏記錄 > The Invisible Hand > 根除惡孽"
},
"Duration": {
"name": "委託時長",
"help": "",
"4": "4",
"8": "8",
"12": "12",
"20": "20"
}
},
"Gui": {
"Aside": {
"Install": "安裝",

4
src.py
View File

@ -34,6 +34,10 @@ class StarRailCopilot(AzurLaneAutoScript):
from tasks.battle_pass.battle_pass import BattlePassUI
BattlePassUI(config=self.config, device=self.device).run()
def assignment(self):
from tasks.assignment.assignment import Assignment
Assignment(config=self.config, device=self.device).run()
if __name__ == '__main__':
src = StarRailCopilot('src')