toHit.append(Compute.getAttackerMovementModifier(game, attackerId)); toHit.append(Compute.getAttackerTerrainModifier(game, attackerId)); toHit.append(Compute.getTargetTerrainModifier(game, target, 0, inSameBuilding)); toHit.append(Compute.getImmobileMod(target)); toHit.append(nightModifiers(game, target, null, ae, false)); toHit.append(Compute.getTargetMovementModifier(game, targetId)); toHit.append(te.getStealthModifier(RangeType.RANGE_MINIMUM, ae));
ToHitData toHitd = new ToHitData(); toHita.append(Compute.getAttackerMovementModifier(getGame(), ae.getId())); toHita.append(Compute.getTargetMovementModifier(getGame(), te.getId())); toHita.append(Compute.getTargetTerrainModifier(getGame(), te)); toHita.append(Compute.getAttackerTerrainModifier(getGame(), ae.getId())); toHitd.append(Compute.getAttackerMovementModifier(getGame(), te.getId())); toHitd.append(Compute.getTargetMovementModifier(getGame(), ae.getId())); if (!(isPhysical && isJumping())) { toHitd.append(Compute.getTargetTerrainModifier(getGame(), ae)); toHitd.append(Compute.getAttackerTerrainModifier(getGame(), te.getId())); toHita.append(los.losModifiers(getGame())); los.setTargetCover(los.getAttackerCover()); los.setAttackerCover(temp); toHitd.append(los.losModifiers(getGame()));
toHit.append(Compute.getAttackerMovementModifier(game, attackerId)); toHit.append(Compute.getTargetMovementModifier(game, targetId)); toHit.append(Compute.getAttackerTerrainModifier(game, attackerId)); toHit.append(Compute.getTargetTerrainModifier(game, te, 0, inSameBuilding)); toHit.append(Compute.getImmobileMod(te)); toHit.append(nightModifiers(game, target, null, ae, false));
toHit.append(Compute.getAttackerMovementModifier(game, attackerId)); toHit.append(Compute.getTargetMovementModifier(game, targetId)); toHit.append(Compute.getAttackerTerrainModifier(game, attackerId)); toHit.append(Compute.getTargetTerrainModifier(game, te, 0, inSameBuilding)); toHit.append(Compute.getImmobileMod(te)); toHit.append(nightModifiers(game, target, null, ae, false));
typeModifiedToHit.append(toHit); typeModifiedToHit.setHitTable(toHit.getHitTable()); typeModifiedToHit.setSideTable(toHit.getSideTable());
ToHitData right = TripAttackAction.getLimbModifier(Mech.LOC_RARM, ae); if (left.getValue() < right.getValue()) { toHit.append(left); } else { toHit.append(right); toHit.append(TripAttackAction.getLimbModifier(limb1, ae)); ToHitData right = TripAttackAction.getLimbModifier(Mech.LOC_RLEG, ae); if (left.getValue() < right.getValue()) { toHit.append(left); } else { toHit.append(right); toHit.append(TripAttackAction.getLimbModifier(limb1, ae));
tohit.append(guessToHitModifierHelperForAnyAttack(shooter, shooterState, target, targetState, 0, game));
mods.append(Compute.getAttackerMovementModifier(game, other.getId())); if (other.isAttackingThisTurn() && !other.getCrew().hasActiveCommandConsole()) {
toHit.append(Compute.getAttackerMovementModifier(game, ae.getId(), movement)); toHit.append(Compute.getTargetMovementModifier(game, targetId)); toHit.append(Compute.getAttackerTerrainModifier(game, ae.getId())); toHit.append(Compute.getTargetTerrainModifier(game, te, 0, inSameBuilding)); toHit.append(Compute.getImmobileMod(te));
toHit.append(baseMods); toHit.append(losEffects.losModifiers(game)); if ((TargetRoll.IMPOSSIBLE == toHit.getValue()) || (TargetRoll.AUTOMATIC_FAIL == toHit.getValue())) { return toHit; // you can't hit what you can't see toHit.append(getSwarmMekBaseToHit(shooter, targetEntity, game)); toHit.append(getLegAttackBaseToHit(shooter, targetEntity, game)); toHit.append(getInfantryRangeMods(distance, (InfantryWeapon) weapon.getType(), isShooterInfantry ? ((Infantry) shooter).getSecondaryWeapon() : null, ILocationExposureStatus.WET == shooter.getLocationStatus(weapon.getLocation()))); toHit.append(getDamageWeaponMods(shooter, weapon));
toHit.append(Compute.getAttackerMovementModifier(game, ae.getId(), movement)); toHit.append(Compute.getTargetMovementModifier(game, targetId)); toHit.append(Compute.getAttackerTerrainModifier(game, ae.getId())); toHit.append(Compute.getTargetTerrainModifier(game, te, 0, inSameBuilding)); toHit.append(Compute.getImmobileMod(te));
toHit.append(Compute.getAttackerMovementModifier(game, attackerId)); toHit.append(Compute.getTargetMovementModifier(game, targetId)); toHit.append(Compute.getAttackerTerrainModifier(game, attackerId)); toHit.append(Compute.getTargetTerrainModifier(game, te, 0, inSameBuilding)); toHit.append(Compute.getImmobileMod(te)); toHit.append(nightModifiers(game, target, null, ae, false));
int distance = Compute.effectiveDistance(game, ae, target); toHit.append(AbstractAttackAction.nightModifiers(game, target, null, ae, true)); toHit.append(Compute.getAttackerMovementModifier(game, attackerId)); toHit.append(thTemp); toHit.append(Compute.getAttackerTerrainModifier(game, attackerId)); toHit.append(Compute.getTargetTerrainModifier(game, target, eistatus, inSameBuilding, ae.isUnderwater())); toHit.append(losMods); toHit.append(immobileMod); toHit.append(proneMod);
toHit.append(AbstractAttackAction.nightModifiers(game, target, atype, ae, true)); toHit.append(weatherToHitMods); toHit.append(Compute.getAttackerMovementModifier(game, attackerId)); toHit.append(losMods); toHit.append(Compute.getSecondaryTargetMod(game, ae, target)); toHit.append(Compute.getDamageWeaponMods(ae, weapon)); toHit.append(Compute.getRangeMods(game, ae, weaponId, target)); Coords prevCoords = ae.passedThroughPrevious(target.getPosition()); IHex prevHex = game.getBoard().getHex(prevCoords); toHit.append(Compute.getStrafingTerrainModifier(game, eistatus, prevHex)); toHit.append(Compute.getAttackerMovementModifier(game, attackerId)); toHit.append(thTemp); toSubtract += thTemp.getValue(); int nAdjust = thTemp.getValue(); if (nAdjust > 0) { toHit.append(new ToHitData(-nAdjust, "Semi-guided ammo vs tagged target")); int nAdjust = Math.min(2, thTemp.getValue()); if (nAdjust > 0) { toHit.append(new ToHitData(-nAdjust, "Precision Ammo"));
toHitData.append(guessToHitModifierHelperForAnyAttack(shooter, shooterState, target, targetState, distance, game)); if (TargetRoll.IMPOSSIBLE == toHitData.getValue() || TargetRoll.AUTOMATIC_FAIL == toHitData.getValue()) {
ae); if ((tmpTR != null) && (tmpTR.getValue() != 0)) { mods.append(((Entity) target) .getStealthModifier(usingRange, ae));