// © 2025 Naked People Team. All Rights Reserved.


#include "BeFullyNakedNearNPCsObjective.h"

#define LOCTEXT_NAMESPACE "Commissions.Objectives.BeFullyNakedNearNPCs"

bool UBeFullyNakedNearNPCsObjective::IsConditionMet() const
{
	return IsFullyNaked() && GetObserverCount() >= RequiredNPCs;
}

FText UBeFullyNakedNearNPCsObjective::GetDescription() const
{
	const FText People = (RequiredNPCs == 1)
		? LOCTEXT("Person", "1 person")
		: FText::Format(LOCTEXT("People", "{0} people"), FText::AsNumber(RequiredNPCs));

	if (RequiredHoldSeconds > 0.0f)
	{
		return FText::Format(LOCTEXT("Timed", "Be fully naked in front of {0} for {1} seconds"),
			People, FText::AsNumber(FMath::RoundToInt(RequiredHoldSeconds)));
	}

	return FText::Format(LOCTEXT("Instant", "Get fully naked in front of {0}"), People);
}

#undef LOCTEXT_NAMESPACE