@Override protected void addHeat() { if (!(toHit.getValue() == TargetRoll.IMPOSSIBLE)) { if (weapon.isRapidfire()) { ae.heatBuildup += nRapidDamHeatPerHit; } else { super.addHeat(); } } }
@Override protected void addHeat() { if (!(toHit.getValue() == TargetRoll.IMPOSSIBLE)) { if (weapon.isRapidfire()) { ae.heatBuildup += nDamPerHit; } else { super.addHeat(); } } }
@Override protected void reportMiss(Vector<Report> vPhaseReport) { // Report the miss Report r = new Report(3220); r.subject = subjectId; vPhaseReport.add(r); if (weapon.isRapidfire() && !((target instanceof Infantry) && !(target instanceof BattleArmor))) { r.newlines = 0; r = new Report(3225); r.subject = subjectId; r.add(nDamPerHit * 3); vPhaseReport.add(r); } }
@Override protected void reportMiss(Vector<Report> vPhaseReport) { // Report the miss Report r = new Report(3220); r.subject = subjectId; vPhaseReport.add(r); if (weapon.isRapidfire() && !((target instanceof Infantry) && !(target instanceof BattleArmor))) { r.newlines = 0; r = new Report(3225); r.subject = subjectId; r.add(nDamPerHit * 3); vPhaseReport.add(r); } } }
RapidfireMGPanel(Mounted m) { m_mounted = m; int loc = m.getLocation(); String sDesc = Messages .getString( "CustomMechDialog.switchToRapidFire", new Object[] { entity.getLocationAbbr(loc) }); //$NON-NLS-1$ JLabel labRapid = new JLabel(sDesc); GridBagLayout g = new GridBagLayout(); setLayout(g); add(labRapid, GBC.std().anchor(GridBagConstraints.EAST)); chRapid.setSelected(m.isRapidfire()); add(chRapid, GBC.eol()); }
output.append(mount.getLinked().getType().getInternalName()); if (mount.isRapidfire()) { output.append("\" rfmg=\"true");
@Override protected int calcDamagePerHit() { if (weapon.isRapidfire() && !(target instanceof Infantry)) { // Check for rapid fire Option. Only MGs can be rapidfire. switch (wtype.getDamage()) { case 1: nDamPerHit = Math.max(1, Compute.d6() - 1); break; case 3: nDamPerHit = Compute.d6() + 1; break; default: nDamPerHit = Compute.d6(); break; } numRapidFireHits = nDamPerHit; if (bDirect) { nDamPerHit = Math.min(nDamPerHit + (toHit.getMoS() / 3), nDamPerHit * 2); } if (bGlancing) { nDamPerHit = (int) Math.floor(nDamPerHit / 2.0); } } else { nDamPerHit = super.calcDamagePerHit(); } return nDamPerHit; }
@Override protected int calcDamagePerHit() { double toReturn = nDamPerHit; if (weapon.isRapidfire() && !((target instanceof Infantry) && !(target instanceof BattleArmor))) {
if (mounted.isRapidfire()) { wn.append(Messages.getString("MechDisplay.rapidFire")); //$NON-NLS-1$
else if ((mount != null) && (mount.isRapidfire())) { thisLoc.append(EntityListFile.formatSlot( String.valueOf(loop + 1), mount, slot.isHit(),
if (etype.hasFlag(WeaponType.F_MG)) { hasMGs |= true; hasRapidFireMG |= m.isRapidfire();
@Override protected void useAmmo() { if (weapon.isRapidfire()) {
r.add(entityTarget.getLocationAbbr(pcHit)); vPhaseReport.addElement(r); if (weapon.isRapidfire()) { r.newlines = 0; r = new Report(3225);
r.add(entityTarget.getLocationAbbr(hit)); vPhaseReport.addElement(r); if (weapon.isRapidfire()) { r.newlines = 0; r = new Report(3225);
.getWeaponId()); if ((weapon.getCurrentHeat() != 0) || weapon.isRapidfire()) {