Skip to content

Commit

Permalink
Merge pull request #868 from MegaMek/imp_missile_bay_artemis
Browse files Browse the repository at this point in the history
Include improved LRM and SRM in bay weapons that have have Artemis
  • Loading branch information
neoancient authored Jan 16, 2021
2 parents 8dd2112 + c190443 commit 419ff31
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/megameklab/com/ui/util/BayWeaponCriticalTree.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
import javax.swing.tree.TreePath;
import javax.swing.tree.TreeSelectionModel;

import megamek.MegaMek;
import megamek.common.Aero;
import megamek.common.AmmoType;
import megamek.common.Entity;
Expand Down Expand Up @@ -1029,8 +1028,10 @@ public void addToBay(@Nullable Mounted bay, Mounted eq) {
final WeaponType wtype = (WeaponType)weapon.getType();
if ((weapon.getLinkedBy() == null)
&& ((wtype.getAmmoType() == AmmoType.T_LRM)
|| (wtype.getAmmoType() == AmmoType.T_SRM)
|| (wtype.getAmmoType() == AmmoType.T_MML)
|| (wtype.getAmmoType() == AmmoType.T_SRM)
|| (wtype.getAmmoType() == AmmoType.T_MML)
|| (wtype.getAmmoType() == AmmoType.T_LRM_IMP)
|| (wtype.getAmmoType() == AmmoType.T_SRM_IMP)
|| (wtype.getAmmoType() == AmmoType.T_NLRM))) {
moveToArc(eq);
eq.setLinked(weapon);
Expand Down Expand Up @@ -1343,8 +1344,10 @@ private boolean canTakeEquipment(Mounted bay, Mounted eq) {
final WeaponType wtype = (WeaponType) weapon.getType();
if ((weapon.getLinkedBy() == null)
&& ((wtype.getAmmoType() == AmmoType.T_LRM)
|| (wtype.getAmmoType() == AmmoType.T_SRM)
|| (wtype.getAmmoType() == AmmoType.T_MML)
|| (wtype.getAmmoType() == AmmoType.T_SRM)
|| (wtype.getAmmoType() == AmmoType.T_MML)
|| (wtype.getAmmoType() == AmmoType.T_LRM_IMP)
|| (wtype.getAmmoType() == AmmoType.T_SRM_IMP)
|| (wtype.getAmmoType() == AmmoType.T_NLRM))) {
return true;
}
Expand Down

0 comments on commit 419ff31

Please sign in to comment.