Fix for when Selling/Buying Weapons in the Trader

This commit is contained in:
Josh 2017-10-22 14:22:23 -05:00 committed by GitHub
parent 55f1fa13c7
commit 6da6c6757f

View File

@ -229,3 +229,15 @@ function int AddItemByPriority( out SItemInformation WeaponInfo )
return BestIndex; return BestIndex;
} }
function bool CanCarry( const out STraderItem Item )
{
local int Result;
Result = TotalBlocks + MyKFIM.GetDisplayedBlocksRequiredFor(Item);
if (Result > MaxBlocks)
{
return false;
}
return true;
}