Fix all objectives on end screen being bolded (#23345)

fix all objectives on end screen being bolded.
This commit is contained in:
Nemanja
2024-01-02 01:19:41 -05:00
committed by GitHub
parent 2988d60bd4
commit 719b44f1ce
2 changed files with 6 additions and 6 deletions

View File

@@ -116,10 +116,10 @@ public sealed class ObjectivesSystem : SharedObjectivesSystem
result += "\n"; result += "\n";
var custody = IsInCustody(mindId, mind) ? Loc.GetString("objectives-in-custody") + " " : ""; var custody = IsInCustody(mindId, mind) ? Loc.GetString("objectives-in-custody") : string.Empty;
var objectives = mind.AllObjectives.ToArray(); var objectives = mind.Objectives;
if (objectives.Length == 0) if (objectives.Count == 0)
{ {
result += Loc.GetString("objectives-no-objectives", ("custody", custody), ("title", title), ("agent", agent)); result += Loc.GetString("objectives-no-objectives", ("custody", custody), ("title", title), ("agent", agent));
continue; continue;

View File

@@ -9,10 +9,10 @@ objectives-player-user-named = [color=White]{$name}[/color] ([color=gray]{$user}
objectives-player-user = [color=gray]{$user}[/color] objectives-player-user = [color=gray]{$user}[/color]
objectives-player-named = [color=White]{$name}[/color] objectives-player-named = [color=White]{$name}[/color]
objectives-no-objectives = [bold][color=red]{$custody}[/color]{$title} was a {$agent}. objectives-no-objectives = {$custody}{$title} was a {$agent}.
objectives-with-objectives = [bold][color=red]{$custody}[/color]{$title} was a {$agent} who had the following objectives: objectives-with-objectives = {$custody}{$title} was a {$agent} who had the following objectives:
objectives-objective-success = {$objective} | [color={$markupColor}]Success![/color] objectives-objective-success = {$objective} | [color={$markupColor}]Success![/color]
objectives-objective-fail = {$objective} | [color={$markupColor}]Failure![/color] ({$progress}%) objectives-objective-fail = {$objective} | [color={$markupColor}]Failure![/color] ({$progress}%)
objectives-in-custody = | IN CUSTODY | objectives-in-custody = [bold][color=red]| IN CUSTODY | [/color][/bold]