Fix for when Selling/Buying Weapons in the Trader
This commit is contained in:
parent
55f1fa13c7
commit
6da6c6757f
@ -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;
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user