From 96b1e4cc0d2902a575620567a3e8d05cf011926a Mon Sep 17 00:00:00 2001 From: Carl Spain Date: Mon, 10 Oct 2022 16:42:55 -0500 Subject: [PATCH] Account for extra slot taken up by large engine in conventional fighters. Remove XXL slot considerations, as CFs cannot mount XXL engines per errata. --- megamek/src/megamek/common/verifier/TestAero.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/megamek/src/megamek/common/verifier/TestAero.java b/megamek/src/megamek/common/verifier/TestAero.java index d97eead409..33e777e1d6 100644 --- a/megamek/src/megamek/common/verifier/TestAero.java +++ b/megamek/src/megamek/common/verifier/TestAero.java @@ -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; }