/** * * @param rollTarget * @param nagReport * @param psrList */ private static void checkNag(PilotingRollData rollTarget, StringBuffer nagReport, List<TargetRoll> psrList) { if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { psrList.add(rollTarget); Object[] objs = new Object[] { rollTarget.getValueAsString(), rollTarget.getDesc() }; nagReport .append(Messages.getString("MovementDisplay.addNag", objs));//$NON-NLS-1$ } }
@Override public PilotingRollData checkGetUp(MoveStep step, EntityMovementType moveType) { PilotingRollData roll = super.checkGetUp(step, moveType); if (roll.getValue() != TargetRoll.CHECK_FALSE) { addStandingPenalties(roll); } return roll; }
@Override public PilotingRollData checkGetUp(MoveStep step, EntityMovementType moveType) { PilotingRollData roll = super.checkGetUp(step, moveType); if (roll.getValue() != TargetRoll.CHECK_FALSE) { addStandingPenalties(roll); } return roll; }
r.add(base.getValueAsString()); r.add(diceRoll); if (diceRoll < base.getValue()) { r.choose(false); setStalled(true);
/** * Calculates the Falling damage after a successful To-Hit. * * @param odds * @param ent The entity that is falling * @return */ private static double calculateFallingDamage(double odds, Entity ent) { double dmg = odds; dmg *= 1.0 - (Compute.oddsAbove(ent.getBasePilotingRoll().getValue(), ent.hasAbility(OptionsConstants.PILOT_APTITUDE_PILOTING)) / 100.0); dmg *= ent.getWeight() * 0.1; return dmg; }
r.add(base.getValueAsString()); r.add(diceRoll); if (diceRoll < base.getValue()) { r.choose(false); vPhaseReport.add(r);
Mockito.when(mockPilotingRollData.getValue()).thenReturn(7); Mockito.when(mockPilotingRollData.getValue()).thenReturn(12); Mockito.when(mockMech.isImmobile()).thenReturn(false); Mockito.when(mockMech.isShutDown()).thenReturn(false); Mockito.when(mockPilotingRollData.getValue()).thenReturn(7); Mockito.when(mockMech.isImmobile()).thenReturn(false); Mockito.when(mockMech.isShutDown()).thenReturn(false); Mockito.when(mockPilotingRollData.getValue()).thenReturn(12); Mockito.when(mockMech.isImmobile()).thenReturn(false); Mockito.when(mockMech.isShutDown()).thenReturn(false);
movePath.getLastStepMovementType()); log(getClass(), METHOD_NAME, LogLevel.INFO, "Need to roll " + target.getValue() + " to stand and our tolerance is " + threshold); return (target.getValue() >= threshold); false); log(getClass(), METHOD_NAME, LogLevel.INFO, "Need to roll " + target.getValue() + " to get unstuck and our tolerance is " + threshold); return (target.getValue() >= threshold);
if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { getStep(0).setDanger(true); current.setDanger(true);
if ((hex != null) && isJumping() && step.isEndPos(this)) { PilotingRollData psr = entity.checkLandingInHeavyWoods(step.getMovementType(false), hex); if (psr.getValue() != PilotingRollData.CHECK_FALSE) { step.setDanger(true);
.getValue(), entity.hasAbility(OptionsConstants.PILOT_APTITUDE_PILOTING)) / 100;