1
0
mirror of https://github.com/TheFunny/ArisuAutoSweeper synced 2025-12-16 22:05:12 +00:00

feat(webui): add invitation condition options

This commit is contained in:
YoursFunny 2023-11-28 14:04:07 +08:00
parent 5f3ff140dd
commit 1f5b68d095
Signed by: YoursFunny
GPG Key ID: 207EDC3CD5B40F9C
6 changed files with 42 additions and 11 deletions

View File

@ -48,9 +48,10 @@
}, },
"Invitation": { "Invitation": {
"Enable": true, "Enable": true,
"WaitingHour": 0,
"Choice": "list_top", "Choice": "list_top",
"Name": null, "Name": null,
"Substitute": true "Substitute": false
} }
}, },
"Circle": { "Circle": {

View File

@ -211,6 +211,16 @@
"type": "checkbox", "type": "checkbox",
"value": true "value": true
}, },
"WaitingHour": {
"type": "select",
"value": 0,
"option": [
0,
3,
6,
9
]
},
"Choice": { "Choice": {
"type": "select", "type": "select",
"value": "list_top", "value": "list_top",
@ -225,7 +235,7 @@
}, },
"Substitute": { "Substitute": {
"type": "checkbox", "type": "checkbox",
"value": true "value": false
} }
} }
}, },

View File

@ -82,13 +82,16 @@ Cafe:
SecondCafe: true SecondCafe: true
Invitation: Invitation:
Enable: true Enable: true
WaitingHour:
value: 0
option: [ 0, 3, 6, 9 ]
Choice: Choice:
value: list_top value: list_top
option: [ list_top, by_name ] option: [ list_top, by_name ]
Name: Name:
value: null value: null
type: textarea type: textarea
Substitute: true Substitute: false
Bounty: Bounty:
OnError: OnError:

View File

@ -47,9 +47,10 @@ class GeneratedConfig:
# Group `Invitation` # Group `Invitation`
Invitation_Enable = True Invitation_Enable = True
Invitation_WaitingHour = 0 # 0, 3, 6, 9
Invitation_Choice = 'list_top' # list_top, by_name Invitation_Choice = 'list_top' # list_top, by_name
Invitation_Name = None Invitation_Name = None
Invitation_Substitute = True Invitation_Substitute = False
# Group `Bounty` # Group `Bounty`
Bounty_OnError = 'skip' # stop, skip Bounty_OnError = 'skip' # stop, skip

View File

@ -228,16 +228,24 @@
}, },
"Enable": { "Enable": {
"name": "Enable", "name": "Enable",
"help": "" "help": "Enable cafe invitation"
},
"WaitingHour": {
"name": "Invitation Condition",
"help": "Choose whether to invite students based on the remaining time before next cafe refresh\nThis is for obtaining maximum student interation and maximum affection when AFK. Recommended option:\n24*7 AFK:\t\t Choose \"If 9 more hours remaining\"\nNormal usage:\t Choose \"Invite immediately\"",
"0": "Invite immediately",
"3": "If 3 more hours remaining",
"6": "If 6 more hours remaining",
"9": "If 9 more hours remaining"
}, },
"Choice": { "Choice": {
"name": "Choose Inviting Student", "name": "Choose Inviting Student",
"help": "", "help": "Top first student of list: Invite the student at the top first of the list\nBy name: Invite the student with the name you set below",
"list_top": "Top first student of list", "list_top": "Top first student of list",
"by_name": "By name" "by_name": "By name"
}, },
"Name": { "Name": {
"name": "Invited Student Name", "name": "Inviting Student Name",
"help": "Fill in the name of the student to be invited. Use in-game text language. Use > to connect multiple students. Example:\nJP: ホシノ(水着) > 御坂美琴 > ユズ\nOVERSEA: Hoshino(Swimsuit) > Yuuka > Kayoko(New Year)" "help": "Fill in the name of the student to be invited. Use in-game text language. Use > to connect multiple students. Example:\nJP: ホシノ(水着) > 御坂美琴 > ユズ\nOVERSEA: Hoshino(Swimsuit) > Yuuka > Kayoko(New Year)"
}, },
"Substitute": { "Substitute": {

View File

@ -228,17 +228,25 @@
}, },
"Enable": { "Enable": {
"name": "启用", "name": "启用",
"help": "" "help": "是否启用咖啡厅邀请功能"
},
"WaitingHour": {
"name": "邀请条件",
"help": "根据距离下一次咖啡厅刷新的时长,选择是否邀请学生\n此项设立是为了后台挂机最大化收益使得邀请券能被最大化利用。推荐选项\n常驻挂机\t选择“离下次刷新 9 小时以上”\n非常驻挂机\t选择“不等待刷新立即邀请”或根据自己挂机时长选择",
"0": "不等待刷新,立即邀请",
"3": "离下次刷新 3 小时以上",
"6": "离下次刷新 6 小时以上",
"9": "离下次刷新 9 小时以上"
}, },
"Choice": { "Choice": {
"name": "选择被邀请学生", "name": "选择邀请学生",
"help": "", "help": "按列表第一个:优先邀请列表中第一个学生,若失败则则尝试下一个\n按名字优先邀请下方填写学生名的第一个若失败则尝试下一个",
"list_top": "按列表第一个", "list_top": "按列表第一个",
"by_name": "按名字" "by_name": "按名字"
}, },
"Name": { "Name": {
"name": "邀请学生名", "name": "邀请学生名",
"help": "填写要邀请的学生的名字,使用游戏内语言填写,多个学生使用 > 连接。例:\n日服ホシノ(水着) > 御坂美琴 > ユズ\n国际服Hoshino(Swimsuit) > Yuuka > Kayoko(New Year)" "help": "填写要邀请的学生的名字,使用游戏内语言填写,多个学生使用 > 连接。例:\n日服\tホシノ(水着) > 御坂美琴 > ユズ\n国际服\tHoshino(Swimsuit) > Yuuka > Kayoko(New Year)"
}, },
"Substitute": { "Substitute": {
"name": "是否替换已存在学生", "name": "是否替换已存在学生",