Skip to content

Commit

Permalink
BV Calculation: Show when pilot modifiers cancel out
Browse files Browse the repository at this point in the history
  • Loading branch information
SJuliez committed Jun 16, 2023
1 parent 5118607 commit 16d1f1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions megamek/src/megamek/common/battlevalue/BVCalculator.java
Original file line number Diff line number Diff line change
Expand Up @@ -1137,15 +1137,15 @@ protected void adjustBV() {

processExternalStores();

if (pilotFactor != 1) {
if ((pilotFactor != 1) || !pilotModifiers.isEmpty()) {
bvReport.addLine("Pilot Modifier:",
formatForReport(adjustedBV) + " x " + formatForReport(pilotFactor)
+ (pilotModifiers.isEmpty() ? "" : " (" + String.join(", ", pilotModifiers) + ")"),
"= " + formatForReport(adjustedBV * pilotFactor));
adjustedBV *= pilotFactor;
}

if (adjustedBV != (int) Math.round(baseBV)) {
if ((adjustedBV != (int) Math.round(baseBV)) || !pilotModifiers.isEmpty()) {
bvReport.addLine("--- Adjusted BV:", formatForReport(adjustedBV) + ", rn",
"= " + (int) Math.round(adjustedBV));
}
Expand Down

0 comments on commit 16d1f1d

Please sign in to comment.