Updated Combat to Randomise Enemy Resources

This commit is contained in:
Philip W 2023-03-22 17:33:31 +00:00
parent 19cfc6a0d2
commit 99d97c8729
3 changed files with 8 additions and 8 deletions

View File

@ -47,10 +47,10 @@ void ATurnBaseCombatV2::StartCombat(AActor* Enemy)
AzosResource = 10;
IroquoidResource = 10;
EnemyProbertiumResource = 10;
EnemyEisResource = 10;
EnemyAzosResource = 10;
EnemyIroquoidResource = 10;
EnemyProbertiumResource = FMath::RandRange(0, 10);
EnemyEisResource = FMath::RandRange(0, 10);
EnemyAzosResource = FMath::RandRange(0, 10);
EnemyIroquoidResource = FMath::RandRange(0, 10);
//Disable Character Movement
if (ACharacter* PlayerCharacter = Cast<ACharacter>(GetWorld()->GetFirstPlayerController()->GetPawn()))