chore: 化动编队日志输出

This commit is contained in:
uye
2024-09-02 09:25:29 +08:00
parent 5349fe0635
commit f2b96645c8

View File

@@ -1425,15 +1425,21 @@ namespace MaaWpfGui.Main
case "PenguinId":
{
string id = subTaskDetails!["id"]?.ToString();
string id = subTaskDetails!["id"]?.ToString() ?? string.Empty;
Instances.SettingsViewModel.PenguinId = id;
break;
}
case "BattleFormation":
Instances.CopilotViewModel.AddLog(LocalizationHelper.GetString("BattleFormation") + "\n[" +
string.Join(", ", subTaskDetails!["formation"]?.ToObject<List<string>>().Select(oper => DataHelper.GetLocalizedCharacterName(oper))) + "]");
Instances.CopilotViewModel.AddLog(
LocalizationHelper.GetString("BattleFormation") +
"\n[" +
string.Join(
", ",
(subTaskDetails!["formation"]?.ToObject<List<string?>>() ?? [])
.Select(oper => DataHelper.GetLocalizedCharacterName(oper))
.Where(oper => !string.IsNullOrEmpty(oper))) + "]");
break;
case "BattleFormationSelected":