added session loss sequence, added energy and stamina to HUD, added home location trigger
This commit is contained in:
@@ -110,6 +110,21 @@ FText UCommissionObjective::GetDescription() const
|
||||
return FText::GetEmpty();
|
||||
}
|
||||
|
||||
FText UCommissionObjective::GetConstraintsDescription() const
|
||||
{
|
||||
TArray<FString> Parts;
|
||||
for (const UCommissionConstraint* Constraint : Constraints)
|
||||
{
|
||||
if (!Constraint)
|
||||
continue;
|
||||
|
||||
const FString Text = Constraint->GetDescription().ToString();
|
||||
if (!Text.IsEmpty())
|
||||
Parts.Add(Text);
|
||||
}
|
||||
return FText::FromString(FString::Join(Parts, TEXT(", ")));
|
||||
}
|
||||
|
||||
float UCommissionObjective::GetProgress() const
|
||||
{
|
||||
if (bSatisfied)
|
||||
|
||||
Reference in New Issue
Block a user