and CustomXP optimization (?)
This commit is contained in:
inklesspen_rus
2021-01-09 13:26:05 +03:00
parent 5a8b04c913
commit 60ba914cef
3 changed files with 7 additions and 11 deletions

View File

@ -146,6 +146,7 @@ function ApplyPerk(Ext_PerkBase P)
ModifyHealth(HP.HealthMax);
ModifyArmor(HP.MaxArmor);
CurrentPerk.UpdateAmmoStatus(HP.InvManager);
if (HP.Health > HP.HealthMax) HP.Health = HP.HealthMax;
if (HP.Armor > HP.MaxArmor) HP.Armor = HP.MaxArmor;

View File

@ -1372,8 +1372,8 @@ final function UpdateAmmoStatus(InventoryManager Inv)
foreach Inv.InventoryActors(class'KFWeapon',W)
{
if (IsWeaponOnPerk(W))
W.ReInitializeAmmoCounts(PerkManager);
// if (IsWeaponOnPerk(W))
W.ReInitializeAmmoCounts(PerkManager);
}
}