diff --git a/megamek/src/megamek/common/Mech.java b/megamek/src/megamek/common/Mech.java index c239fc6f857..3762654de48 100644 --- a/megamek/src/megamek/common/Mech.java +++ b/megamek/src/megamek/common/Mech.java @@ -3902,6 +3902,16 @@ public String getGyroTypeString() { } public String getCockpitTypeString() { + if (isIndustrial()) { + switch (getCockpitType()) { + case COCKPIT_STANDARD: + return Mech.getCockpitTypeString(COCKPIT_INDUSTRIAL) + " (Adv. FCS)"; + case COCKPIT_PRIMITIVE: + return Mech.getCockpitTypeString(COCKPIT_PRIMITIVE_INDUSTRIAL) + " (Adv. FCS)"; + case COCKPIT_SUPERHEAVY: + return Mech.getCockpitTypeString(COCKPIT_SUPERHEAVY_INDUSTRIAL) + " (Adv. FCS)"; + } + } return Mech.getCockpitTypeString(getCockpitType()); } diff --git a/megamek/src/megamek/common/MechView.java b/megamek/src/megamek/common/MechView.java index 98b5891d351..872cbda6c42 100644 --- a/megamek/src/megamek/common/MechView.java +++ b/megamek/src/megamek/common/MechView.java @@ -417,10 +417,8 @@ public MechView(final Entity entity, final boolean showDetail, final boolean use } sBasic.add(new LabeledElement(Messages.getString("MechView.HeatSinks"), hsString.toString())); - if (a.getCockpitType() != Mech.COCKPIT_STANDARD) { - sBasic.add(new LabeledElement(Messages.getString("MechView.Cockpit"), - a.getCockpitTypeString())); - } + sBasic.add(new LabeledElement(Messages.getString("MechView.Cockpit"), + a.getCockpitTypeString())); } if (isMech) { @@ -436,13 +434,10 @@ public MechView(final Entity entity, final boolean showDetail, final boolean use .append(" damaged)").append(warningEnd()); } sBasic.add(new LabeledElement(aMech.getHeatSinkTypeName() + "s", hsString.toString())); - if ((aMech.getCockpitType() != Mech.COCKPIT_STANDARD) - || aMech.hasArmoredCockpit()) { - sBasic.add(new LabeledElement(Messages.getString("MechView.Cockpit"), - aMech.getCockpitTypeString() - + (aMech.hasArmoredCockpit() ? " (armored)" : ""))); - - } + sBasic.add(new LabeledElement(Messages.getString("MechView.Cockpit"), + aMech.getCockpitTypeString() + + (aMech.hasArmoredCockpit() ? " (armored)" : ""))); + String gyroString = aMech.getGyroTypeString(); if (aMech.getGyroHits() > 0) { gyroString += " " + warningStart() + "(" + aMech.getGyroHits()