Skip to content

Commit

Permalink
add notes export
Browse files Browse the repository at this point in the history
  • Loading branch information
SJuliez committed Nov 15, 2023
1 parent 7c54717 commit b7cc231
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion megamek/src/megamek/utilities/MechCacheCSVTool.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
import java.util.ArrayList;
import java.util.List;
import java.util.Vector;

import megamek.codeUtilities.ObjectUtility;
import megamek.codeUtilities.StringUtility;
import megamek.common.*;
import megamek.common.annotations.Nullable;
import megamek.common.templates.TROView;
Expand Down Expand Up @@ -219,7 +222,13 @@ public static void main(String... args) {
csvLine.append(entity.getFluff().getOverview().isBlank() ? "no" : "yes").append(DELIM);
csvLine.append(entity.getFluff().getDeployment().isBlank() ? "no" : "yes").append(DELIM);
csvLine.append(entity.getFluff().getHistory().isBlank() ? "no" : "yes").append(DELIM);
csvLine.append(entity.getFluff().getNotes().isBlank() ? "no" : "yes").append(DELIM);

String notes = entity.getFluff().getNotes();
if (!StringUtility.isNullOrBlank(notes)) {
csvLine.append(notes);
} else {
csvLine.append("--");
}
}

csvLine.append("\n");
Expand Down

0 comments on commit b7cc231

Please sign in to comment.