From c6e5cb5e007d7a28cae39e5f9f11e7a01700c888 Mon Sep 17 00:00:00 2001 From: PHILIP White Date: Sat, 13 May 2023 01:17:59 +0100 Subject: [PATCH] Updated Combat to Reward on Goat Kill --- .../the_twilight_abyss/TurnBasedCombatV2/TurnBaseCombatV2.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/the_twilight_abyss/TurnBasedCombatV2/TurnBaseCombatV2.cpp b/Source/the_twilight_abyss/TurnBasedCombatV2/TurnBaseCombatV2.cpp index 82ed1cb..fbe47dc 100644 --- a/Source/the_twilight_abyss/TurnBasedCombatV2/TurnBaseCombatV2.cpp +++ b/Source/the_twilight_abyss/TurnBasedCombatV2/TurnBaseCombatV2.cpp @@ -439,6 +439,7 @@ void ATurnBaseCombatV2::DamagePlayer(int Damage, const FString& DamageType) EnemyActor->CallFunctionByNameWithArguments(*Command, AR, nullptr, true); return; } + Cast(PlayerActor)->GoldBalance += 100; EnemyActor->Destroy(); return; } @@ -491,6 +492,7 @@ void ATurnBaseCombatV2::DamageEnemy(int Damage, const FString& DamageType) EnemyActor->CallFunctionByNameWithArguments(*Command2, AR, nullptr, true); return; } + Cast(PlayerActor)->GoldBalance += 100; EnemyActor->Destroy(); return; }