Skip to content

Commit

Permalink
Merge pull request #3929 from MegaMek/conv_ftr_engine_slots
Browse files Browse the repository at this point in the history
Account for extra slot taken up by large engine in conventional fighters
  • Loading branch information
SJuliez authored Oct 11, 2022
2 parents 96c06e2 + 96b1e4c commit c5b3e64
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions megamek/src/megamek/common/verifier/TestAero.java
Original file line number Diff line number Diff line change
Expand Up @@ -302,14 +302,10 @@ public static int maxArmorPoints(Entity aero, double tonnage) {
}
}

// XXL engines take up extra space in the aft in conventional fighters
// Large engines take up extra space in the aft in conventional fighters
if (((a.getEntityType() & Entity.ETYPE_CONV_FIGHTER) != 0)
&& a.hasEngine() && (a.getEngine().getEngineType() == Engine.XXL_ENGINE)) {
if (a.getEngine().hasFlag(Engine.CLAN_ENGINE)) {
availSpace[Aero.LOC_AFT] -= 2;
} else {
availSpace[Aero.LOC_AFT] -= 4;
}
&& a.hasEngine() && (a.getEngine().hasFlag(Engine.LARGE_ENGINE))) {
availSpace[Aero.LOC_AFT] -= 1; // same for ICE and fusion
}
return availSpace;
}
Expand Down

0 comments on commit c5b3e64

Please sign in to comment.