Updated Combat to Randomise Enemy Resources
This commit is contained in:
parent
19cfc6a0d2
commit
99d97c8729
BIN
COMP250_1_2101327_AI/Content/StarterContent/Blueprints/Blueprint_CeilingLight.uasset
(Stored with Git LFS)
BIN
COMP250_1_2101327_AI/Content/StarterContent/Blueprints/Blueprint_CeilingLight.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
COMP250_1_2101327_AI/Content/StarterContent/HDRI/HDRI_Epic_Courtyard_Daylight.uasset
(Stored with Git LFS)
BIN
COMP250_1_2101327_AI/Content/StarterContent/HDRI/HDRI_Epic_Courtyard_Daylight.uasset
(Stored with Git LFS)
Binary file not shown.
@ -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()))
|
||||
|
Loading…
Reference in New Issue
Block a user