Skip to content

Commit

Permalink
Show infantry bays on record sheet with platoon capacity rather than …
Browse files Browse the repository at this point in the history
…weight.
  • Loading branch information
neoancient committed Jan 16, 2024
1 parent e184307 commit af827c5
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 @@ -890,6 +890,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 af827c5

Please sign in to comment.