AzureAbyss/Source/the_twilight_abyss/BaseItems/Items/EatableItems.cpp
MH261677 e602d83a31 Updated Inventory system for Items in UI
The Inventory System is working fully with the healing jelly working
2022-11-15 00:04:46 +00:00

27 lines
426 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);
}
}
}