/** * Since ammo bins aren't real parts they can't be podded in the warehouse, and * whether they're podded on the unit depends entirely on the unit they're installed on. */ @Override public boolean isOmniPodded() { return getUnit() != null && getUnit().getEntity().getEquipment(equipmentNum).isOmniPodMounted(); }
fixedCount.merge(getSystemName(entity, crit.getIndex()), 1, Integer::sum); } else if (crit.getMount() != null) { if (crit.getMount().isOmniPodMounted()) { remaining++; } else if (!crit.getMount().isWeaponGroup()) {
if (m.isOmniPodMounted() || !entity.isOmni()) { final String loc = formatLocationTableEntry(entity, m); weapons.putIfAbsent(loc, new HashMap<>());
if (m.isOmniPodMounted() || !entity.isOmni()) { final String loc = formatLocationTableEntry(entity, m); equipment.putIfAbsent(loc, new HashMap<>());
double podSpace = 0.0; for (final Mounted m : entity.getEquipment()) { if (m.isOmniPodMounted()) { podSpace += m.getType().getTonnage(entity, m.getLocation()); } else if (m.getType() instanceof WeaponType) {
cs.getMount2().getType().getInternalName()); if (m.isOmniPodMounted()) { toReturn.append(" ").append(MtfFile.OMNIPOD);
row[2] = mounted.isOmniPodMounted()? Messages.getString("MechView.Pod") : //$NON-NLS-1$ Messages.getString("MechView.Fixed"); //$NON-NLS-1$
&& (AmmoType.getOneshotAmmo(mounted) != null)) { Mounted m = new Mounted(this, AmmoType.getOneshotAmmo(mounted)); m.setOmniPodMounted(mounted.isOmniPodMounted()); int shots = 1; m2.setOmniPodMounted(mounted.isOmniPodMounted()); m2.setShotsLeft(shots); m.setLinked(m2);
if (m.isOmniPodMounted() && m.getType().isOmniFixedOnly()) { illegal = true; buff.append(m.getType().getName() + " cannot be pod mounted."); if (m.isOmniPodMounted()) { buff.append(m.getType().getName() + " is pod mounted in non-omni unit\n"); illegal = true;
@Override public void updateConditionFromPart() { if(null != unit) { Mounted mounted = unit.getEntity().getEquipment(equipmentNum); if(null != mounted) { mounted.setMissing(false); if(hits >= 1) { mounted.setDestroyed(true); mounted.setHit(true); mounted.setRepairable(true); unit.damageSystem(CriticalSlot.TYPE_EQUIPMENT, equipmentNum, hits); } else { mounted.setHit(false); mounted.setDestroyed(false); mounted.setRepairable(true); unit.repairSystem(CriticalSlot.TYPE_EQUIPMENT, equipmentNum); } setOmniPodded(mounted.isOmniPodMounted()); } checkWeaponBay(); } }
CriticalSlot crit = entity1.getCritical(loc, slot); if (null != crit && crit.getType() == CriticalSlot.TYPE_EQUIPMENT && null != crit.getMount()) { if (!crit.getMount().isOmniPodMounted()) { fixedEquipment.add(crit.getMount().getType()); if (null != crit.getMount2()) { CriticalSlot crit = entity1.getCritical(loc, slot); if (null != crit && crit.getType() == CriticalSlot.TYPE_EQUIPMENT && null != crit.getMount()) { if (!crit.getMount().isOmniPodMounted()) { if (!fixedEquipment.remove(crit.getMount().getType())) { return false;
@Override public void updateConditionFromEntity(boolean checkForDestruction) { if(null != unit) { int priorHits = hits; Mounted mounted = unit.getEntity().getEquipment(equipmentNum); if(null != mounted) { if(mounted.isMissing()) { remove(false); return; } hits = unit.getEntity().getDamagedCriticals(CriticalSlot.TYPE_EQUIPMENT, equipmentNum, mounted.getLocation()); if(mounted.isSplit()) { hits += unit.getEntity().getDamagedCriticals(CriticalSlot.TYPE_EQUIPMENT, equipmentNum, mounted.getSecondLocation()); } omniPodded = mounted.isOmniPodMounted(); } if(checkForDestruction && hits > priorHits && Compute.d6(2) < campaign.getCampaignOptions().getDestroyPartTarget()) { remove(false); return; } } }
} else { apart = new AmmoBin((int)entity.getWeight(), m.getType(), eqnum, fullShots - m.getBaseShotsLeft(), oneShot, m.isOmniPodMounted(), campaign); if(null == epart) { epart = new HeatSink((int)entity.getWeight(), m.getType(), eqnum, m.isOmniPodMounted(), campaign); addPart(epart); partsToAdd.add(epart); if(null == epart) { epart = new JumpJet((int)entity.getWeight(), m.getType(), eqnum, m.isOmniPodMounted(), campaign); addPart(epart); partsToAdd.add(epart); m.isOmniPodMounted(), campaign); if(type instanceof MiscType && type.hasFlag(MiscType.F_MASC)) { epart = new MASC((int)entity.getWeight(), type, eqnum, campaign, erating, m.isOmniPodMounted());
String.valueOf(mounted.getBaseShotsLeft()), "" }; if (entity.isOmni()) { row[3] = mounted.isOmniPodMounted()? Messages.getString("MechView.Pod") : //$NON-NLS-1$ Messages.getString("MechView.Fixed"); //$NON-NLS-1$
row[3] = mounted.isOmniPodMounted()? Messages.getString("MechView.Pod") : //$NON-NLS-1$ Messages.getString("MechView.Fixed"); //$NON-NLS-1$
name += ":SSWM"; if (m.isOmniPodMounted()) { name += ":OMNI";