diff --git a/ServerExt/Classes/ExtAutoPurchaseHelper.uc b/ServerExt/Classes/ExtAutoPurchaseHelper.uc index a7a28bd..d3237b1 100644 --- a/ServerExt/Classes/ExtAutoPurchaseHelper.uc +++ b/ServerExt/Classes/ExtAutoPurchaseHelper.uc @@ -229,3 +229,15 @@ function int AddItemByPriority( out SItemInformation WeaponInfo ) return BestIndex; } + +function bool CanCarry( const out STraderItem Item ) +{ + local int Result; + + Result = TotalBlocks + MyKFIM.GetDisplayedBlocksRequiredFor(Item); + if (Result > MaxBlocks) + { + return false; + } + return true; +}