Updated Combat UI to Display Enemy Name

This commit is contained in:
Philip W 2023-05-13 19:58:29 +01:00
parent fa6ca7835a
commit bc0aad5f6b
5 changed files with 11 additions and 6 deletions

BIN
Content/BlueprintAI/AI/AIBruh.uasset (Stored with Git LFS)

Binary file not shown.

BIN
Content/BlueprintAI/AI/AIBruh_Boss.uasset (Stored with Git LFS)

Binary file not shown.

Binary file not shown.

View File

@ -82,7 +82,9 @@ void ATurnBaseCombatV2::StartCombat(AActor* Enemy, const bool bWasShot)
LookAtRotation.Pitch = NewRotation.Pitch - PlayerActor->GetActorRotation().Pitch;
LookAtRotation.Pitch += 10; //Offset
PlayerController->SetControlRotation(LookAtRotation);
EnemyName = FText::FromString("Crystal Mutant");
}
else EnemyName = FText::FromString("Feral Goat");
if (IsValid(CombatTutorialWidgetInstance) && CombatTutorialWidgetInstance->IsInViewport()) return;
if (!HasSeenTutorial)

View File

@ -28,6 +28,9 @@ public:
UPROPERTY(BlueprintReadOnly)
bool bIsInCombat = false;
UPROPERTY(BlueprintReadOnly)
FText EnemyName = FText::FromString("Enemy");
UPROPERTY()
float BaseDamageMultiplier = 1.0f;
UPROPERTY(EditDefaultsOnly)