trader & HRG93R fix

This commit is contained in:
GenZmeY 2023-10-21 13:46:39 +03:00
parent cf4542ae8a
commit 6166612727
Signed by: GenZmeY
GPG Key ID: 424DA4BC3CB2CF39
2 changed files with 13 additions and 0 deletions

View File

@ -32,6 +32,8 @@ function PerkChanged(byte NewPerkIndex, bool bClickedIndex)
}
}
PreviewPerkIndex = NewPerkIndex;
UpdateContainers(MSKGSPC.PerkList[NewPerkIndex].PerkClass, bClickedIndex);
}

View File

@ -10,6 +10,17 @@ function bool IsItemFiltered(STraderItem Item, optional bool bDebug)
return true;
if (Item.WeaponDef.default.PlatformRestriction != PR_All && class'KFUnlockManager'.static.IsPlatformRestricted(Item.WeaponDef.default.PlatformRestriction))
return true;
if (Has9mmGun())
{
if ((Item.ClassName == 'KFWeap_HRG_93r' || Item.ClassName == 'KFWeap_HRG_93r_Dual'))
return true;
}
else
{
if ((Item.ClassName == 'KFWeap_Pistol_9mm' || Item.ClassName == 'KFWeap_Pistol_Dual9mm'))
return true;
}
return false;
}