From d24194b1cb71d542017622edf505493585048d8c Mon Sep 17 00:00:00 2001 From: PHILIP White Date: Sun, 14 May 2023 21:34:08 +0100 Subject: [PATCH] Updated Healing & Buff Jelly to Change Max Values to 20 --- .../BaseItems/Items/EatableItems.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Source/the_twilight_abyss/BaseItems/Items/EatableItems.cpp b/Source/the_twilight_abyss/BaseItems/Items/EatableItems.cpp index a4e5d24..5056473 100644 --- a/Source/the_twilight_abyss/BaseItems/Items/EatableItems.cpp +++ b/Source/the_twilight_abyss/BaseItems/Items/EatableItems.cpp @@ -43,10 +43,10 @@ void UEatableItems::Use(ATempCharacter* Character) if (isProbertiumType) { TurnBaseCombat = GetWorld()->GetGameState(); - if (TurnBaseCombat->ProbertiumResource < 10) + if (TurnBaseCombat->ProbertiumResource < 20) { UE_LOG(LogTemp, Warning, TEXT("Probertium eaten")); - TurnBaseCombat->ProbertiumResource = FMath::Clamp(TurnBaseCombat->ProbertiumResource + 2, 0, 10); + TurnBaseCombat->ProbertiumResource = FMath::Clamp(TurnBaseCombat->ProbertiumResource + 2, 0, 20); Character->Inventory->RemoveItem(this); } } @@ -54,10 +54,10 @@ void UEatableItems::Use(ATempCharacter* Character) if (isEisType) { TurnBaseCombat = GetWorld()->GetGameState(); - if (TurnBaseCombat->EisResource < 10) + if (TurnBaseCombat->EisResource < 20) { UE_LOG(LogTemp, Warning, TEXT("Eis eaten")); - TurnBaseCombat->EisResource = FMath::Clamp(TurnBaseCombat->EisResource + 2, 0, 10); + TurnBaseCombat->EisResource = FMath::Clamp(TurnBaseCombat->EisResource + 2, 0, 20); Character->Inventory->RemoveItem(this); } } @@ -65,10 +65,10 @@ void UEatableItems::Use(ATempCharacter* Character) if (isAzosType) { TurnBaseCombat = GetWorld()->GetGameState(); - if (TurnBaseCombat->AzosResource < 10) + if (TurnBaseCombat->AzosResource < 20) { UE_LOG(LogTemp, Warning, TEXT("Azos eaten")); - TurnBaseCombat->AzosResource = FMath::Clamp(TurnBaseCombat->AzosResource + 2, 0, 10); + TurnBaseCombat->AzosResource = FMath::Clamp(TurnBaseCombat->AzosResource + 2, 0, 20); Character->Inventory->RemoveItem(this); } } @@ -76,10 +76,10 @@ void UEatableItems::Use(ATempCharacter* Character) if (isIroquoidType) { TurnBaseCombat = GetWorld()->GetGameState(); - if (TurnBaseCombat->IroquoidResource < 10) + if (TurnBaseCombat->IroquoidResource < 20) { UE_LOG(LogTemp, Warning, TEXT("Iroq eaten")); - TurnBaseCombat->IroquoidResource = FMath::Clamp(TurnBaseCombat->IroquoidResource + 3, 0, 10); + TurnBaseCombat->IroquoidResource = FMath::Clamp(TurnBaseCombat->IroquoidResource + 3, 0, 20); Character->Inventory->RemoveItem(this); } }