From e26e733f3d24dfcd62e24f3c83ca9e1777a02c58 Mon Sep 17 00:00:00 2001 From: LmeSzinc <37934724+LmeSzinc@users.noreply.github.com> Date: Tue, 28 May 2024 22:02:21 +0800 Subject: [PATCH] Doc: Add help text of character planner --- config/template.json | 1 + module/config/argument/args.json | 6 ++++++ module/config/argument/stored.json | 11 +++++++++++ module/config/config_generated.py | 1 + module/config/config_updater.py | 2 +- module/config/i18n/en-US.json | 12 ++++++++---- module/config/i18n/es-ES.json | 12 ++++++++---- module/config/i18n/ja-JP.json | 4 ++++ module/config/i18n/zh-CN.json | 8 ++++++-- module/config/i18n/zh-TW.json | 8 ++++++-- module/config/stored/stored_generated.py | 1 + 11 files changed, 53 insertions(+), 13 deletions(-) diff --git a/config/template.json b/config/template.json index 4a3b35a87..f15b5a042 100644 --- a/config/template.json +++ b/config/template.json @@ -48,6 +48,7 @@ }, "Planner": { "Item_Credit": {}, + "Item_Trailblaze_EXP": {}, "Item_Traveler_Guide": {}, "Item_Refined_Aether": {}, "Item_Lost_Crystal": {}, diff --git a/module/config/argument/args.json b/module/config/argument/args.json index 8d1a000a5..e7b4eb3d5 100644 --- a/module/config/argument/args.json +++ b/module/config/argument/args.json @@ -226,6 +226,12 @@ "display": "display", "stored": "StoredPlanner" }, + "Item_Trailblaze_EXP": { + "type": "planner", + "value": {}, + "display": "display", + "stored": "StoredPlanner" + }, "Item_Traveler_Guide": { "type": "planner", "value": {}, diff --git a/module/config/argument/stored.json b/module/config/argument/stored.json index b07c15952..ced444313 100644 --- a/module/config/argument/stored.json +++ b/module/config/argument/stored.json @@ -148,6 +148,17 @@ "order": 0, "color": "#777777" }, + "Item_Trailblaze_EXP": { + "name": "Item_Trailblaze_EXP", + "path": "Dungeon.Planner.Item_Trailblaze_EXP", + "i18n": "Planner.Item_Trailblaze_EXP.name", + "stored": "StoredPlanner", + "attrs": { + "time": "2020-01-01 00:00:00" + }, + "order": 0, + "color": "#777777" + }, "Item_Traveler_Guide": { "name": "Item_Traveler_Guide", "path": "Dungeon.Planner.Item_Traveler_Guide", diff --git a/module/config/config_generated.py b/module/config/config_generated.py index 833c8c6ac..3dd679b0f 100644 --- a/module/config/config_generated.py +++ b/module/config/config_generated.py @@ -67,6 +67,7 @@ class GeneratedConfig: # Group `Planner` Planner_Item_Credit = {} + Planner_Item_Trailblaze_EXP = {} Planner_Item_Traveler_Guide = {} Planner_Item_Refined_Aether = {} Planner_Item_Lost_Crystal = {} diff --git a/module/config/config_updater.py b/module/config/config_updater.py index d49dddfd7..9c6b92904 100644 --- a/module/config/config_updater.py +++ b/module/config/config_updater.py @@ -517,7 +517,7 @@ class ConfigGenerator: else: continue if res := re.search(r'[::](.*)[((]', i18n): - i18n = res.group(1) + i18n = res.group(1).strip() elif item.is_ItemAscension or (item.is_ItemTrace and item.is_group_base): dungeon = item.group_base.dungeon.name i18n = deep_get(new, keys=['Dungeon', 'Name', dungeon], default='Unknown_Dungeon_Come_From') diff --git a/module/config/i18n/en-US.json b/module/config/i18n/en-US.json index 4da4bdc81..d8391e12a 100644 --- a/module/config/i18n/en-US.json +++ b/module/config/i18n/en-US.json @@ -461,18 +461,22 @@ "Planner": { "_info": { "name": "Character Planner Progress", - "help": "" + "help": "Character planner is prioritized. After completed, \"Dungeon Settings\" will be executed." }, "Item_Credit": { "name": "Credit", "help": "" }, + "Item_Trailblaze_EXP": { + "name": "Trailblaze EXP", + "help": "" + }, "Item_Traveler_Guide": { - "name": " Character EXP ", + "name": "Character EXP", "help": "" }, "Item_Refined_Aether": { - "name": " Light Cone EXP ", + "name": "Light Cone EXP", "help": "" }, "Item_Lost_Crystal": { @@ -1197,7 +1201,7 @@ "PlannerScan": { "_info": { "name": "Scan Character Planner Results", - "help": "Tools need to stop the scheduler and then run independently\nBefore use, set planner goal in the in-game planner, calculate the results, and start scanning from the result page. Detailed usage see: https://github.com/LmeSzinc/StarRailCopilot/wiki/planner_cn" + "help": "Tools need to stop the scheduler and then run independently\nBefore use, set planner goal in the in-game planner, calculate the results, and start scanning from the result page. Detailed usage see: https://github.com/LmeSzinc/StarRailCopilot/wiki/Planner_cn" }, "ResultAdd": { "name": "Accumulate multiple scan results", diff --git a/module/config/i18n/es-ES.json b/module/config/i18n/es-ES.json index 679495977..5d6bfec11 100644 --- a/module/config/i18n/es-ES.json +++ b/module/config/i18n/es-ES.json @@ -461,18 +461,22 @@ "Planner": { "_info": { "name": "Progreso del planificador de personajes", - "help": "" + "help": "Se prioriza el planificador de personajes. Una vez completado, se ejecutará la \"Ajustes de Mazmorra\"." }, "Item_Credit": { "name": "Crédito", "help": "" }, + "Item_Trailblaze_EXP": { + "name": "EXP trazacaminos", + "help": "" + }, "Item_Traveler_Guide": { - "name": " EXP de personaje ", + "name": "EXP de personaje", "help": "" }, "Item_Refined_Aether": { - "name": " EXP de conos de luz ", + "name": "EXP de conos de luz", "help": "" }, "Item_Lost_Crystal": { @@ -1197,7 +1201,7 @@ "PlannerScan": { "_info": { "name": "Escanear resultados del planificador de caracteres", - "help": "Las herramientas deben detener el programador y luego ejecutarse de forma independiente\nAntes de usarlo, establezca el objetivo del planificador en el planificador del juego, calcule los resultados y comience a escanear desde la página de resultados. Para uso detallado, consulte: https://github .com/LmeSzinc/StarRailCopilot/wiki/planner_cn" + "help": "Las herramientas deben detener el programador y luego ejecutarse de forma independiente\nAntes de usarlo, establezca el objetivo del planificador en el planificador del juego, calcule los resultados y comience a escanear desde la página de resultados. Para uso detallado, consulte: https://github .com/LmeSzinc/StarRailCopilot/wiki/Planner_cn" }, "ResultAdd": { "name": "Acumular múltiples resultados de escaneo", diff --git a/module/config/i18n/ja-JP.json b/module/config/i18n/ja-JP.json index dd3516a70..53515b104 100644 --- a/module/config/i18n/ja-JP.json +++ b/module/config/i18n/ja-JP.json @@ -467,6 +467,10 @@ "name": "信用ポイント", "help": "" }, + "Item_Trailblaze_EXP": { + "name": "マイレージ", + "help": "" + }, "Item_Traveler_Guide": { "name": "役割経験", "help": "" diff --git a/module/config/i18n/zh-CN.json b/module/config/i18n/zh-CN.json index d773499be..264ebf75e 100644 --- a/module/config/i18n/zh-CN.json +++ b/module/config/i18n/zh-CN.json @@ -461,12 +461,16 @@ "Planner": { "_info": { "name": "养成规划进度", - "help": "" + "help": "优先执行养成规划,养成规划完成后,执行 \"每日副本设置\"" }, "Item_Credit": { "name": "信用点", "help": "" }, + "Item_Trailblaze_EXP": { + "name": "里程", + "help": "" + }, "Item_Traveler_Guide": { "name": "角色经验", "help": "" @@ -1197,7 +1201,7 @@ "PlannerScan": { "_info": { "name": "识别角色养成规划计算结果", - "help": "工具需要停止调度器再单独运行\n使用前需要在游戏内养成计算器中设定养成目标,并计算出结果,在计算结果页面启动养成规划识别。详细使用教程见:\nhttps://github.com/LmeSzinc/StarRailCopilot/wiki/planner_cn" + "help": "工具需要停止调度器再单独运行\n使用前需要在游戏内养成计算器中设定养成目标,并计算出结果,在计算结果页面启动养成规划识别。详细使用教程见:\nhttps://github.com/LmeSzinc/StarRailCopilot/wiki/Planner_cn" }, "ResultAdd": { "name": "累加多次扫描结果", diff --git a/module/config/i18n/zh-TW.json b/module/config/i18n/zh-TW.json index 15c6b9190..b76fb1e88 100644 --- a/module/config/i18n/zh-TW.json +++ b/module/config/i18n/zh-TW.json @@ -461,12 +461,16 @@ "Planner": { "_info": { "name": "養成規劃進度", - "help": "" + "help": "優先執行養成規劃,養成規劃完成後,執行 \"每日副本設定\"" }, "Item_Credit": { "name": "信用點", "help": "" }, + "Item_Trailblaze_EXP": { + "name": "里程", + "help": "" + }, "Item_Traveler_Guide": { "name": "角色經驗", "help": "" @@ -1197,7 +1201,7 @@ "PlannerScan": { "_info": { "name": "辨識角色養成規劃計算結果", - "help": "工具需要停止調度器再單獨運行\n使用前需要在遊戲內養成計算器中設定養成目標,併計算出結果,在計算結果頁面啟動養成規劃識別。詳細使用教程 請參閱:\nhttps://github.com/LmeSzinc/StarRailCopilot/wiki/planner_cn" + "help": "工具需要停止調度器再單獨運行\n使用前需要在遊戲內養成計算器中設定養成目標,併計算出結果,在計算結果頁面啟動養成規劃識別。詳細使用教程 請參閱:\nhttps://github.com/LmeSzinc/StarRailCopilot/wiki/Planner_cn" }, "ResultAdd": { "name": "累加多次掃描結果", diff --git a/module/config/stored/stored_generated.py b/module/config/stored/stored_generated.py index a3a99b164..e7748b3e5 100644 --- a/module/config/stored/stored_generated.py +++ b/module/config/stored/stored_generated.py @@ -34,6 +34,7 @@ class StoredGenerated: CloudRemainPaid = StoredInt("Alas.CloudStorage.CloudRemainPaid") CloudRemainFree = StoredInt("Alas.CloudStorage.CloudRemainFree") Item_Credit = StoredPlanner("Dungeon.Planner.Item_Credit") + Item_Trailblaze_EXP = StoredPlanner("Dungeon.Planner.Item_Trailblaze_EXP") Item_Traveler_Guide = StoredPlanner("Dungeon.Planner.Item_Traveler_Guide") Item_Refined_Aether = StoredPlanner("Dungeon.Planner.Item_Refined_Aether") Item_Lost_Crystal = StoredPlanner("Dungeon.Planner.Item_Lost_Crystal")