Skip to content

Commit

Permalink
Merge pull request #5440 from Sleet01/Fix_5439_no_BA_jump_mp_bonus_ou…
Browse files Browse the repository at this point in the history
…tside_of_games

MM fix for MML issue where Partial Wing not accounted for
  • Loading branch information
Sleet01 authored May 2, 2024
2 parents 1f3d249 + 19a6ed3 commit 9cf798b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions megamek/src/megamek/common/BattleArmor.java
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,7 @@ public int getJumpMP(MPCalculationSetting mpCalculationSetting) {
mp++;
}

// MM is concerned with in-game conditions that impact Partial Wing mp
if ((game != null)) {
PlanetaryConditions conditions = game.getPlanetaryConditions();
boolean ignoreGameLessThanThin = mpCalculationSetting.ignoreWeather
Expand All @@ -528,6 +529,11 @@ && hasWorkingMisc(MiscType.F_PARTIAL_WING)
&& ignoreGameLessThanThin) {
mp++;
}
} else {
// MML just cares that the Partial Wing exists and is installed
if ((mp > 0) && hasWorkingMisc(MiscType.F_PARTIAL_WING)) {
mp++;
}
}

if ((mp > 0)
Expand Down

0 comments on commit 9cf798b

Please sign in to comment.