Skip to content

Commit

Permalink
Merge pull request #6078 from pavelbraginskiy/patch-patchwork
Browse files Browse the repository at this point in the history
Save patchwork armor with right tech level
  • Loading branch information
HammerGS authored Oct 8, 2024
2 parents 2d52aea + 34e042c commit 60ca23b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions megamek/src/megamek/common/Mek.java
Original file line number Diff line number Diff line change
Expand Up @@ -4258,7 +4258,6 @@ public boolean isLocationDeadly(Coords c) {
/**
* Get an '.mtf' file representation of the Mek. This string can be
* directly written to disk as a file and later loaded by the MtfFile class.
* Known missing level 3 features: mixed tech, laser heatsinks
*/
public String getMtf() {
StringBuilder sb = new StringBuilder();
Expand Down Expand Up @@ -4450,7 +4449,7 @@ public String getMtf() {
}
sb.append(getLocationAbbr(element)).append(" ").append(MtfFile.ARMOR);
if (hasPatchworkArmor()) {
sb.append(EquipmentType.getArmorTypeName(getArmorType(element), isClan()))
sb.append(EquipmentType.getArmorTypeName(getArmorType(element), TechConstants.isClan(getArmorTechLevel(element))))
.append('(').append(TechConstants.getTechName(getArmorTechLevel(element)))
.append("):");
}
Expand Down

0 comments on commit 60ca23b

Please sign in to comment.