Updated Inventory system for Items in UI

The Inventory System is working fully with the healing jelly working
This commit is contained in:
MH261677 2022-11-15 00:04:46 +00:00
parent 593badeca9
commit e602d83a31
5 changed files with 19 additions and 6 deletions

Binary file not shown.

BIN
Content/Blueprints/WBP_ItemDisplay.uasset (Stored with Git LFS)

Binary file not shown.

Binary file not shown.

View File

@ -3,13 +3,24 @@
#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);
}
}
}

View File

@ -13,6 +13,8 @@ UCLASS()
class THE_TWILIGHT_ABYSS_API UEatableItems : public UBaseItem
{
GENERATED_BODY()
UEatableItems();
protected: