Updated Combat to Reward on Goat Kill
This commit is contained in:
		
							parent
							
								
									0f47b962b3
								
							
						
					
					
						commit
						c6e5cb5e00
					
				| @ -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; | ||||||
| 	} | 	} | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user