Skip to content

Commit

Permalink
Merge pull request #1394 from MegaMek/rs_infantry_bay_capacity
Browse files Browse the repository at this point in the history
Show infantry bays on record sheet with platoon capacity rather than weight
  • Loading branch information
SJuliez authored Jan 17, 2024
2 parents 5aa832c + af827c5 commit aafd706
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions megameklab/src/megameklab/printing/InventoryWriter.java
Original file line number Diff line number Diff line change
Expand Up @@ -888,6 +888,9 @@ public double printBayInfo(float fontSize, double lineHeight, double currY) {
} else {
capacity *= 4;
}
} else if (b instanceof InfantryBay) {
// Divide total weight by weight required by platoon to get platoon capacity
capacity /= ((InfantryBay) b).getPlatoonType().getWeight();
}
bayCapacityString.append(NumberFormat.getInstance().format(capacity));
if ((i + 1) < bays.size()) {
Expand Down

0 comments on commit aafd706

Please sign in to comment.