Exposed Base Damage for Enemies
This commit is contained in:
parent
dc9e149381
commit
53126c6b10
BIN
Content/BlueprintAI/AI/AIBruh.uasset
(Stored with Git LFS)
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)
BIN
Content/BlueprintAI/AI/AIBruh_Boss.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Levels/Build.umap
(Stored with Git LFS)
BIN
Content/Levels/Build.umap
(Stored with Git LFS)
Binary file not shown.
@ -734,7 +734,12 @@ void ATurnBaseCombatV2::EnableButtons() const
|
||||
|
||||
void ATurnBaseCombatV2::EnemyTurn()
|
||||
{
|
||||
if (FMath::RandRange(1, 100) > 30) DamagePlayer(10);
|
||||
if (FMath::RandRange(1, 100) > 30)
|
||||
{
|
||||
const FProperty* EnemyBaseDamageProperty = EnemyActor->GetClass()->FindPropertyByName(FName("BaseDamage"));
|
||||
const int* EnemyBaseDamageSpeedPtr = EnemyBaseDamageProperty->ContainerPtrToValuePtr<int>(EnemyActor);
|
||||
DamagePlayer(*EnemyBaseDamageSpeedPtr);
|
||||
}
|
||||
else
|
||||
{
|
||||
StatusTextBlock->SetText(FText::FromString("Missed"));
|
||||
|
Loading…
Reference in New Issue
Block a user