if (applyGravityEffectsOnMP(jump) > jump) return jump; else return applyGravityEffectsOnMP(jump);
if (applyGravityEffectsOnMP(jump) > jump) return Math.max(0,jump); else return Math.max(0, applyGravityEffectsOnMP(jump));
    public int getJumpMP() {        int jump=this.jumpMP;        int torsoCrits=this.getCritsHit(LOC_TORSO);        switch(torsoCrits)     	{     		case 0:     		break;     		case 1:     		jump--;     		break;     		case 2:     		jump=jump/2;     		break;     	}        if (applyGravityEffectsOnMP(jump) > jump) return jump;        else return applyGravityEffectsOnMP(jump);    }