public float JumpSpeed(float xVelocity) { float num = this._data.jumpSpeed; switch (this._type) { case 0: case 1: num += Math.Abs(xVelocity) / 7f; break; case 4: if (this._frameState == 4) { num += 2.5f; break; } break; } return num; }