Updated Combat to Reward on Goat Kill

This commit is contained in:
Philip W 2023-05-13 01:17:59 +01:00
parent 0f47b962b3
commit c6e5cb5e00

View File

@ -439,6 +439,7 @@ void ATurnBaseCombatV2::DamagePlayer(int Damage, const FString& DamageType)
EnemyActor->CallFunctionByNameWithArguments(*Command, AR, nullptr, true); EnemyActor->CallFunctionByNameWithArguments(*Command, AR, nullptr, true);
return; return;
} }
Cast<ATempCharacter>(PlayerActor)->GoldBalance += 100;
EnemyActor->Destroy(); EnemyActor->Destroy();
return; return;
} }
@ -491,6 +492,7 @@ void ATurnBaseCombatV2::DamageEnemy(int Damage, const FString& DamageType)
EnemyActor->CallFunctionByNameWithArguments(*Command2, AR, nullptr, true); EnemyActor->CallFunctionByNameWithArguments(*Command2, AR, nullptr, true);
return; return;
} }
Cast<ATempCharacter>(PlayerActor)->GoldBalance += 100;
EnemyActor->Destroy(); EnemyActor->Destroy();
return; return;
} }