This commit is contained in:
Rowland Rowland 2023-03-13 17:23:18 +00:00
commit 23985317a2
37 changed files with 139 additions and 17 deletions

Binary file not shown.

Binary file not shown.

BIN
Content/Blueprints/Game_UI/InventoryIcons/Gear_Symbol.uasset (Stored with Git LFS) Normal file

Binary file not shown.

Binary file not shown.

BIN
Content/Blueprints/Game_UI/InventoryIcons/Map_Symbol.uasset (Stored with Git LFS) Normal file

Binary file not shown.

Binary file not shown.

BIN
Content/Blueprints/Game_UI/WBP_Combos.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Blueprints/Game_UI/WBP_Gear.uasset (Stored with Git LFS) Normal file

Binary file not shown.

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

Binary file not shown.

BIN
Content/Blueprints/Game_UI/WBP_Lore.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Blueprints/Game_UI/WBP_MainWidg.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Blueprints/Game_UI/WBP_Maps.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Blueprints/Game_UI/WBP_PlayerInventory.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Blueprints/Game_UI/WBP_Settings.uasset (Stored with Git LFS) Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

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

Binary file not shown.

BIN
Content/Blueprints/Items/BP_Azos.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Blueprints/Items/BP_Eis.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Blueprints/Items/BP_Iroquoid.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Blueprints/Items/BP_Probertium.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Blueprints/Items/ItemMaterials/Mat_Azos.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Blueprints/Items/ItemMaterials/Mat_Eis.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Blueprints/Items/ItemMaterials/Mat_Iroquoid.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Blueprints/Items/ItemMaterials/Mat_Probertium.uasset (Stored with Git LFS) Normal file

Binary file not shown.

Binary file not shown.

BIN
Content/Blueprints/Items/ItemsInWorld/BP_Azos.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Blueprints/Items/ItemsInWorld/BP_Eis.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Blueprints/Items/ItemsInWorld/BP_Iroquoid.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Blueprints/Items/ItemsInWorld/BP_Probertium.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Fonts/Adistro-8MePB.otf (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Fonts/Adistro-Font.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Fonts/Adistro_Font.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Levels/MerchantPrototype.umap (Stored with Git LFS)

Binary file not shown.

View File

@ -54,7 +54,16 @@ public:
bool isDamageBuffItem;
UPROPERTY(EditAnywhere, Category = "Item")
bool isAmmoItemType;
bool isProbertiumType;
UPROPERTY(EditAnywhere, Category = "Item")
bool isEisType;
UPROPERTY(EditAnywhere, Category = "Item")
bool isAzosType;
UPROPERTY(EditAnywhere, Category = "Item")
bool isIroquoidType;
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Item")
int32 StackCount = 1;

View File

@ -39,18 +39,48 @@ void UEatableItems::Use(ATempCharacter* Character)
Character->Inventory->RemoveItem(this);
}
if (isAmmoItemType)
if (isProbertiumType)
{
TurnBaseCombat = GetWorld()->GetGameState<ATurnBaseCombatV2>();
if (TurnBaseCombat->ProbertiumResource > 10)
if (TurnBaseCombat->ProbertiumResource < 10)
{
UE_LOG(LogTemp, Warning, TEXT("Probertium eaten"));
TurnBaseCombat->ProbertiumResource += 5;
Character->Inventory->RemoveItem(this);
}
if (TurnBaseCombat->EisResource > 10)
}
if (isEisType)
{
TurnBaseCombat = GetWorld()->GetGameState<ATurnBaseCombatV2>();
if (TurnBaseCombat->EisResource < 10)
{
UE_LOG(LogTemp, Warning, TEXT("Eis eaten"));
TurnBaseCombat->EisResource += 5;
Character->Inventory->RemoveItem(this);
}
}
if (isAzosType)
{
TurnBaseCombat = GetWorld()->GetGameState<ATurnBaseCombatV2>();
if (TurnBaseCombat->AzosResource < 10)
{
UE_LOG(LogTemp, Warning, TEXT("Azos eaten"));
TurnBaseCombat->AzosResource += 5;
Character->Inventory->RemoveItem(this);
}
}
if (isIroquoidType)
{
TurnBaseCombat = GetWorld()->GetGameState<ATurnBaseCombatV2>();
if (TurnBaseCombat->IroquoidResource < 10)
{
UE_LOG(LogTemp, Warning, TEXT("Iroq eaten"));
TurnBaseCombat->IroquoidResource += 5;
Character->Inventory->RemoveItem(this);
}
Character->Inventory->RemoveItem(this);
}
}
}

View File

@ -102,4 +102,6 @@ public:
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Widgets")
UUserWidget* ImportantStats;
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Widgets")
UUserWidget* MainMenuWidget;
};