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

@ -606,17 +606,12 @@ function CustomXP(Controller Killer, Controller Killed)
KFPC = KFPlayerController(DamagerKFPRI.Owner);
if (KFPC != none)
{
XP = 0;
for (j = 0; j < CustomZedXPArray.Length; j++)
j = CustomZedXPArray.Find('zedclass', KFM.Class);
if(j != -1)
{
if (KFM.Class == CustomZedXPArray[j].zedclass)
{
XP = CustomZedXPArray[j].XPValues[MyKFGI.GameDifficulty];
break;
}
XP = CustomZedXPArray[j].XPValues[MyKFGI.GameDifficulty];
}
if (XP == 0)
else
{
XP = KFM.static.GetXPValue(MyKFGI.GameDifficulty);
}