diff --git a/config/template.json b/config/template.json index ad683bf..34a9935 100644 --- a/config/template.json +++ b/config/template.json @@ -48,9 +48,10 @@ }, "Invitation": { "Enable": true, + "WaitingHour": 0, "Choice": "list_top", "Name": null, - "Substitute": true + "Substitute": false } }, "Circle": { diff --git a/module/config/argument/args.json b/module/config/argument/args.json index 4fa633e..8970715 100644 --- a/module/config/argument/args.json +++ b/module/config/argument/args.json @@ -211,6 +211,16 @@ "type": "checkbox", "value": true }, + "WaitingHour": { + "type": "select", + "value": 0, + "option": [ + 0, + 3, + 6, + 9 + ] + }, "Choice": { "type": "select", "value": "list_top", @@ -225,7 +235,7 @@ }, "Substitute": { "type": "checkbox", - "value": true + "value": false } } }, diff --git a/module/config/argument/argument.yaml b/module/config/argument/argument.yaml index 3ed9a7a..93fa836 100644 --- a/module/config/argument/argument.yaml +++ b/module/config/argument/argument.yaml @@ -82,13 +82,16 @@ Cafe: SecondCafe: true Invitation: Enable: true + WaitingHour: + value: 0 + option: [ 0, 3, 6, 9 ] Choice: value: list_top option: [ list_top, by_name ] Name: value: null type: textarea - Substitute: true + Substitute: false Bounty: OnError: diff --git a/module/config/config_generated.py b/module/config/config_generated.py index 4b9d13c..418d4d0 100644 --- a/module/config/config_generated.py +++ b/module/config/config_generated.py @@ -47,9 +47,10 @@ class GeneratedConfig: # Group `Invitation` Invitation_Enable = True + Invitation_WaitingHour = 0 # 0, 3, 6, 9 Invitation_Choice = 'list_top' # list_top, by_name Invitation_Name = None - Invitation_Substitute = True + Invitation_Substitute = False # Group `Bounty` Bounty_OnError = 'skip' # stop, skip diff --git a/module/config/i18n/en-US.json b/module/config/i18n/en-US.json index 9ff53a4..fd028be 100644 --- a/module/config/i18n/en-US.json +++ b/module/config/i18n/en-US.json @@ -228,16 +228,24 @@ }, "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": { "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", "by_name": "By 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)" }, "Substitute": { diff --git a/module/config/i18n/zh-CN.json b/module/config/i18n/zh-CN.json index 9a32b55..e0b4d6a 100644 --- a/module/config/i18n/zh-CN.json +++ b/module/config/i18n/zh-CN.json @@ -228,17 +228,25 @@ }, "Enable": { "name": "启用", - "help": "" + "help": "是否启用咖啡厅邀请功能" + }, + "WaitingHour": { + "name": "邀请条件", + "help": "根据距离下一次咖啡厅刷新的时长,选择是否邀请学生\n此项设立是为了后台挂机最大化收益,使得邀请券能被最大化利用。推荐选项:\n常驻挂机:\t选择“离下次刷新 9 小时以上”\n非常驻挂机:\t选择“不等待刷新,立即邀请”,或根据自己挂机时长选择", + "0": "不等待刷新,立即邀请", + "3": "离下次刷新 3 小时以上", + "6": "离下次刷新 6 小时以上", + "9": "离下次刷新 9 小时以上" }, "Choice": { - "name": "选择被邀请学生", - "help": "", + "name": "选择邀请学生", + "help": "按列表第一个:优先邀请列表中第一个学生,若失败则则尝试下一个\n按名字:优先邀请下方填写学生名的第一个,若失败则尝试下一个", "list_top": "按列表第一个", "by_name": "按名字" }, "Name": { "name": "邀请学生名", - "help": "填写要邀请的学生的名字,使用游戏内语言填写,多个学生使用 > 连接。例:\n日服:ホシノ(水着) > 御坂美琴 > ユズ\n国际服:Hoshino(Swimsuit) > Yuuka > Kayoko(New Year)" + "help": "填写要邀请的学生的名字,使用游戏内语言填写,多个学生使用 > 连接。例:\n日服:\tホシノ(水着) > 御坂美琴 > ユズ\n国际服:\tHoshino(Swimsuit) > Yuuka > Kayoko(New Year)" }, "Substitute": { "name": "是否替换已存在学生",