Skip to content

Commit

Permalink
Merge pull request #284 from MegaMek/bv_without_pilot
Browse files Browse the repository at this point in the history
Fix for #281
  • Loading branch information
neoancient committed Apr 6, 2019
2 parents 9dc00e8 + 3f65433 commit ce1fe34
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/megameklab/com/printing/PrintEntity.java
Expand Up @@ -147,7 +147,10 @@ protected void writeTextFields() {
setTextField("rulesLevel", formatRulesLevel());
setTextField("era", formatEra(getEntity().getYear()));
setTextField("cost", formatCost());
setTextField("bv", NumberFormat.getInstance().format(getEntity().calculateBattleValue()));
// If we're using a MUL to print generic sheets we also want to ignore any BV adjustments
// for C3 networks or pilot skills.
setTextField("bv", NumberFormat.getInstance().format(getEntity()
.calculateBattleValue(!showPilotInfo(), !showPilotInfo())));
UnitRole role = UnitRoleHandler.getRoleFor(getEntity());
if (!options.showRole() || (role == UnitRole.UNDETERMINED)) {
hideElement("lblRole", true);
Expand Down

0 comments on commit ce1fe34

Please sign in to comment.