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";
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();
if (objectives.Length == 0)
var objectives = mind.Objectives;
if (objectives.Count == 0)
{
result += Loc.GetString("objectives-no-objectives", ("custody", custody), ("title", title), ("agent", agent));
continue;