Updates
This commit is contained in:
@@ -32,18 +32,33 @@ void UExposeBodyPartRestriction::Stop()
|
||||
|
||||
FText UExposeBodyPartRestriction::GetDescription() const
|
||||
{
|
||||
FText Part = UPrivateBodyPartType::GetString(BodyPart);
|
||||
FText BodyPartString;
|
||||
switch (BodyPart)
|
||||
{
|
||||
case EBodyPart::Ass:
|
||||
BodyPartString = FText::FromString("Ass");
|
||||
break;
|
||||
case EBodyPart::Boobs:
|
||||
BodyPartString = FText::FromString("Boobs");
|
||||
break;
|
||||
case EBodyPart::Genitals:
|
||||
BodyPartString = FText::FromString("Genitals");
|
||||
break;
|
||||
default:
|
||||
BodyPartString = FText::FromString("None");
|
||||
break;
|
||||
}
|
||||
|
||||
return FText::Format(RestrictionsExposeBodyPartDescription,
|
||||
FFormatNamedArguments
|
||||
{
|
||||
{TEXT("BodyPart"), Part}
|
||||
{TEXT("BodyPart"), BodyPartString}
|
||||
});
|
||||
}
|
||||
|
||||
void UExposeBodyPartRestriction::EquipClothing(const UClothingItemInstance* ClothingItemInstance)
|
||||
{
|
||||
if (IsSuccess && ClothingItemInstance->GetClothingItem()->CoveredBodyParts.Contains(BodyPart))
|
||||
if (IsSuccess) // TODO: Add covered body part resolution
|
||||
{
|
||||
Init(Player);
|
||||
}
|
||||
@@ -68,7 +83,7 @@ void UExposeBodyPartRestriction::CheckClothing()
|
||||
{
|
||||
if (ClothingSlot.ClothingItemInstance)
|
||||
{
|
||||
return ClothingSlot.ClothingItemInstance->GetClothingItem()->CoveredBodyParts.Contains(BodyPart);
|
||||
return true; // TODO: Add exposed body part resolution
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user