Skip to content

Commit

Permalink
Merge pull request #4766 from SJuliez/#4286_RatGenEditor_UnitTypes
Browse files Browse the repository at this point in the history
RATGeneratorEditor: Show unit type instead of number
  • Loading branch information
HammerGS authored Sep 10, 2023
2 parents a332f75 + be32b64 commit 366a51b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion megamek/src/megamek/utilities/RATGeneratorEditor.java
Original file line number Diff line number Diff line change
Expand Up @@ -1288,7 +1288,7 @@ public Object getValueAt(int row, int col) {
if (row == 0) {
return "Salvage %";
} else if (row > factionRec.getRatingLevels().size() * CATEGORIES.length) {
return WEIGHT_DIST_UNIT_TYPES[row - 1 - factionRec.getRatingLevels().size() * CATEGORIES.length];
return UnitType.getTypeName(WEIGHT_DIST_UNIT_TYPES[row - 1 - factionRec.getRatingLevels().size() * CATEGORIES.length]);
} else {
return CATEGORIES[(row - 1) / factionRec.getRatingLevels().size()]
+ " " + factionRec.getRatingLevels().get((row - 1) % factionRec.getRatingLevels().size());
Expand Down

0 comments on commit 366a51b

Please sign in to comment.