virtual RangeCondition<T> *clone() const;
virtual bool can_merge(const Condition &, const CompoundCondition &) const;
virtual RangeCondition<T> *merge(const std::vector<Condition *> &, const CompoundCondition &) const;
+ virtual bool is_viable() const { return min<=max; }
virtual void add_lines(std::list<FilterStatement> &) const;
};
struct ItemLevelTraits
{
typedef unsigned Type;
- static unsigned get_min() { return 0; }
+ static unsigned get_min() { return 1; }
static unsigned get_max() { return 100; }
static const char *get_keyword() { return "ItemLevel"; }
};
struct DropLevelTraits
{
typedef unsigned Type;
- static unsigned get_min() { return 0; }
+ static unsigned get_min() { return 1; }
static unsigned get_max() { return 100; }
static const char *get_keyword() { return "DropLevel"; }
};