{
add("and", &Loader::and_);
add("base_type", &Loader::condition<BaseTypeCondition>);
+ add("category", &Loader::category);
add("class", &Loader::condition<ClassCondition>);
add_range<DropLevelCondition>("drop_level");
add_range<HeightCondition>("height");
add_condition(cond.release());
}
+void Category::Loader::category(const string &name)
+{
+ const Category &categ = poe.get_category(name);
+ add_condition(categ.condition->clone());
+}
+
template<typename T>
void Category::Loader::condition(typename T::Type value)
{