final int legLoc = (leg == KickAttackAction.RIGHT) ? Mech.LOC_RLEG : Mech.LOC_LLEG;
int[] kickLegs = new int[2]; if ( entity.entityIsQuad() ) { kickLegs[0] = Mech.LOC_RARM; kickLegs[1] = Mech.LOC_LARM; } else { kickLegs[0] = Mech.LOC_RLEG; kickLegs[1] = Mech.LOC_LLEG; }  final int legLoc = (leg == KickAttackAction.RIGHT) ? kickLegs[0] : kickLegs[1];
    public static int getKickDamageFor(Entity entity, int leg) {        final int legLoc = (leg == KickAttackAction.RIGHT)                           ? Mech.LOC_RLEG : Mech.LOC_LLEG;        int damage = (int)Math.floor(entity.getWeight() / 5.0);        float multiplier = 1.0f;                if (!entity.hasWorkingSystem(Mech.ACTUATOR_UPPER_LEG, legLoc)) {            multiplier /= 2.0f;        }        if (!entity.hasWorkingSystem(Mech.ACTUATOR_LOWER_LEG, legLoc)) {            multiplier /= 2.0f;        }        if (!entity.hasWorkingSystem(Mech.ACTUATOR_HIP, legLoc)) {            damage = 0;        }        return (int)Math.floor(damage * multiplier);    }