public boolean correctMovement(StringBuffer buff) { // Mechanical Jump Boosts can be greater then Running as long as // the unit can handle the weight. if ((mech.getJumpMP(false) > mech.getOriginalRunMPwithoutMASC()) && !mech.hasJumpBoosters() && !mech.hasWorkingMisc(MiscType.F_PARTIAL_WING)) { buff.append("Jump MP exceeds run MP\n"); return false; } if ((mech.getJumpMP(false) > mech.getOriginalWalkMP()) && (((mech.getJumpType() != Mech.JUMP_IMPROVED) && (mech.getJumpType() != Mech.JUMP_PROTOTYPE_IMPROVED)) && !mech.hasWorkingMisc(MiscType.F_PARTIAL_WING) && !mech .hasJumpBoosters())) { buff.append("Jump MP exceeds walk MP without IJJs\n"); return false; } if ((mech instanceof LandAirMech) && mech.getJumpMP(false) < 3) { buff.append("LAMs must have at least 3 jumping MP.\n"); return false; } return true; }
int run = entity.getRunMP(); if (entity instanceof Mech) { run = ((Mech) entity).getOriginalRunMPwithoutMASC();