diff --git a/config/template.json b/config/template.json index 1b04133..ad683bf 100644 --- a/config/template.json +++ b/config/template.json @@ -45,6 +45,12 @@ "Touch": true, "AutoAdjust": true, "SecondCafe": true + }, + "Invitation": { + "Enable": true, + "Choice": "list_top", + "Name": null, + "Substitute": true } }, "Circle": { diff --git a/module/config/argument/args.json b/module/config/argument/args.json index ff189b3..4fa633e 100644 --- a/module/config/argument/args.json +++ b/module/config/argument/args.json @@ -205,6 +205,28 @@ "type": "checkbox", "value": true } + }, + "Invitation": { + "Enable": { + "type": "checkbox", + "value": true + }, + "Choice": { + "type": "select", + "value": "list_top", + "option": [ + "list_top", + "by_name" + ] + }, + "Name": { + "type": "textarea", + "value": null + }, + "Substitute": { + "type": "checkbox", + "value": true + } } }, "Circle": { diff --git a/module/config/argument/argument.yaml b/module/config/argument/argument.yaml index 562573c..3ed9a7a 100644 --- a/module/config/argument/argument.yaml +++ b/module/config/argument/argument.yaml @@ -80,6 +80,15 @@ Cafe: Touch: true AutoAdjust: true SecondCafe: true +Invitation: + Enable: true + Choice: + value: list_top + option: [ list_top, by_name ] + Name: + value: null + type: textarea + Substitute: true Bounty: OnError: diff --git a/module/config/argument/task.yaml b/module/config/argument/task.yaml index 12bbb3d..b7f5839 100644 --- a/module/config/argument/task.yaml +++ b/module/config/argument/task.yaml @@ -25,6 +25,7 @@ Daily: Cafe: - Scheduler - Cafe + - Invitation Circle: - Scheduler Mail: diff --git a/module/config/config_generated.py b/module/config/config_generated.py index 0533b6a..4b9d13c 100644 --- a/module/config/config_generated.py +++ b/module/config/config_generated.py @@ -45,6 +45,12 @@ class GeneratedConfig: Cafe_AutoAdjust = True Cafe_SecondCafe = True + # Group `Invitation` + Invitation_Enable = True + Invitation_Choice = 'list_top' # list_top, by_name + Invitation_Name = None + Invitation_Substitute = True + # Group `Bounty` Bounty_OnError = 'skip' # stop, skip diff --git a/module/config/i18n/en-US.json b/module/config/i18n/en-US.json index 50b0ba1..9ff53a4 100644 --- a/module/config/i18n/en-US.json +++ b/module/config/i18n/en-US.json @@ -221,6 +221,30 @@ "help": "JP server only\nEnable auto switch to second floor and perform interaction" } }, + "Invitation": { + "_info": { + "name": "Invitation Settings", + "help": "" + }, + "Enable": { + "name": "Enable", + "help": "" + }, + "Choice": { + "name": "Choose Inviting Student", + "help": "", + "list_top": "Top first student of list", + "by_name": "By name" + }, + "Name": { + "name": "Invited 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": { + "name": "Replace existing student", + "help": "!TO BE CHANGED!Whether to replace the existing student with another costume.\nIf not, try to match the next student" + } + }, "Bounty": { "_info": { "name": "Bounty Settings", diff --git a/module/config/i18n/zh-CN.json b/module/config/i18n/zh-CN.json index b0896d9..9a32b55 100644 --- a/module/config/i18n/zh-CN.json +++ b/module/config/i18n/zh-CN.json @@ -221,6 +221,30 @@ "help": "仅支持日服\n自动切换第二咖啡厅进行互动点击" } }, + "Invitation": { + "_info": { + "name": "邀请设置", + "help": "" + }, + "Enable": { + "name": "启用", + "help": "" + }, + "Choice": { + "name": "选择被邀请学生", + "help": "", + "list_top": "按列表第一个", + "by_name": "按名字" + }, + "Name": { + "name": "邀请学生名", + "help": "填写要邀请的学生的名字,使用游戏内语言填写,多个学生使用 > 连接。例:\n日服:ホシノ(水着) > 御坂美琴 > ユズ\n国际服:Hoshino(Swimsuit) > Yuuka > Kayoko(New Year)" + }, + "Substitute": { + "name": "是否替换已存在学生", + "help": "若咖啡厅已存在所邀请学生的不同服装,选择是否替换该学生\n若不替换,则尝试匹配下一位学生" + } + }, "Bounty": { "_info": { "name": "悬赏通缉设置",