Skip to content

Commit 8912887

Browse files
Sean LaiWellBattle6
authored andcommitted
Enable large support and superheavy location tables in record sheets
1 parent 62c3a2e commit 8912887

1 file changed

Lines changed: 21 additions & 5 deletions

File tree

megameklab/src/megameklab/printing/PrintCompositeTankSheet.java

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -154,19 +154,35 @@ protected String getRecordSheetTitle() {
154154
return "";
155155
}
156156

157-
private static class TankTables extends PrintRecordSheet {
157+
private class TankTables extends PrintRecordSheet {
158158

159159
TankTables(RecordSheetOptions options) {
160160
super(0, options);
161161
}
162162

163163
@Override
164164
protected String getSVGFileName(int pageNumber) {
165-
// Check if Vehicle Effectiveness Rules are enabled
166-
if(this.options.TacOpsVehicleEffectiveness()){
167-
return "tables_tank_tacops_vehicle_effectiveness_rules.svg";
165+
if (tank1.isSupportVehicle() && tank1.getWeightClassName().replaceAll(" .*", "").equals("Large")) {
166+
// Check if Vehicle Effectiveness Rules are enabled
167+
if(this.options.TacOpsVehicleEffectiveness()){
168+
return "tables_tank_support_tacops_vehicle_effectiveness_rules.svg";
169+
} else {
170+
return "tables_tank_support.svg";
171+
}
172+
} else if (tank1.isSuperHeavy()) {
173+
// Check if Vehicle Effectiveness Rules are enabled
174+
if(this.options.TacOpsVehicleEffectiveness()){
175+
return "tables_tank_superheavy_tacops_vehicle_effectiveness_rules.svg";
176+
} else {
177+
return "tables_tank_superheavy.svg";
178+
}
168179
} else {
169-
return "tables_tank.svg";
180+
// Check if Vehicle Effectiveness Rules are enabled
181+
if(this.options.TacOpsVehicleEffectiveness()){
182+
return "tables_tank_tacops_vehicle_effectiveness_rules.svg";
183+
} else {
184+
return "tables_tank.svg";
185+
}
170186
}
171187
}
172188

0 commit comments

Comments
 (0)