public int JumpHeight(float xVelocity)
{
int num = this._data.jumpHeight;
switch (this._type)
{
case 0:
num += (int)((double)Math.Abs(xVelocity) / 4.0);
break;
case 1:
num += (int)((double)Math.Abs(xVelocity) / 2.5);
break;
case 4:
if (this._frameState == 4)
{
num += 5;
break;
}
break;
}
return num;
}