if (entity instanceof BattleArmor){ result = ((BattleArmor) entity).getArmor(loc, false); }  if (result <= 0) result = 0;
    protected double getArmorValue(int loc, boolean rear) {        double result = entity.getArmor(loc, rear);        double percent = result / entity.getOArmor(loc, rear);        if (percent < .25) {            result *= .5;        } else if (percent < .60) {            result *= .8;        }        return result;    }