3572f066c1
Deleted unused code
29 lines
505 B
C++
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
|