/** * Check for whether this mount is linked by a one-shot weapon * * @return {@code true} if this is one-shot ammo */ public boolean isOneShotAmmo() { return (getType() instanceof AmmoType) && (getLinkedBy() != null) && getLinkedBy().isOneShot(); }
matchingAmmoBins = new ArrayList<>(); if (m_mounted.isOneShot()) {
isOneShot = linkedBy.isOneShot(); } else { loc = m.getLocation();
&& mounted.getLinkedBy().isOneShot()){ continue;
&& m.getLinkedBy().isOneShot()){ continue;
&& m.getLinkedBy().isOneShot()){ continue;