return (float)Math.ceil(entity.getWeight() * entity.getOriginalJumpMP() / 5.0);
return (float)(Math.ceil(entity.getWeight() * entity.getOriginalJumpMP() / 10.0) / 2.0);
    public float getTonnage(Entity entity) {        if (tonnage != TONNAGE_VARIABLE) {            return tonnage;        }        // check for known formulas        if (hasFlag(F_JUMP_JET)) {            if ((getTechLevel() == TechConstants.T_IS_LEVEL_3)                    || (getTechLevel() == TechConstants.T_CLAN_LEVEL_3)) {                if (entity.getWeight() <= 55.0) {                    return 1.0f;                } else if (entity.getWeight() <= 85.0) {                    return 2.0f;                } else {                    return 4.0f;                }            } else {                if (entity.getWeight() <= 55.0) {                    return 0.5f;                } else if (entity.getWeight() <= 85.0) {                    return 1.0f;                } else {                    return 2.0f;                }            }        } else if (hasFlag(F_CLUB)                && (hasSubType(S_HATCHET)                || hasSubType(S_MACE_THB))) {            return (float)Math.ceil(entity.getWeight() / 15.0);        } else if (hasFlag(F_CLUB)                && hasSubType(S_SWORD)) {            return (float)(Math.ceil(entity.getWeight() / 20.0 * 2.0) / 2.0);        } else if (hasFlag(F_CLUB)                && hasSubType(S_MACE)) {            return (float)(Math.ceil(entity.getWeight() / 10.0));        } else if (hasFlag(F_MASC)) {            if (hasSubType(S_SUPERCHARGER)) {                return 0.5f; //fixme            } else {                if (entity.isClan()) {                    return Math.round(entity.getWeight() / 25.0f);                }                else {                    return Math.round(entity.getWeight() / 20.0f);                }            }        } else if (hasFlag(F_TARGCOMP)) {            // based on tonnage 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);                }            }            if (entity.isClan()) {                return (float)Math.ceil(fTons / 5.0f);            }            else {                return (float)Math.ceil(fTons / 4.0f);            }        } else if ( EquipmentType.getArmorTypeName(T_ARMOR_FERRO_FIBROUS).equals(internalName) ) {            double tons = 0.0;            if ( entity.isClanArmor()) {                tons = entity.getTotalOArmor() / ( 16 * 1.2 );            } else {                tons = entity.getTotalOArmor() / ( 16 * 1.12 );            }            tons = Math.ceil( tons * 2.0 ) / 2.0;            return (float) tons;        } else if ( EquipmentType.getArmorTypeName(T_ARMOR_LIGHT_FERRO).equals(internalName) ) {            double tons = entity.getTotalOArmor() / (16*1.06);            tons = Math.ceil( tons * 2.0 ) / 2.0;            return (float) tons;        } else if ( EquipmentType.getArmorTypeName(T_ARMOR_HEAVY_FERRO).equals(internalName) ) {            double tons = entity.getTotalOArmor() / (16*1.24);            tons = Math.ceil( tons * 2.0 ) / 2.0;            return (float) tons;        } else if ( EquipmentType.getStructureTypeName(T_STRUCTURE_ENDO_STEEL).equals(internalName) ) {            double tons = 0.0;            tons = Math.ceil( entity.getWeight() / 10.0 ) / 2.0;            return (float) tons;        } else if ( EquipmentType.getStructureTypeName(T_STRUCTURE_ENDO_PROTOTYPE).equals(internalName) ) {            double tons = 0.0;            tons = Math.ceil( entity.getWeight() / 10.0 ) / 2.0;            return (float) tons;        } else if ( EquipmentType.getStructureTypeName(T_STRUCTURE_REINFORCED).equals(internalName) ) {            double tons = 0.0;            tons = Math.ceil( entity.getWeight() / 10.0 ) * 2.0;            return (float) tons;        } else if ( EquipmentType.getStructureTypeName(T_STRUCTURE_COMPOSITE).equals(internalName) ) {            double tons = 0.0;            tons = Math.ceil( entity.getWeight() / 10.0 ) / 2.0;            return (float) tons;        } else if (hasFlag(F_VACUUM_PROTECTION)) {            return (float)Math.ceil(entity.getWeight() / 10.0);        } else if (hasFlag(F_JUMP_BOOSTER)) {            return (float)Math.ceil(entity.getWeight() * entity.getOriginalJumpMP() / 5.0);        }        // okay, I'm out of ideas        return 1.0f;    }