if (getDestroyedCriticals(CriticalSlot.TYPE_SYSTEM, Mech.ACTUATOR_HIP, loc) > 0) {
if (getBadCriticals(CriticalSlot.TYPE_SYSTEM, Mech.ACTUATOR_HIP, loc) > 0) {
    public PilotingRollData addEntityBonuses(PilotingRollData roll) {        int[] locsToCheck = new int[2];        locsToCheck[0] = Mech.LOC_RLEG;        locsToCheck[1] = Mech.LOC_LLEG;                for ( int i = 0; i < locsToCheck.length; i++ ) {            int loc = locsToCheck[i];                        if (isLocationDestroyed(loc)) {                roll.addModifier(5, getLocationName(loc) + " destroyed");            } else {                // check for damaged hip actuators                if (getDestroyedCriticals(CriticalSlot.TYPE_SYSTEM, Mech.ACTUATOR_HIP, loc) > 0) {                    roll.addModifier(2, getLocationName(loc) + " Hip Actuator destroyed");                    if (!game.getOptions().booleanOption("maxtech_leg_damage"))                        continue;                }                // upper leg actuators?                if (getDestroyedCriticals(CriticalSlot.TYPE_SYSTEM, Mech.ACTUATOR_UPPER_LEG, loc) > 0) {                    roll.addModifier(1, getLocationName(loc) + " Upper Leg Actuator destroyed");                }                // lower leg actuators?                if (getDestroyedCriticals(CriticalSlot.TYPE_SYSTEM, Mech.ACTUATOR_LOWER_LEG, loc) > 0) {                    roll.addModifier(1, getLocationName(loc) + " Lower Leg Actuator destroyed");                }                // foot actuators?                if (getDestroyedCriticals(CriticalSlot.TYPE_SYSTEM, Mech.ACTUATOR_FOOT, loc) > 0) {                    roll.addModifier(1, getLocationName(loc) + " Foot Actuator destroyed");                }            }        }                return super.addEntityBonuses(roll);    }