if (improvedJJ < 0) { for (Object oMount : miscList) { Mounted m = (Mounted)oMount; if ((m.getType().hasFlag(MiscType.F_JUMP_JET)) && ((m.getType().getTechLevel() == TechConstants.T_IS_LEVEL_3) || (m.getType().getTechLevel() == TechConstants.T_CLAN_LEVEL_3))) { improvedJJ = 1; break; } }
switch (getJumpType()) { case JUMP_IMPROVED: return Math.max(3, movedMP/2 + movedMP%2); case JUMP_BOOSTER: case JUMP_DISPOSABLE: return 0; default: return super.getJumpHeat(movedMP);
    public int getJumpHeat(int movedMP) {        // -1 means uninitialized        // 0 means standard        // 1 means improved        if (improvedJJ < 0) {            for (Object oMount : miscList) {                Mounted m = (Mounted)oMount;                if ((m.getType().hasFlag(MiscType.F_JUMP_JET))                        && ((m.getType().getTechLevel() == TechConstants.T_IS_LEVEL_3)                            || (m.getType().getTechLevel() == TechConstants.T_CLAN_LEVEL_3))) {                    improvedJJ = 1;                    break;                }            }        }        if (improvedJJ > 0) {            return movedMP/2 + movedMP%2;        }        return super.getJumpHeat(movedMP);    }