AzureAbyss/Source/the_twilight_abyss/BaseItems/Items/EatableItems.cpp
MH261677 f52ea5efb8 Overhauled Items
Gave every single item a unique ID so no matter the item the ID will always be different
2022-11-29 14:15:20 +00:00

42 lines
810 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()
{
ItemID;
}
void UEatableItems::Use(ATempCharacter* Character)
{
if(Character)
{
if(isHealingItem == true)
{
Character->Health += 10;
UE_LOG(LogTemp, Display, TEXT("Healed"));
}
if(isDamageBuffItem == true)
{
// need to add the damage buff functionality here
UE_LOG(LogTemp, Display, TEXT("Damage Buffed"));
}
if(StoredItems)
{
StoredItems->Remove(this);
}
}
/*
when player uses the item syrengine to debuff enemies
detect what enemie actors the player is fighting with
lower their damage by a value.
*/
}