Skip to content

Commit

Permalink
Merge pull request #5300 from AaronGullickson/clanperson-xml
Browse files Browse the repository at this point in the history
Output clanperson variable to XML
  • Loading branch information
AaronGullickson authored Mar 30, 2024
2 parents 063c6a7 + 6ebd7df commit f51bb68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions megamek/src/megamek/common/EntityListFile.java
Original file line number Diff line number Diff line change
Expand Up @@ -1123,6 +1123,7 @@ private static void writePilotAttributes(Writer output, final Entity entity, fin
output.write("\" " + MULParser.ATTR_NICK + "=\"");
output.write(crew.getNickname(pos).replaceAll("\"", """));
output.write("\" " + MULParser.ATTR_GENDER + "=\"" + crew.getGender(pos).name());
output.write("\" " + MULParser.ATTR_CLANPILOT + "=\"" + crew.isClanPilot(pos));

if ((null != entity.getGame())
&& entity.getGame().getOptions().booleanOption(OptionsConstants.RPG_RPG_GUNNERY)) {
Expand Down
2 changes: 1 addition & 1 deletion megamek/src/megamek/common/MULParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public class MULParser {
private static final String ATTR_CURRENTSIZE = "currentsize";
public static final String ATTR_EXT_ID = "externalId";
public static final String ATTR_PICKUP_ID = "pickUpId";
private static final String ATTR_CLANPILOT = "clanperson";
public static final String ATTR_CLANPILOT = "clanperson";
public static final String ATTR_NICK = "nick";
public static final String ATTR_GENDER = "gender";
public static final String ATTR_CAT_PORTRAIT = "portraitCat";
Expand Down

0 comments on commit f51bb68

Please sign in to comment.