From 99d97c87290358e1d8fca4ff959e23edf06e6bee Mon Sep 17 00:00:00 2001 From: PHILIP White Date: Wed, 22 Mar 2023 17:33:31 +0000 Subject: [PATCH] Updated Combat to Randomise Enemy Resources --- .../Blueprints/Blueprint_CeilingLight.uasset | 4 ++-- .../HDRI/HDRI_Epic_Courtyard_Daylight.uasset | 4 ++-- .../TurnBasedCombatV2/TurnBaseCombatV2.cpp | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/COMP250_1_2101327_AI/Content/StarterContent/Blueprints/Blueprint_CeilingLight.uasset b/COMP250_1_2101327_AI/Content/StarterContent/Blueprints/Blueprint_CeilingLight.uasset index 1034abe..c5c3b84 100644 --- a/COMP250_1_2101327_AI/Content/StarterContent/Blueprints/Blueprint_CeilingLight.uasset +++ b/COMP250_1_2101327_AI/Content/StarterContent/Blueprints/Blueprint_CeilingLight.uasset @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:f6c13a84d6c9bc0304340e711bd62286838c1fbea908e77cb3906a65ef7504b0 -size 43745 +oid sha256:4a60a29ad596546d481e43dfb8698842a78cc07f4a4b1000fa397cfba4e72331 +size 158206 diff --git a/COMP250_1_2101327_AI/Content/StarterContent/HDRI/HDRI_Epic_Courtyard_Daylight.uasset b/COMP250_1_2101327_AI/Content/StarterContent/HDRI/HDRI_Epic_Courtyard_Daylight.uasset index 0f99058..247f8ac 100644 --- a/COMP250_1_2101327_AI/Content/StarterContent/HDRI/HDRI_Epic_Courtyard_Daylight.uasset +++ b/COMP250_1_2101327_AI/Content/StarterContent/HDRI/HDRI_Epic_Courtyard_Daylight.uasset @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:bc35eb2d43a47427d30aba0196f9eac90d089dd3abca319528c5d25c83510d0d -size 72364642 +oid sha256:4968d566c351d87791abe40d2d98f3486eb4a0d57318255bea33eaf37850fc13 +size 66790690 diff --git a/COMP250_1_2101327_AI/Source/COMP250_1_2101327_AI/TurnBasedCombatV2/TurnBaseCombatV2.cpp b/COMP250_1_2101327_AI/Source/COMP250_1_2101327_AI/TurnBasedCombatV2/TurnBaseCombatV2.cpp index d0f44e8..4a04b67 100644 --- a/COMP250_1_2101327_AI/Source/COMP250_1_2101327_AI/TurnBasedCombatV2/TurnBaseCombatV2.cpp +++ b/COMP250_1_2101327_AI/Source/COMP250_1_2101327_AI/TurnBasedCombatV2/TurnBaseCombatV2.cpp @@ -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(GetWorld()->GetFirstPlayerController()->GetPawn()))