AzureAbyss/Source/the_twilight_abyss/BaseItems/Items/EatableItems.cpp
MH261677 3572f066c1 Updated EatableItems
Deleted unused code
2022-11-18 18:19:14 +00:00

29 lines
505 B
C++

// Fill out your copyright notice in the Description page of Project Settings.
#include "EatableItems.h"
#include "the_twilight_abyss/BaseItems/InventoryComponent.h"
#include "the_twilight_abyss/PlayerTemp/TempCharacter.h"
UEatableItems::UEatableItems()
{
}
void UEatableItems::Use(ATempCharacter* Character)
{
if(Character)
{
Character->Health += 10;
if(StoredItems)
{
StoredItems->Remove(this);
}
}
}
// IF THE ITEM HAS THE TAG THEN HEAL OR IF IT HAS OTHER TAG DO SOMETHING ELSE