if (mech.getArmorType() != EquipmentType.T_ARMOR_UNKNOWN) { sIntArm.append(" ("); sIntArm.append(EquipmentType.getArmorTypeName(mech.getArmorType())); sIntArm.append(")");
if (mech.getArmorType() != EquipmentType.T_ARMOR_STANDARD) { if (mech.getArmorType() != EquipmentType.T_ARMOR_UNKNOWN) { sIntArm.append(" ("); sIntArm.append(EquipmentType.getArmorTypeName(mech.getArmorType())); sIntArm.append(")"); } else { sIntArm.append(" (unknown)"); }
    private String getInternalAndArmor() {        StringBuffer sIntArm = new StringBuffer();        int maxArmor = mech.getTotalInternal() * 2 + 3;        sIntArm.append( Messages.getString("MechView.Internal") ) //$NON-NLS-1$            .append( mech.getTotalInternal() );        if (isMech && ((Mech)mech).hasEndo()) {            sIntArm.append(Messages.getString("MechView.EndoSteel")); //$NON-NLS-1$        } else if (isMech && ((Mech)mech).hasReinforcedStructure()) {            sIntArm.append(Messages.getString("MechView.Reinforced")); //$NON-NLS-1$        } else if (isMech && ((Mech)mech).hasCompositeStructure()) {            sIntArm.append(Messages.getString("MechView.Composite")); //$NON-NLS-1$        }        sIntArm.append( "\n" ); //$NON-NLS-1$        sIntArm.append(Messages.getString("MechView.Armor")) //$NON-NLS-1$            .append( mech.getTotalArmor() );        if ( isMech ) {            sIntArm.append( "/" ) //$NON-NLS-1$                .append( maxArmor );        }        if (mech.getArmorType() != EquipmentType.T_ARMOR_UNKNOWN) {            sIntArm.append(" (");            sIntArm.append(EquipmentType.getArmorTypeName(mech.getArmorType()));            sIntArm.append(")");        }        sIntArm.append( "\n" ); //$NON-NLS-1$        // Walk through the entity's locations.        for ( int loc = 0; loc < mech.locations(); loc++ ) {            // Skip empty sections.            if ( IArmorState.ARMOR_NA == mech.getInternal(loc) ||                 ( isVehicle && (( loc == Tank.LOC_TURRET &&                                   ((Tank)mech).hasNoTurret() ) ||                                 (loc == Tank.LOC_BODY))) ) {                continue;            }            if ( mech.getLocationAbbr(loc).length() < 2 ) {                sIntArm.append( " " ); //$NON-NLS-1$            }            sIntArm.append( mech.getLocationAbbr(loc) )                .append( ": " ); //$NON-NLS-1$            sIntArm.append( renderArmor(mech.getInternal(loc)) )                .append("   "); //$NON-NLS-1$            if ( IArmorState.ARMOR_NA != mech.getArmor(loc) ) {                sIntArm.append( renderArmor(mech.getArmor(loc)) );            }            if ( mech.hasRearArmor(loc) ) {                sIntArm.append( " (" ) //$NON-NLS-1$                    .append( renderArmor(mech.getArmor(loc, true)) )                    .append( ")" ); //$NON-NLS-1$            }            sIntArm.append( "\n" ); //$NON-NLS-1$        }        return sIntArm.toString();    }