Skip to content

Commit

Permalink
Merge pull request #1141 from MegaMek/rs_reference_ba_cluster
Browse files Browse the repository at this point in the history
Add missing columns to BA cluster reference table
  • Loading branch information
neoancient authored Jul 5, 2022
2 parents a3b5e13 + 894ce8e commit 4541ff3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ private void calculateClusterSizes(Entity entity) {
if (entity instanceof BattleArmor) {
for (Mounted mounted : entity.getIndividualWeaponList()) {
if (mounted.getType() instanceof MissileWeapon) {
clusterSizes.add(Math.min(40, size * ((MissileWeapon) mounted.getType()).getRackSize()));
for (int troopers = 1; troopers <= size; troopers++) {
clusterSizes.add(Math.min(40, troopers * ((MissileWeapon) mounted.getType()).getRackSize()));
}
}
}
}
Expand Down

0 comments on commit 4541ff3

Please sign in to comment.