return (int)Math.ceil(fTons / 5.0);
if (entity.getTechLevel() == TechConstants.T_CLAN_LEVEL_2) { return (int)Math.ceil(fTons / 5.0f); } else { return (int)Math.ceil(fTons / 4.0f); }
    public int getCriticals(Entity entity) {        if (criticals != CRITICALS_VARIABLE) {            return criticals;        }        // check for known formulas        if (hasFlag(F_HATCHET)) {            return (int)Math.ceil(entity.getWeight() / 15.0);        } else if (hasFlag(F_DOUBLE_HEAT_SINK) && entity.getTechLevel() != TechConstants.T_CLAN_LEVEL_2) {            return 3;		} else if (hasFlag(F_DOUBLE_HEAT_SINK) && entity.getTechLevel() == TechConstants.T_CLAN_LEVEL_2) {			return 2;        } else if (hasFlag(F_MASC)) {            if (entity.getTechLevel() == TechConstants.T_CLAN_LEVEL_2) {                return Math.round(entity.getWeight() / 25.0f);            }            else {                return Math.round(entity.getWeight() / 20.0f);            }        } else if (hasFlag(F_TARGCOMP)) {            // 1 slot for every 5 tons of direct_fire weaponry            double fTons = 0.0;            for (Enumeration e = entity.getWeapons(); e.hasMoreElements(); ) {                Mounted m = (Mounted)e.nextElement();                WeaponType wt = (WeaponType)m.getType();                if (wt.hasFlag(WeaponType.F_DIRECT_FIRE)) {                    fTons += wt.getTonnage(entity);                }            }            return (int)Math.ceil(fTons / 5.0);        }        // right, well I'll just guess then        return 1;    }