@@ -178,17 +178,32 @@ public sealed class ObjectivesSystem : SharedObjectivesSystem
|
|||||||
agentSummary.AppendLine(Loc.GetString(
|
agentSummary.AppendLine(Loc.GetString(
|
||||||
"objectives-objective-success",
|
"objectives-objective-success",
|
||||||
("objective", objectiveTitle),
|
("objective", objectiveTitle),
|
||||||
("markupColor", "green")
|
("progress", progress)
|
||||||
));
|
));
|
||||||
completedObjectives++;
|
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
|
else
|
||||||
{
|
{
|
||||||
agentSummary.AppendLine(Loc.GetString(
|
agentSummary.AppendLine(Loc.GetString(
|
||||||
"objectives-objective-fail",
|
"objectives-objective-fail",
|
||||||
("objective", objectiveTitle),
|
("objective", objectiveTitle),
|
||||||
("progress", (int) (progress * 100)),
|
("progress", progress)
|
||||||
("markupColor", "red")
|
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,7 +11,9 @@ objectives-player-named = [color=White]{$name}[/color]
|
|||||||
objectives-no-objectives = {$custody}{$title} was a {$agent}.
|
objectives-no-objectives = {$custody}{$title} was a {$agent}.
|
||||||
objectives-with-objectives = {$custody}{$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=green]Success![/color] ({TOSTRING($progress, "P0")})
|
||||||
objectives-objective-fail = {$objective} | [color={$markupColor}]Failure![/color] ({$progress}%)
|
objectives-objective-partial-success = {$objective} | [color=yellow]Partial Success![/color] ({TOSTRING($progress, "P0")})
|
||||||
|
objectives-objective-partial-failure = {$objective} | [color=orange]Partial Failure![/color] ({TOSTRING($progress, "P0")})
|
||||||
|
objectives-objective-fail = {$objective} | [color=red]Failure![/color] ({TOSTRING($progress, "P0")})
|
||||||
|
|
||||||
objectives-in-custody = [bold][color=red]| IN CUSTODY | [/color][/bold]
|
objectives-in-custody = [bold][color=red]| IN CUSTODY | [/color][/bold]
|
||||||
|
|||||||
Reference in New Issue
Block a user