Compare commits

...

3 Commits

Author SHA1 Message Date
Ji Yoon Rhee
f6bbeb4380 modified the AOE randomize item filter 2025-06-09 23:12:32 +09:00
Ji Yoon Rhee
89fb53f538 buff item logic modified + test buff item 2025-06-09 23:12:07 +09:00
Ji Yoon Rhee
25b9886b69 shop HUD - extra functionalities 2025-06-09 23:09:51 +09:00
11 changed files with 20 additions and 20 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -53,7 +53,7 @@ bool AHYShopAOE::RandomizeTradableItemSets(int CurrentHonbaekAmount)
// Filtering match the case.(Item can be bought, ItemValue is less and equal than honbaek amount and over than 0)
TArray<FInventoryItem*> FilteredItemData = ItemData.FilterByPredicate([CurrentHonbaekAmount](const FInventoryItem* ItemDataRow)
{
return !ItemDataRow->OnlyDropped && ItemDataRow->ItemValue > 0 && ItemDataRow->ItemValue <= CurrentHonbaekAmount;
return !ItemDataRow->OnlyDropped && ItemDataRow->ItemValue > 0 && ItemDataRow->ItemValue <= CurrentHonbaekAmount && ItemDataRow->CanBeBought;
});
int maxLoopNum = FMath::Min(5, FilteredItemData.Num());