From 168a43d751f3921850e30168ffc478846e4323bc Mon Sep 17 00:00:00 2001 From: MH261677 Date: Wed, 23 Nov 2022 00:51:00 +0000 Subject: [PATCH] Updated BaseItem and ItemBPS Gave both items booleans to make the code differentiate what the item does to the player. --- Content/Blueprints/Items/BP_BuffJelly.uasset | 4 ++-- Content/Blueprints/Items/BP_HealingJelly.uasset | 4 ++-- Source/the_twilight_abyss/BaseItems/Items/BaseItem.h | 6 ++++++ 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/Content/Blueprints/Items/BP_BuffJelly.uasset b/Content/Blueprints/Items/BP_BuffJelly.uasset index eede26f..d96742f 100644 --- a/Content/Blueprints/Items/BP_BuffJelly.uasset +++ b/Content/Blueprints/Items/BP_BuffJelly.uasset @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:80af4bbe64d0fee0dd0863d138736db41621200d4bb23c64876a9115dadda1ab -size 6777 +oid sha256:5e848bfa9970c3ca45b347fd5fc8412d76f271c8773b6c8c67dbc4318b287d55 +size 6828 diff --git a/Content/Blueprints/Items/BP_HealingJelly.uasset b/Content/Blueprints/Items/BP_HealingJelly.uasset index 12d67cd..254ad6e 100644 --- a/Content/Blueprints/Items/BP_HealingJelly.uasset +++ b/Content/Blueprints/Items/BP_HealingJelly.uasset @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:5744de2ec7550a3c36c966cee2b68860074da7703ce037a2ab63714a1bf5c68a -size 6732 +oid sha256:9b723a5754a4c921a09eedfce3c90c246ed6ffee230d0a2f68887d1e2a0ecfbf +size 6780 diff --git a/Source/the_twilight_abyss/BaseItems/Items/BaseItem.h b/Source/the_twilight_abyss/BaseItems/Items/BaseItem.h index 88665d9..666f391 100644 --- a/Source/the_twilight_abyss/BaseItems/Items/BaseItem.h +++ b/Source/the_twilight_abyss/BaseItems/Items/BaseItem.h @@ -46,6 +46,12 @@ public: //The cost of the item UPROPERTY(EditDefaultsOnly, BlueprintReadWrite, Category = "Item") int ItemCostPrice; + + UPROPERTY(EditAnywhere, Category = "Item") + bool isHealingItem; + + UPROPERTY(EditAnywhere, Category = "Item") + bool isDamageBuffItem; //reference to the UInventoryComponent script UPROPERTY()