private boolean includeMunition(AmmoType atype) { if (!atype.canAeroUse() || (atype.getAmmoType() != at) || (atype.getRackSize() != rackSize) || ((atype.getTechBase() != techBase) && (atype.getTechBase() != AmmoType.TECH_BASE_ALL) && (techBase != AmmoType.TECH_BASE_ALL)) || !atype.isLegal(game.getOptions().intOption(OptionsConstants.ALLOWED_YEAR), SimpleTechLevel.getGameTechLevel(game), techBase == AmmoType.TECH_BASE_CLAN, false)) { return false; } if (atype.hasFlag(AmmoType.F_NUCLEAR) && !game.getOptions().booleanOption( OptionsConstants.ADVAERORULES_AT2_NUKES)) { return false; } if ((atype.getMunitionType() & AmmoType.M_ARTEMIS_CAPABLE) != 0) { return entity.hasWorkingMisc(MiscType.F_ARTEMIS) || entity.hasWorkingMisc(MiscType.F_ARTEMIS_PROTO); } if ((atype.getMunitionType() & AmmoType.M_ARTEMIS_V_CAPABLE) != 0) { return entity.hasWorkingMisc(MiscType.F_ARTEMIS_V); } return true; }
&& !atype.canAeroUse()) { continue;
&& !atCheck.canAeroUse()) { continue;
&& usesAmmo && ammo != null && !((AmmoType)ammo.getType()).canAeroUse()) { return "cannot use this ammunition in fighter mode.";