perf: 刷理智任务每次开始行动时的文本优化

This commit is contained in:
status102
2025-05-31 23:55:50 +08:00
parent 7cea8dd99e
commit 5df6848dc5
6 changed files with 9 additions and 14 deletions

View File

@@ -1132,17 +1132,12 @@ namespace MaaWpfGui.Main
StringBuilder missionStartLogBuilder = new();
if (FightTimes is null)
{
missionStartLogBuilder.AppendLine(LocalizationHelper.GetString("MissionStart") + $" ??? {LocalizationHelper.GetString("UnitTime")}");
missionStartLogBuilder.AppendLine(string.Format(LocalizationHelper.GetString("MissionStart.FightTask"), "???", "???"));
}
else
{
missionStartLogBuilder.AppendLine(
$"{LocalizationHelper.GetString("MissionStart")} " +
(FightTimes.Series == 1
? $"{FightTimes.TimesFinished + 1}"
: $"{FightTimes.TimesFinished + 1}~{FightTimes.TimesFinished + FightTimes.Series}") +
$"{LocalizationHelper.GetString("UnitTime")} " +
$"(-{FightTimes.SanityCost}{LocalizationHelper.GetString("Sanity")})");
var times = FightTimes.Series == 1 ? $"{FightTimes.TimesFinished + 1}" : $"{FightTimes.TimesFinished + 1}~{FightTimes.TimesFinished + FightTimes.Series}";
missionStartLogBuilder.AppendLine(string.Format(LocalizationHelper.GetString("MissionStart.FightTask"), times, FightTimes.SanityCost));
}
if (SanityReport is not null)

View File

@@ -829,8 +829,8 @@ Please switch to the stage selection page before starting</system:String>
<system:String x:Key="StageQueue">Stage Queue:&#160;</system:String>
<system:String x:Key="UnableToAgent">Unable to use PRTS</system:String>
<system:String x:Key="MissionStart">Mission started</system:String>
<system:String x:Key="UnitTime"> times</system:String>
<system:String x:Key="Sanity"> Sanity</system:String>
<system:String x:Key="MissionStart.FightTask">Mission started {0} times (-{1} Sanity)</system:String>
<system:String x:Key="UnitTime">times</system:String>
<system:String x:Key="CurrentSanity" xml:space="preserve">Sanity: {0}/{1} </system:String>
<system:String x:Key="MedicineUsedTimes" xml:space="preserve">Medicine: {0} </system:String>
<system:String x:Key="MedicineUsedTimesWithExpiring" xml:space="preserve">Medicine: {0},{1}(Expiring) </system:String>

View File

@@ -833,8 +833,8 @@ C:\\leidian\\LDPlayer9
<system:String x:Key="StageQueue">ステージキュー:</system:String>
<system:String x:Key="UnableToAgent">自動指揮利用不可</system:String>
<system:String x:Key="MissionStart">行動開始しました</system:String>
<system:String x:Key="MissionStart.FightTask">行動開始しました {0} 回 (-{1}理性)</system:String>
<system:String x:Key="UnitTime">回</system:String>
<system:String x:Key="Sanity">理性</system:String>
<system:String x:Key="CurrentSanity" xml:space="preserve">理性: {0}/{1} </system:String>
<system:String x:Key="MedicineUsedTimes" xml:space="preserve">薬: {0} </system:String>
<system:String x:Key="MedicineUsedTimesWithExpiring" xml:space="preserve">薬: {0},{1}(期限切れ) </system:String>

View File

@@ -832,8 +832,8 @@ C:\\leidian\\LDPlayer9
<system:String x:Key="StageQueue">스테이지 대기열:</system:String>
<system:String x:Key="UnableToAgent">프록시 명령을 사용할 수 없습니다</system:String>
<system:String x:Key="MissionStart">행동 개시</system:String>
<system:String x:Key="MissionStart.FightTask">행동 개시 {0} 회 (-{1} 이성)</system:String>
<system:String x:Key="UnitTime">회</system:String>
<system:String x:Key="Sanity">이성</system:String>
<system:String x:Key="CurrentSanity" xml:space="preserve">이성: {0}/{1} </system:String>
<system:String x:Key="MedicineUsedTimes" xml:space="preserve">\n이성 회복제: {0} </system:String>
<system:String x:Key="MedicineUsedTimesWithExpiring" xml:space="preserve">\n이성 회복제: {0},{1}(만료 예정) </system:String>

View File

@@ -833,8 +833,8 @@ C:\\leidian\\LDPlayer9。\n
<system:String x:Key="StageQueue">关卡队列:</system:String>
<system:String x:Key="UnableToAgent">无法使用代理指挥</system:String>
<system:String x:Key="MissionStart">已开始行动</system:String>
<system:String x:Key="MissionStart.FightTask">开始行动 {0} 次, -{1}理智</system:String>
<system:String x:Key="UnitTime">次</system:String>
<system:String x:Key="Sanity">理智</system:String>
<system:String x:Key="CurrentSanity" xml:space="preserve">理智: {0}/{1} </system:String>
<system:String x:Key="MedicineUsedTimes" xml:space="preserve">药: {0} </system:String>
<system:String x:Key="MedicineUsedTimesWithExpiring" xml:space="preserve">药: {0},{1}(临期) </system:String>

View File

@@ -831,8 +831,8 @@ C:\\leidian\\LDPlayer9。\n
<system:String x:Key="StageQueue">關卡隊列:</system:String>
<system:String x:Key="UnableToAgent">無法使用代理指揮</system:String>
<system:String x:Key="MissionStart">已開始行動</system:String>
<system:String x:Key="MissionStart.FightTask">開始行動 {0} 次, -{1}理智</system:String>
<system:String x:Key="UnitTime">次</system:String>
<system:String x:Key="Sanity">理智</system:String>
<system:String x:Key="CurrentSanity" xml:space="preserve">理智: {0}/{1} </system:String>
<system:String x:Key="MedicineUsedTimes" xml:space="preserve">藥: {0} </system:String>
<system:String x:Key="MedicineUsedTimesWithExpiring" xml:space="preserve">藥: {0},{1}(臨期) </system:String>