Fixed Ammo items being destroyed
Fixed the ammo items being destroyed from the inventory
This commit is contained in:
parent
7e8ded362a
commit
c5ef154a3f
@ -46,9 +46,9 @@ void UEatableItems::Use(ATempCharacter* Character)
|
||||
{
|
||||
UE_LOG(LogTemp, Warning, TEXT("Probertium eaten"));
|
||||
TurnBaseCombat->ProbertiumResource += 5;
|
||||
}
|
||||
Character->Inventory->RemoveItem(this);
|
||||
}
|
||||
}
|
||||
|
||||
if (isEisType)
|
||||
{
|
||||
@ -57,9 +57,9 @@ void UEatableItems::Use(ATempCharacter* Character)
|
||||
{
|
||||
UE_LOG(LogTemp, Warning, TEXT("Eis eaten"));
|
||||
TurnBaseCombat->EisResource += 5;
|
||||
}
|
||||
Character->Inventory->RemoveItem(this);
|
||||
}
|
||||
}
|
||||
|
||||
if (isAzosType)
|
||||
{
|
||||
@ -68,9 +68,9 @@ void UEatableItems::Use(ATempCharacter* Character)
|
||||
{
|
||||
UE_LOG(LogTemp, Warning, TEXT("Azos eaten"));
|
||||
TurnBaseCombat->AzosResource += 5;
|
||||
}
|
||||
Character->Inventory->RemoveItem(this);
|
||||
}
|
||||
}
|
||||
|
||||
if (isIroquoidType)
|
||||
{
|
||||
@ -79,8 +79,8 @@ void UEatableItems::Use(ATempCharacter* Character)
|
||||
{
|
||||
UE_LOG(LogTemp, Warning, TEXT("Iroq eaten"));
|
||||
TurnBaseCombat->IroquoidResource += 5;
|
||||
}
|
||||
Character->Inventory->RemoveItem(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user