/** * Returns true if a jump using mechanical jump boosters would cause falling * damage. Mechanical jump boosters are only designed to handle the stress * of falls from a height equal to their jumpMP; if a jump has a fall that * is further than the jumpMP of the unit, fall damage applies. * * @return */ public boolean shouldMechanicalJumpCauseFallDamage() { if (isJumping() && (getEntity().getJumpType() == Mech.JUMP_BOOSTER) && (getJumpMaxElevationChange() > getEntity().getJumpMP())) { return true; } return false; }
"MovementDisplay.ConfirmMechanicalJumpFallDamage", new Object[] { cmd.getJumpMaxElevationChange(), ce().getJumpMP(), cmd.getJumpMaxElevationChange() - ce().getJumpMP() }), true); nag.setVisible(true);