Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix record sheet label for infantry compartment #1395

Merged
merged 1 commit into from
Jan 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion megameklab/src/megameklab/printing/PrintAero.java
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public String formatFeatures() {
Map<String, Integer> seating = new HashMap<>();
for (Transporter t : aero.getTransports()) {
if (t instanceof TroopSpace) {
transport.merge("Infantry Bay", t.getUnused(), Double::sum);
transport.merge("Infantry Compartment", t.getUnused(), Double::sum);
} else if (t instanceof StandardSeatCargoBay) {
seating.merge(((Bay) t).getType(), (int) ((Bay) t).getCapacity(), Integer::sum);
// include cargo bays for fighters and fixed wing, but small craft get a block for transport bays
Expand Down
2 changes: 1 addition & 1 deletion megameklab/src/megameklab/printing/PrintTank.java
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ public String formatFeatures() {
Map<String, Integer> seating = new HashMap<>();
for (Transporter t : tank.getTransports()) {
if (t instanceof TroopSpace) {
transport.merge("Infantry Bay", t.getUnused(), Double::sum);
transport.merge("Infantry Compartment", t.getUnused(), Double::sum);
} else if (t instanceof StandardSeatCargoBay) {
seating.merge(((Bay) t).getType(), (int) ((Bay) t).getCapacity(), Integer::sum);
} else if (t instanceof Bay) {
Expand Down
Loading