(entity instanceof Mech ? (entity.getArmor(loc,true)>0) : true)
(entity instanceof Mech ? entity.getArmor(loc, true) > 0 : true)
    private Vector breachCheck(Entity entity, int loc, IHex hex) {        Vector vDesc = new Vector();        Report r;        // BattleArmor does not breach        if (entity instanceof Infantry) {            return vDesc;        }        if (entity instanceof VTOL) {            return vDesc;        }        // This handles both water and vacuum breaches.        if (entity.getLocationStatus(loc) > ILocationExposureStatus.NORMAL) {            // Does the location have armor (check rear armor on Mek)            // and is the check due to damage?            int breachroll = 0;            if (entity.getArmor(loc) > 0 &&                (entity instanceof Mech ? (entity.getArmor(loc,true)>0) : true)                && null == hex) {                // functional HarJel prevents breach                if (entity instanceof Mech && ((Mech)entity).hasHarJelIn(loc)) {                    r = new Report(6342);                    r.subject = entity.getId();                    r.indent(3);                    vDesc.addElement(r);                    return vDesc;                }                breachroll = Compute.d6(2);                r = new Report(6345);                r.subject = entity.getId();                r.indent(3);                r.add(entity.getLocationAbbr(loc));                r.add(breachroll);                r.newlines = 0;                vDesc.addElement(r);            }            // Breach by damage or lack of armor.            if ( breachroll >= 10                 || !(entity.getArmor(loc) > 0)                 || !(entity instanceof Mech ? (entity.getArmor(loc,true)>0) :                      true) ) {                // functional HarJel prevents breach                if (entity instanceof Mech && ((Mech)entity).hasHarJelIn(loc)) {                    r = new Report(6342);                    r.subject = entity.getId();                    r.indent(3);                    vDesc.addElement(r);                    return vDesc;                }                vDesc.addAll( breachLocation(entity, loc, hex, false));            }        }        return vDesc;    }