@@ -178,17 +178,32 @@ public sealed class ObjectivesSystem : SharedObjectivesSystem
|
||||
agentSummary.AppendLine(Loc.GetString(
|
||||
"objectives-objective-success",
|
||||
("objective", objectiveTitle),
|
||||
("markupColor", "green")
|
||||
("progress", progress)
|
||||
));
|
||||
completedObjectives++;
|
||||
}
|
||||
else if (progress <= 0.99f && progress >= 0.5f)
|
||||
{
|
||||
agentSummary.AppendLine(Loc.GetString(
|
||||
"objectives-objective-partial-success",
|
||||
("objective", objectiveTitle),
|
||||
("progress", progress)
|
||||
));
|
||||
}
|
||||
else if (progress < 0.5f && progress > 0f)
|
||||
{
|
||||
agentSummary.AppendLine(Loc.GetString(
|
||||
"objectives-objective-partial-failure",
|
||||
("objective", objectiveTitle),
|
||||
("progress", progress)
|
||||
));
|
||||
}
|
||||
else
|
||||
{
|
||||
agentSummary.AppendLine(Loc.GetString(
|
||||
"objectives-objective-fail",
|
||||
("objective", objectiveTitle),
|
||||
("progress", (int) (progress * 100)),
|
||||
("markupColor", "red")
|
||||
("progress", progress)
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user