if (!game.getOptions().booleanOption("maxtech_leg_damage"))
if (!game.getOptions().booleanOption("maxtech_leg_damage")) {
    public int getWalkMP() {        int wmp = getOriginalWalkMP();        int legsDestroyed = 0;        int hipHits = 0;        int actuatorHits = 0;                for ( int i = 0; i < locations(); i++ ) {            if ( locationIsLeg(i) ) {                if ( !isLocationDestroyed(i) ) {                    if ( legHasHipCrit(i) ) {                        hipHits++;                        if (!game.getOptions().booleanOption("maxtech_leg_damage"))                            continue;                    }                    actuatorHits += countLegActuatorCrits(i);                } else {                    legsDestroyed++;                }            }        }                // leg damage effects        if(legsDestroyed > 0) {            wmp = (legsDestroyed == 1) ? 1 : 0;        } else {            if(hipHits > 0) {               if (game.getOptions().booleanOption("maxtech_leg_damage")) {                 wmp = (hipHits >= 1) ? wmp - (2 * hipHits) : 0;               } else {                 wmp = (hipHits == 1) ? (int) Math.ceil( (double) wmp / 2.0) : 0;               }            }            wmp -= actuatorHits;        }                // and we still need to factor in heat!        wmp -= (int)(heat / 5);                // TSM negates some heat        if (heat >= 9 && hasTSM()) {            if (heat == 9) {                wmp += 2;            }            else {                wmp += 1;            }        }                //For sanity sake...        wmp = Math.max(0, wmp);                return wmp;    }