Skip to content

Commit

Permalink
Add columns to cluster hits table on record sheet for MGA and streak …
Browse files Browse the repository at this point in the history
…weapons.
  • Loading branch information
neoancient committed Feb 27, 2024
1 parent 99059c0 commit baf7c8c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions megameklab/src/megameklab/printing/reference/ClusterHitsTable.java
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ private void calculateClusterSizes(Entity entity) {
case AmmoType.T_LRM_IMP:
case AmmoType.T_LRM_PRIMITIVE:
case AmmoType.T_LRM_TORPEDO:
case AmmoType.T_LRM_STREAK:
case AmmoType.T_MML:
case AmmoType.T_MRM:
case AmmoType.T_NLRM:
Expand All @@ -107,6 +108,7 @@ private void calculateClusterSizes(Entity entity) {
case AmmoType.T_SRM_IMP:
case AmmoType.T_SRM_PRIMITIVE:
case AmmoType.T_SRM_TORPEDO:
case AmmoType.T_SRM_STREAK:
clusterSizes.add(weapon.getRackSize());
break;
case AmmoType.T_ATM:
Expand All @@ -126,6 +128,15 @@ private void calculateClusterSizes(Entity entity) {
case AmmoType.T_AC_ULTRA_THB:
clusterSizes.add(2);
break;
case AmmoType.T_MG:
case AmmoType.T_MG_HEAVY:
case AmmoType.T_MG_LIGHT:
if (weapon.hasFlag(WeaponType.F_MGA)) {
for (int i = 2; i <= 4; i++) {
clusterSizes.add(i);
}
}
break;
}
}
}
Expand Down

0 comments on commit baf7c8c

Please sign in to comment.